From 3355f459ecd2207c0cd1719c2cdafa15eea87bf6 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 5 Feb 2018 21:13:35 +0000 Subject: 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 Commit-Queue: Lei Zhang --- testing/test_support.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'testing/test_support.h') 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 InitializeV8ForPDFium( + +// |natives_blob| and |snapshot_blob| are optional out parameters. They should +// either both be valid or both be nullptrs. +std::unique_ptr InitializeV8ForPDFiumWithStartupData( const std::string& exe_path, const std::string& bin_dir, v8::StartupData* natives_blob, -- cgit v1.2.3