Index: Source/core/dom/CrossThreadTaskTest.cpp |
diff --git a/Source/core/dom/CrossThreadTaskTest.cpp b/Source/core/dom/CrossThreadTaskTest.cpp |
index ff6f5f3b8468cb12716e90c2690a71434d5c40dc..9d239174612112de7cbcab64c50d2e960513f9fe 100644 |
--- a/Source/core/dom/CrossThreadTaskTest.cpp |
+++ b/Source/core/dom/CrossThreadTaskTest.cpp |
@@ -37,7 +37,7 @@ protected: |
} |
void TearDown() override |
{ |
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGCForTesting); |
+ Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC); |
ASSERT_EQ(0, GCObject::s_counter); |
} |
}; |
@@ -46,7 +46,7 @@ TEST_F(CrossThreadTaskTest, CreateForGarbageCollectedMethod) |
{ |
OwnPtr<ExecutionContextTask> task1 = createCrossThreadTask(&GCObject::run, new GCObject, new GCObject); |
OwnPtr<ExecutionContextTask> task2 = createCrossThreadTask(&GCObject::run, RawPtr<GCObject>(new GCObject), RawPtr<GCObject>(new GCObject)); |
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGCForTesting); |
+ Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC); |
EXPECT_EQ(4, GCObject::s_counter); |
} |
@@ -54,7 +54,7 @@ TEST_F(CrossThreadTaskTest, CreateForFunctionWithGarbageCollected) |
{ |
OwnPtr<ExecutionContextTask> task1 = createCrossThreadTask(&functionWithGarbageCollected, new GCObject); |
OwnPtr<ExecutionContextTask> task2 = createCrossThreadTask(&functionWithGarbageCollected, RawPtr<GCObject>(new GCObject)); |
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGCForTesting); |
+ Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC); |
EXPECT_EQ(2, GCObject::s_counter); |
} |
@@ -62,7 +62,7 @@ TEST_F(CrossThreadTaskTest, CreateForFunctionWithExecutionContext) |
{ |
OwnPtr<ExecutionContextTask> task1 = createCrossThreadTask(&functionWithExecutionContext, new GCObject); |
OwnPtr<ExecutionContextTask> task2 = createCrossThreadTask(&functionWithExecutionContext, RawPtr<GCObject>(new GCObject)); |
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGCForTesting); |
+ Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC); |
EXPECT_EQ(2, GCObject::s_counter); |
} |