Index: third_party/WebKit/Source/platform/LifecycleContextTest.cpp |
diff --git a/third_party/WebKit/Source/platform/LifecycleContextTest.cpp b/third_party/WebKit/Source/platform/LifecycleContextTest.cpp |
index 84487f7f0e474fcbf20b7003f1f56a9fdff7e2f6..6cf49ee3c662765b98dcf0fd39878c9d87735801 100644 |
--- a/third_party/WebKit/Source/platform/LifecycleContextTest.cpp |
+++ b/third_party/WebKit/Source/platform/LifecycleContextTest.cpp |
@@ -102,7 +102,7 @@ |
EXPECT_FALSE(observer->contextDestroyedCalled()); |
context->notifyContextDestroyed(); |
context = nullptr; |
- ThreadState::current()-> collectAllGarbage(); |
+ ThreadHeap::collectAllGarbage(); |
EXPECT_EQ(observer->lifecycleContext(), static_cast<DummyContext*>(0)); |
EXPECT_TRUE(observer->contextDestroyedCalled()); |
} |
@@ -114,7 +114,7 @@ |
observer->unobserve(); |
context->notifyContextDestroyed(); |
context = nullptr; |
- ThreadState::current()-> collectAllGarbage(); |
+ ThreadHeap::collectAllGarbage(); |
EXPECT_EQ(observer->lifecycleContext(), static_cast<DummyContext*>(0)); |
EXPECT_FALSE(observer->contextDestroyedCalled()); |
} |
@@ -136,7 +136,7 @@ |
context->notifyContextDestroyed(); |
EXPECT_EQ(observer->innerObserver(), nullptr); |
context = nullptr; |
- ThreadState::current()-> collectAllGarbage(); |
+ ThreadHeap::collectAllGarbage(); |
EXPECT_EQ(observer->lifecycleContext(), static_cast<DummyContext*>(0)); |
EXPECT_TRUE(observer->contextDestroyedCalled()); |
} |