summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-18 19:29:59 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-18 19:29:59 +0000
commit70156345b2a7bc57b8bfca5f3d58c34505ad6518 (patch)
tree68878a52ed8cbe6174038cf7396e040d6ccf45c8 /testing
parent378ec548964d57311faab4627e570566bd20aaa0 (diff)
downloadpdfium-70156345b2a7bc57b8bfca5f3d58c34505ad6518.tar.xz
Forward declare some fxjs/ classes.
And remove unnecessary fxjs/ #includes in header files. Change-Id: If89dd2717b6ba93dbb7493e8ca80d78deaa64b06 Reviewed-on: https://pdfium-review.googlesource.com/c/44270 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r--testing/js_embedder_test.cpp1
-rw-r--r--testing/js_embedder_test.h6
-rw-r--r--testing/xfa_js_embedder_test.cpp1
-rw-r--r--testing/xfa_js_embedder_test.h4
4 files changed, 9 insertions, 3 deletions
diff --git a/testing/js_embedder_test.cpp b/testing/js_embedder_test.cpp
index 9821a21166..57e6c4d317 100644
--- a/testing/js_embedder_test.cpp
+++ b/testing/js_embedder_test.cpp
@@ -4,6 +4,7 @@
#include "testing/js_embedder_test.h"
+#include "fxjs/cfxjs_engine.h"
#include "third_party/base/ptr_util.h"
JSEmbedderTest::JSEmbedderTest()
diff --git a/testing/js_embedder_test.h b/testing/js_embedder_test.h
index 6f694a7438..dca0bd76c2 100644
--- a/testing/js_embedder_test.h
+++ b/testing/js_embedder_test.h
@@ -7,8 +7,12 @@
#include <memory>
-#include "fxjs/cfxjs_engine.h"
+#include "fxjs/cfx_v8.h"
#include "testing/embedder_test.h"
+#include "v8/include/v8.h"
+
+class CFXJS_Engine;
+class CFX_V8ArrayBufferAllocator;
class JSEmbedderTest : public EmbedderTest {
public:
diff --git a/testing/xfa_js_embedder_test.cpp b/testing/xfa_js_embedder_test.cpp
index 8d2f64eaa7..483d61154c 100644
--- a/testing/xfa_js_embedder_test.cpp
+++ b/testing/xfa_js_embedder_test.cpp
@@ -9,6 +9,7 @@
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "fpdfsdk/fpdfxfa/cpdfxfa_context.h"
#include "fxjs/cfxjse_engine.h"
+#include "fxjs/cfxjse_value.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/base/ptr_util.h"
#include "xfa/fxfa/cxfa_ffapp.h"
diff --git a/testing/xfa_js_embedder_test.h b/testing/xfa_js_embedder_test.h
index 3534280676..0c8b08e670 100644
--- a/testing/xfa_js_embedder_test.h
+++ b/testing/xfa_js_embedder_test.h
@@ -8,14 +8,14 @@
#include <memory>
#include <string>
-#include "fxjs/cfxjs_engine.h"
-#include "fxjs/cfxjse_value.h"
#include "testing/embedder_test.h"
#include "xfa/fxfa/parser/cxfa_document.h"
#include "xfa/fxfa/parser/cxfa_node.h"
#include "xfa/fxfa/parser/cxfa_object.h"
class CFXJSE_Engine;
+class CFXJSE_Value;
+class CFX_V8ArrayBufferAllocator;
class XFAJSEmbedderTest : public EmbedderTest {
public: