OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |