Chromium Code Reviews| Index: mojo/apps/js/test/js_to_cpp_unittest.cc |
| diff --git a/mojo/apps/js/test/js_to_cpp_unittest.cc b/mojo/apps/js/test/js_to_cpp_unittest.cc |
| index 44526a45c045a7a5dfd51e9274a2a06e95eabf78..e2f110e3c7f77700074d2b52cce64adeaf7e612f 100644 |
| --- a/mojo/apps/js/test/js_to_cpp_unittest.cc |
| +++ b/mojo/apps/js/test/js_to_cpp_unittest.cc |
| @@ -19,6 +19,10 @@ |
| #include "mojo/public/cpp/system/macros.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| +#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| +#include "gin/public/isolate_holder.h" |
| +#endif |
| + |
| namespace mojo { |
| namespace js { |
| @@ -400,6 +404,10 @@ class JsToCppTest : public testing::Test { |
| cpp_side->set_js_side(js_side.get()); |
| +#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| + gin::IsolateHolder::LoadV8Snapshot(); |
| +#endif |
| + |
|
rmcilroy
2014/10/07 16:16:11
nit - remove newline
baixo
2014/10/08 11:28:55
Done.
|
| gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, |
| gin::ArrayBufferAllocator::SharedInstance()); |
| gin::IsolateHolder instance; |