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_text.h" | 14 #include "public/fpdf_dataavail.h" |
15 #include "../public/fpdfview.h" | 15 #include "public/fpdf_text.h" |
| 16 #include "public/fpdfview.h" |
16 #include "test_support.h" | 17 #include "test_support.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
18 | 19 |
19 #ifdef PDF_ENABLE_V8 | 20 #ifdef PDF_ENABLE_V8 |
20 #include "v8/include/v8.h" | 21 #include "v8/include/v8.h" |
21 #include "v8/include/v8-platform.h" | 22 #include "v8/include/v8-platform.h" |
22 #endif // PDF_ENABLE_V8 | 23 #endif // PDF_ENABLE_V8 |
23 | 24 |
24 namespace { | 25 namespace { |
25 const char* g_exe_path_ = nullptr; | 26 const char* g_exe_path_ = nullptr; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 266 } |
266 | 267 |
267 // Can't use gtest-provided main since we need to stash the path to the | 268 // Can't use gtest-provided main since we need to stash the path to the |
268 // executable in order to find the external V8 binary data files. | 269 // executable in order to find the external V8 binary data files. |
269 int main(int argc, char** argv) { | 270 int main(int argc, char** argv) { |
270 g_exe_path_ = argv[0]; | 271 g_exe_path_ = argv[0]; |
271 testing::InitGoogleTest(&argc, argv); | 272 testing::InitGoogleTest(&argc, argv); |
272 testing::InitGoogleMock(&argc, argv); | 273 testing::InitGoogleMock(&argc, argv); |
273 return RUN_ALL_TESTS(); | 274 return RUN_ALL_TESTS(); |
274 } | 275 } |
OLD | NEW |