summaryrefslogtreecommitdiff
path: root/testing/test_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'testing/test_support.h')
-rw-r--r--testing/test_support.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/test_support.h b/testing/test_support.h
index ec4b4aeacb..00d72b35d1 100644
--- a/testing/test_support.h
+++ b/testing/test_support.h
@@ -91,12 +91,26 @@ class Platform;
namespace v8 {
class StartupData;
}
+
+// |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,
+ v8::StartupData* snapshot_blob);
+
+// TODO(thestig): Remove this in the near future once it has no callers.
bool InitializeV8ForPDFium(const std::string& exe_path,
const std::string& bin_dir,
v8::StartupData* natives_blob,
v8::StartupData* snapshot_blob,
v8::Platform** platform);
#else // V8_USE_EXTERNAL_STARTUP_DATA
+std::unique_ptr<v8::Platform> InitializeV8ForPDFium(
+ const std::string& exe_path);
+
+// TODO(thestig): Remove this in the near future once it has no callers.
bool InitializeV8ForPDFium(const std::string& exe_path,
v8::Platform** platform);
#endif // V8_USE_EXTERNAL_STARTUP_DATA