From 3ccd36892fe826e8f2ed8dde0819756ae3546733 Mon Sep 17 00:00:00 2001 From: Jochen Eisinger Date: Fri, 20 Nov 2015 10:18:59 +0100 Subject: Initialize V8 before starting embedder tests BUG=none R=thestig@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/1462313002 . --- testing/embedder_test.cpp | 9 ++++----- 1 file 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; -- cgit v1.2.3