Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / mojo / apps / js / test / js_to_cpp_unittest.cc
index 206e266..9152b0c 100644 (file)
@@ -3,11 +3,12 @@
 // found in the LICENSE file.
 
 #include "base/at_exit.h"
-#include "base/file_util.h"
 #include "base/files/file_path.h"
+#include "base/files/file_util.h"
 #include "base/message_loop/message_loop.h"
 #include "base/run_loop.h"
 #include "base/strings/utf_string_conversions.h"
+#include "gin/array_buffer.h"
 #include "gin/public/isolate_holder.h"
 #include "mojo/apps/js/mojo_runner_delegate.h"
 #include "mojo/apps/js/test/js_to_cpp.mojom.h"
@@ -398,7 +399,9 @@ class JsToCppTest : public testing::Test {
 
     cpp_side->set_js_side(js_side.get());
 
-    gin::IsolateHolder instance(gin::IsolateHolder::kStrictMode);
+    gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode,
+                                   gin::ArrayBufferAllocator::SharedInstance());
+    gin::IsolateHolder instance;
     apps::MojoRunnerDelegate delegate;
     gin::ShellRunner runner(&delegate, instance.isolate());
     delegate.Start(&runner, pipe.handle1.release().value(), test);