summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-02 09:05:53 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-02 09:05:53 -0700
commitccc8b21622a7d6a7723bc04e065e0ec3666dab64 (patch)
tree0de33e1e4f34c6861fd40edaaa55fdc77f84745f
parent20fc82efdc9c9e4caa6e72d05a83b9206e8c8f72 (diff)
downloadpdfium-ccc8b21622a7d6a7723bc04e065e0ec3666dab64.tar.xz
Correct mistakes in test case for 507316
Original patch by chamalsl. Trailer size in bug_507316 was wrong. embedder_test.cpp's GetPageTrampoline passed null parameter. It will affect future test cases even if it does not affect this. BUG=507316 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1377403003 .
-rw-r--r--testing/embedder_test.cpp2
-rw-r--r--testing/resources/bug_507316.in2
-rw-r--r--testing/resources/bug_507316.pdf2
3 files changed, 3 insertions, 3 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index eb16bc70f9..951da8470c 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -337,7 +337,7 @@ FPDF_PAGE EmbedderTest::GetPageTrampoline(FPDF_FORMFILLINFO* info,
FPDF_DOCUMENT document,
int page_index) {
EmbedderTest* test = static_cast<EmbedderTest*>(info);
- return test->delegate_->GetPage(test->m_pFormfillinfo, document, page_index);
+ return test->delegate_->GetPage(test->form_handle(), document, page_index);
}
// Can't use gtest-provided main since we need to stash the path to the
diff --git a/testing/resources/bug_507316.in b/testing/resources/bug_507316.in
index cd3f81eeea..87dd5c31c0 100644
--- a/testing/resources/bug_507316.in
+++ b/testing/resources/bug_507316.in
@@ -119,7 +119,7 @@ endstream
endobj
{{xref}}
trailer <<
- /Size 15
+ /Size 16
/Root 1 0 R
>>
{{startxref}}
diff --git a/testing/resources/bug_507316.pdf b/testing/resources/bug_507316.pdf
index 13c70830f8..ecc205ceae 100644
--- a/testing/resources/bug_507316.pdf
+++ b/testing/resources/bug_507316.pdf
@@ -137,7 +137,7 @@ xref
0000001365 00000 n
0000001433 00000 n
trailer <<
- /Size 15
+ /Size 16
/Root 1 0 R
>>
startxref