#ifndef TESTING_V8_INITIALIZER_H_
#define TESTING_V8_INITIALIZER_H_
#include <memory>
#include <string>
#ifndef PDF_ENABLE_V8
#error "V8 must be enabled"
#endif
namespace v8 {
class Platform;
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
class StartupData;
#endif
}
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
std::unique_ptr<v8::Platform> InitializeV8ForPDFiumWithStartupData(
const std::string& exe_path,
const std::string& js_flags,
const std::string& bin_dir,
v8::StartupData* snapshot_blob);
#else
std::unique_ptr<v8::Platform> InitializeV8ForPDFium(
const std::string& js_flags,
const std::string& exe_path);
#endif
void ShutdownV8ForPDFium();
#endif