From ccc8b21622a7d6a7723bc04e065e0ec3666dab64 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 2 Oct 2015 09:05:53 -0700 Subject: 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 . --- testing/embedder_test.cpp | 2 +- testing/resources/bug_507316.in | 2 +- testing/resources/bug_507316.pdf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testing') 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(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 -- cgit v1.2.3