summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/embedder_test.cpp2
-rw-r--r--testing/embedder_test.h2
-rw-r--r--testing/test_support.cpp4
-rw-r--r--testing/test_support.h3
4 files changed, 7 insertions, 4 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index 99e294bc8e..8a102d1225 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -17,8 +17,8 @@
#include "testing/gmock/include/gmock/gmock.h"
#ifdef PDF_ENABLE_V8
-#include "v8/include/libplatform/libplatform.h"
#include "v8/include/v8.h"
+#include "v8/include/v8-platform.h"
#endif // PDF_ENABLE_V8
namespace {
diff --git a/testing/embedder_test.h b/testing/embedder_test.h
index fb3ea428f1..49f8bbac9c 100644
--- a/testing/embedder_test.h
+++ b/testing/embedder_test.h
@@ -12,8 +12,8 @@
#include "../public/fpdf_ext.h"
#include "../public/fpdf_formfill.h"
#include "../public/fpdfview.h"
-#include "../third_party/base/nonstd_unique_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/base/nonstd_unique_ptr.h"
#ifdef PDF_ENABLE_V8
#include "v8/include/v8.h"
diff --git a/testing/test_support.cpp b/testing/test_support.cpp
index 49232990bc..8ecda30bce 100644
--- a/testing/test_support.cpp
+++ b/testing/test_support.cpp
@@ -13,6 +13,10 @@
#define PATH_SEPARATOR '/'
#endif
+#ifdef PDF_ENABLE_V8
+#include "v8/include/libplatform/libplatform.h"
+#endif
+
namespace {
#ifdef PDF_ENABLE_V8
diff --git a/testing/test_support.h b/testing/test_support.h
index 4bb88db254..afa3bafc96 100644
--- a/testing/test_support.h
+++ b/testing/test_support.h
@@ -11,9 +11,8 @@
#include "../public/fpdfview.h"
#ifdef PDF_ENABLE_V8
-#include "v8/include/libplatform/libplatform.h"
#include "v8/include/v8.h"
-#endif
+#endif // PDF_ENABLE_V8
// Reads the entire contents of a file into a newly malloc'd buffer.
char* GetFileContents(const char* filename, size_t* retlen);