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 7dcbd72cb7c3972f36e107b23aebf3cf84484d1f..8835ab96d485d5ec37c05e12f7c71b17a5392a27 100644 |
--- a/third_party/WebKit/Source/platform/LifecycleContextTest.cpp |
+++ b/third_party/WebKit/Source/platform/LifecycleContextTest.cpp |
@@ -102,7 +102,7 @@ TEST(LifecycleContextTest, shouldObserveContextDestroyed) |
EXPECT_FALSE(observer->contextDestroyedCalled()); |
context->notifyContextDestroyed(); |
context = nullptr; |
- Heap::collectAllGarbage(); |
+ ThreadHeap::collectAllGarbage(); |
EXPECT_EQ(observer->lifecycleContext(), static_cast<DummyContext*>(0)); |
EXPECT_TRUE(observer->contextDestroyedCalled()); |
} |
@@ -114,7 +114,7 @@ TEST(LifecycleContextTest, shouldNotObserveContextDestroyedIfUnobserve) |
observer->unobserve(); |
context->notifyContextDestroyed(); |
context = nullptr; |
- Heap::collectAllGarbage(); |
+ ThreadHeap::collectAllGarbage(); |
EXPECT_EQ(observer->lifecycleContext(), static_cast<DummyContext*>(0)); |
EXPECT_FALSE(observer->contextDestroyedCalled()); |
} |
@@ -136,7 +136,7 @@ TEST(LifecycleContextTest, observerRemovedDuringNotifyDestroyed) |
context->notifyContextDestroyed(); |
EXPECT_EQ(observer->innerObserver(), nullptr); |
context = nullptr; |
- Heap::collectAllGarbage(); |
+ ThreadHeap::collectAllGarbage(); |
EXPECT_EQ(observer->lifecycleContext(), static_cast<DummyContext*>(0)); |
EXPECT_TRUE(observer->contextDestroyedCalled()); |
} |