diff options
author | Lei Zhang <thestig@chromium.org> | 2018-02-05 21:13:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-05 21:13:35 +0000 |
commit | 3355f459ecd2207c0cd1719c2cdafa15eea87bf6 (patch) | |
tree | 23f6a83c8d8213093acd4e1509662532197fdaa3 /testing/embedder_test_main.cpp | |
parent | 57e097750846bf3ffc3e4e2ef9e78be8a82c69de (diff) | |
download | pdfium-3355f459ecd2207c0cd1719c2cdafa15eea87bf6.tar.xz |
Fix testing.cpp build with v8_use_external_startup_data=false.
Also change the InitializeV8ForPDFium() for use with startup data to
InitializeV8ForPDFiumWithStartupData().
Change-Id: I594c2bf9470b6549195b7361bb7fcb45def50c61
Reviewed-on: https://pdfium-review.googlesource.com/25371
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/embedder_test_main.cpp')
-rw-r--r-- | testing/embedder_test_main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/embedder_test_main.cpp b/testing/embedder_test_main.cpp index 03c192b08a..0c3ceb60ce 100644 --- a/testing/embedder_test_main.cpp +++ b/testing/embedder_test_main.cpp @@ -34,13 +34,13 @@ class Environment : public testing::Environment { #ifdef PDF_ENABLE_V8 #ifdef V8_USE_EXTERNAL_STARTUP_DATA if (g_v8_natives && g_v8_snapshot) { - platform_ = - InitializeV8ForPDFium(g_exe_path, std::string(), nullptr, nullptr); + platform_ = InitializeV8ForPDFiumWithStartupData( + g_exe_path, std::string(), nullptr, nullptr); } else { g_v8_natives = new v8::StartupData; g_v8_snapshot = new v8::StartupData; - platform_ = InitializeV8ForPDFium(g_exe_path, std::string(), g_v8_natives, - g_v8_snapshot); + platform_ = InitializeV8ForPDFiumWithStartupData( + g_exe_path, std::string(), g_v8_natives, g_v8_snapshot); } #else platform_ = InitializeV8ForPDFium(g_exe_path); |