diff options
author | Jochen Eisinger <jochen@chromium.org> | 2015-11-20 10:18:59 +0100 |
---|---|---|
committer | Jochen Eisinger <jochen@chromium.org> | 2015-11-20 10:18:59 +0100 |
commit | 3ccd36892fe826e8f2ed8dde0819756ae3546733 (patch) | |
tree | 45bc98d10a761a64406b9af036660509c37b128e /testing/embedder_test.cpp | |
parent | 0c8e6c1f39f20985a3efb17292e46c476194183a (diff) | |
download | pdfium-3ccd36892fe826e8f2ed8dde0819756ae3546733.tar.xz |
Initialize V8 before starting embedder tests
BUG=none
R=thestig@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/1462313002 .
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r-- | testing/embedder_test.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 3664d92ce4..d277de1e3a 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; |