diff options
Diffstat (limited to 'content/test/content_test_launcher.cc')
-rw-r--r-- | content/test/content_test_launcher.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/test/content_test_launcher.cc b/content/test/content_test_launcher.cc index e19db37..82466e7 100644 --- a/content/test/content_test_launcher.cc +++ b/content/test/content_test_launcher.cc @@ -21,6 +21,10 @@ #include "media/base/media_switches.h" #include "testing/gtest/include/gtest/gtest.h" +#ifdef V8_USE_EXTERNAL_STARTUP_DATA +#include "gin/public/isolate_holder.h" +#endif + #if defined(OS_ANDROID) #include "base/message_loop/message_loop.h" #include "content/app/mojo/mojo_init.h" @@ -53,6 +57,10 @@ class ContentBrowserTestSuite : public ContentTestSuiteBase { base::i18n::AllowMultipleInitializeCallsForTesting(); base::i18n::InitializeICU(); +#ifdef V8_USE_EXTERNAL_STARTUP_DATA + gin::IsolateHolder::LoadV8Snapshot(); +#endif + // This needs to be done before base::TestSuite::Initialize() is called, // as it also tries to set MessagePumpForUIFactory. if (!base::MessageLoop::InitMessagePumpForUIFactory( |