Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp

Issue 2307003002: Move collectGarbage* methods to ThreadState (Closed)
Patch Set: fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
index f11db68f310a4d5088f44efe7b45fe10b0b5935e..70b4c8824c897533f965df84910c8196c564ce96 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
@@ -55,7 +55,7 @@ TEST_F(PaintWorkletTest, GarbageCollectionOfCSSPaintDefinition)
ASSERT(handle.isWeak());
// Run a GC, persistent shouldn't have been collected yet.
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
V8GCController::collectAllGarbageForTesting(isolate);
ASSERT(!handle.isEmpty());
@@ -63,7 +63,7 @@ TEST_F(PaintWorkletTest, GarbageCollectionOfCSSPaintDefinition)
m_page.reset();
// Run a GC, the persistent should have been collected.
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
V8GCController::collectAllGarbageForTesting(isolate);
ASSERT(handle.isEmpty());
}

Powered by Google App Engine
This is Rietveld 408576698