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