summaryrefslogtreecommitdiff
path: root/testing/test_support.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-02-05 21:13:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-05 21:13:35 +0000
commit3355f459ecd2207c0cd1719c2cdafa15eea87bf6 (patch)
tree23f6a83c8d8213093acd4e1509662532197fdaa3 /testing/test_support.h
parent57e097750846bf3ffc3e4e2ef9e78be8a82c69de (diff)
downloadpdfium-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/test_support.h')
-rw-r--r--testing/test_support.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/test_support.h b/testing/test_support.h
index 1b7692c3ed..f26e161544 100644
--- a/testing/test_support.h
+++ b/testing/test_support.h
@@ -91,7 +91,10 @@ class Platform;
namespace v8 {
class StartupData;
}
-std::unique_ptr<v8::Platform> InitializeV8ForPDFium(
+
+// |natives_blob| and |snapshot_blob| are optional out parameters. They should
+// either both be valid or both be nullptrs.
+std::unique_ptr<v8::Platform> InitializeV8ForPDFiumWithStartupData(
const std::string& exe_path,
const std::string& bin_dir,
v8::StartupData* natives_blob,