Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: testing/embedder_test.cpp

Issue 1384053002: Merge to XFA: Correct mistakes in test case for 507316 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | testing/resources/bug_507316.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 PDFium Authors. All rights reserved. 1 // Copyright (c) 2015 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "embedder_test.h" 5 #include "embedder_test.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 void EmbedderTest::KillTimerTrampoline(FPDF_FORMFILLINFO* info, int id) { 341 void EmbedderTest::KillTimerTrampoline(FPDF_FORMFILLINFO* info, int id) {
342 EmbedderTest* test = static_cast<EmbedderTest*>(info); 342 EmbedderTest* test = static_cast<EmbedderTest*>(info);
343 return test->delegate_->KillTimer(id); 343 return test->delegate_->KillTimer(id);
344 } 344 }
345 345
346 // static 346 // static
347 FPDF_PAGE EmbedderTest::GetPageTrampoline(FPDF_FORMFILLINFO* info, 347 FPDF_PAGE EmbedderTest::GetPageTrampoline(FPDF_FORMFILLINFO* info,
348 FPDF_DOCUMENT document, 348 FPDF_DOCUMENT document,
349 int page_index) { 349 int page_index) {
350 EmbedderTest* test = static_cast<EmbedderTest*>(info); 350 EmbedderTest* test = static_cast<EmbedderTest*>(info);
351 return test->delegate_->GetPage(test->m_pFormfillinfo, document, page_index); 351 return test->delegate_->GetPage(test->form_handle(), document, page_index);
352 } 352 }
353 353
354 // Can't use gtest-provided main since we need to stash the path to the 354 // Can't use gtest-provided main since we need to stash the path to the
355 // executable in order to find the external V8 binary data files. 355 // executable in order to find the external V8 binary data files.
356 int main(int argc, char** argv) { 356 int main(int argc, char** argv) {
357 g_exe_path_ = argv[0]; 357 g_exe_path_ = argv[0];
358 testing::InitGoogleTest(&argc, argv); 358 testing::InitGoogleTest(&argc, argv);
359 testing::InitGoogleMock(&argc, argv); 359 testing::InitGoogleMock(&argc, argv);
360 return RUN_ALL_TESTS(); 360 return RUN_ALL_TESTS();
361 } 361 }
OLDNEW
« no previous file with comments | « no previous file | testing/resources/bug_507316.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698