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 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "../public/fpdf_dataavail.h" | 14 #include "public/fpdf_dataavail.h" |
15 #include "../public/fpdf_text.h" | 15 #include "public/fpdf_text.h" |
16 #include "../public/fpdfview.h" | 16 #include "public/fpdfview.h" |
17 #include "test_support.h" | 17 #include "test_support.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 | 19 |
20 #ifdef PDF_ENABLE_V8 | 20 #ifdef PDF_ENABLE_V8 |
21 #include "v8/include/v8.h" | 21 #include "v8/include/v8.h" |
22 #include "v8/include/v8-platform.h" | 22 #include "v8/include/v8-platform.h" |
23 #endif // PDF_ENABLE_V8 | 23 #endif // PDF_ENABLE_V8 |
24 | 24 |
25 namespace { | 25 namespace { |
26 const char* g_exe_path_ = nullptr; | 26 const char* g_exe_path_ = nullptr; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 } | 279 } |
280 | 280 |
281 // Can't use gtest-provided main since we need to stash the path to the | 281 // Can't use gtest-provided main since we need to stash the path to the |
282 // executable in order to find the external V8 binary data files. | 282 // executable in order to find the external V8 binary data files. |
283 int main(int argc, char** argv) { | 283 int main(int argc, char** argv) { |
284 g_exe_path_ = argv[0]; | 284 g_exe_path_ = argv[0]; |
285 testing::InitGoogleTest(&argc, argv); | 285 testing::InitGoogleTest(&argc, argv); |
286 testing::InitGoogleMock(&argc, argv); | 286 testing::InitGoogleMock(&argc, argv); |
287 return RUN_ALL_TESTS(); | 287 return RUN_ALL_TESTS(); |
288 } | 288 } |
OLD | NEW |