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 #ifndef TESTING_EMBEDDER_TEST_H_ | 5 #ifndef TESTING_EMBEDDER_TEST_H_ |
6 #define TESTING_EMBEDDER_TEST_H_ | 6 #define TESTING_EMBEDDER_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "../core/include/fxcrt/fx_system.h" | 10 #include "../core/include/fxcrt/fx_system.h" |
11 #include "../fpdfsdk/include/fpdf_dataavail.h" | 11 #include "../public/fpdf_dataavail.h" |
12 #include "../fpdfsdk/include/fpdf_ext.h" | 12 #include "../public/fpdf_ext.h" |
13 #include "../fpdfsdk/include/fpdfformfill.h" | 13 #include "../public/fpdf_formfill.h" |
14 #include "../fpdfsdk/include/fpdfview.h" | 14 #include "../public/fpdfview.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "v8/include/v8.h" | 16 #include "v8/include/v8.h" |
17 | 17 |
18 class TestLoader; | 18 class TestLoader; |
19 | 19 |
20 // This class is used to load a PDF document, and then run programatic | 20 // This class is used to load a PDF document, and then run programatic |
21 // API tests against it. | 21 // API tests against it. |
22 class EmbedderTest : public ::testing::Test, | 22 class EmbedderTest : public ::testing::Test, |
23 public UNSUPPORT_INFO, | 23 public UNSUPPORT_INFO, |
24 public IPDF_JSPLATFORM, | 24 public IPDF_JSPLATFORM, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 char* file_contents_; | 88 char* file_contents_; |
89 | 89 |
90 private: | 90 private: |
91 static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type); | 91 static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type); |
92 static int AlertTrampoline(IPDF_JSPLATFORM* plaform, FPDF_WIDESTRING message, | 92 static int AlertTrampoline(IPDF_JSPLATFORM* plaform, FPDF_WIDESTRING message, |
93 FPDF_WIDESTRING title, int type, int icon); | 93 FPDF_WIDESTRING title, int type, int icon); |
94 }; | 94 }; |
95 | 95 |
96 #endif // TESTING_EMBEDDER_TEST_H_ | 96 #endif // TESTING_EMBEDDER_TEST_H_ |
97 | 97 |
OLD | NEW |