Index: chrome/test/base/v8_unit_test.cc |
diff --git a/chrome/test/base/v8_unit_test.cc b/chrome/test/base/v8_unit_test.cc |
index 80ac9fbfcb6ab2755d940e9209213ba061c33e85..392ff45bf5a454a781c2c9fa5a3588dc4a30672e 100644 |
--- a/chrome/test/base/v8_unit_test.cc |
+++ b/chrome/test/base/v8_unit_test.cc |
@@ -11,6 +11,7 @@ |
#include "base/strings/stringprintf.h" |
#include "chrome/common/chrome_paths.h" |
#include "third_party/WebKit/public/web/WebKit.h" |
+#include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h" |
namespace { |
@@ -95,8 +96,7 @@ |
v8::Local<v8::Context> context = |
v8::Local<v8::Context>::New(isolate, context_); |
v8::Context::Scope context_scope(context); |
- v8::MicrotasksScope microtasks( |
- isolate, v8::MicrotasksScope::kDoNotRunMicrotasks); |
+ blink::WebScopedMicrotaskSuppression microtasks_scope; |
v8::Local<v8::Value> function_property = |
context->Global()->Get(v8::String::NewFromUtf8(isolate, "runTest")); |
@@ -211,8 +211,7 @@ |
v8::Local<v8::Context> context = |
v8::Local<v8::Context>::New(isolate, context_); |
v8::Context::Scope context_scope(context); |
- v8::MicrotasksScope microtasks( |
- isolate, v8::MicrotasksScope::kDoNotRunMicrotasks); |
+ blink::WebScopedMicrotaskSuppression microtasks_scope; |
v8::Local<v8::String> source = |
v8::String::NewFromUtf8(isolate, |
script_source.data(), |
@@ -261,8 +260,7 @@ |
v8::Local<v8::Context> context = |
v8::Local<v8::Context>::New(isolate, context_); |
v8::Context::Scope context_scope(context); |
- v8::MicrotasksScope microtasks( |
- isolate, v8::MicrotasksScope::kDoNotRunMicrotasks); |
+ blink::WebScopedMicrotaskSuppression microtasks_scope; |
v8::Local<v8::Value> function_property = context->Global()->Get( |
v8::String::NewFromUtf8(isolate, function_name.c_str())); |