Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp |
index 0168a916955a2be50bbaf4386f6c1a393d5c11ba..052d4158a64211714fc70b4bf5bd735b74adae38 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp |
@@ -232,11 +232,11 @@ |
resolver = ScriptPromiseResolverKeepAlive::create(getScriptState()); |
} |
resolver->keepAliveWhilePending(); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
ASSERT_TRUE(ScriptPromiseResolverKeepAlive::isAlive()); |
resolver->resolve("hello"); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive()); |
} |
@@ -249,11 +249,11 @@ |
resolver = ScriptPromiseResolverKeepAlive::create(getScriptState()); |
} |
resolver->keepAliveWhilePending(); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
ASSERT_TRUE(ScriptPromiseResolverKeepAlive::isAlive()); |
resolver->reject("hello"); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive()); |
} |
@@ -266,11 +266,11 @@ |
resolver = ScriptPromiseResolverKeepAlive::create(getScriptState()); |
} |
resolver->keepAliveWhilePending(); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
EXPECT_TRUE(ScriptPromiseResolverKeepAlive::isAlive()); |
getExecutionContext()->stopActiveDOMObjects(); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive()); |
} |
@@ -283,16 +283,16 @@ |
resolver = ScriptPromiseResolverKeepAlive::create(getScriptState()); |
} |
resolver->keepAliveWhilePending(); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
ASSERT_TRUE(ScriptPromiseResolverKeepAlive::isAlive()); |
getExecutionContext()->suspendActiveDOMObjects(); |
resolver->resolve("hello"); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
EXPECT_TRUE(ScriptPromiseResolverKeepAlive::isAlive()); |
getExecutionContext()->stopActiveDOMObjects(); |
- ThreadState::current()->collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
+ ThreadHeap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); |
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive()); |
} |