summaryrefslogtreecommitdiff
path: root/testing/embedder_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r--testing/embedder_test.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index c57126f320..39f3d50eb7 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -46,12 +46,7 @@ EmbedderTest::EmbedderTest()
memset(&file_access_, 0, sizeof(file_access_));
memset(&file_avail_, 0, sizeof(file_avail_));
delegate_ = default_delegate_.get();
-}
-
-EmbedderTest::~EmbedderTest() {
-}
-void EmbedderTest::SetUp() {
#ifdef PDF_ENABLE_V8
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
InitializeV8ForPDFium(g_exe_path_, std::string(), &natives_, &snapshot_,
@@ -60,7 +55,11 @@ void EmbedderTest::SetUp() {
InitializeV8ForPDFium(&platform_);
#endif // V8_USE_EXTERNAL_STARTUP_DATA
#endif // FPDF_ENABLE_V8
+}
+
+EmbedderTest::~EmbedderTest() {}
+void EmbedderTest::SetUp() {
FPDF_LIBRARY_CONFIG config;
config.version = 2;
config.m_pUserFontPaths = nullptr;