Index: gin/test/file_runner.cc |
diff --git a/gin/test/file_runner.cc b/gin/test/file_runner.cc |
index 83228d6d014e5570a63847f149dca2df58941b07..b639d0640630e8821cb01ccd330b15e1eed8396f 100644 |
--- a/gin/test/file_runner.cc |
+++ b/gin/test/file_runner.cc |
@@ -19,6 +19,10 @@ |
#include "gin/try_catch.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
+#include "gin/public/isolate_holder.h" |
+#endif |
+ |
namespace gin { |
namespace { |
@@ -58,6 +62,10 @@ void RunTestFromFile(const base::FilePath& path, FileRunnerDelegate* delegate, |
base::MessageLoop message_loop; |
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
+ gin::IsolateHolder::LoadV8Snapshot(); |
+#endif |
+ |
gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, |
gin::ArrayBufferAllocator::SharedInstance()); |
gin::IsolateHolder instance; |