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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.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/platform/scroll/ScrollAnimatorTest.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
index 91528436215179856b26d74120dc5927639d8f93..b645cf3bdeb970a98e3113f03a8e4c4403272aa6 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
@@ -213,7 +213,7 @@ TEST(ScrollAnimatorTest, MainThreadStates)
reset(*scrollAnimator);
// Forced GC in order to finalize objects depending on the mock object.
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
}
TEST(ScrollAnimatorTest, MainThreadEnabled)
@@ -553,7 +553,7 @@ TEST(ScrollAnimatorTest, CancellingCompositorAnimation)
reset(*scrollAnimator);
// Forced GC in order to finalize objects depending on the mock object.
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
}
// This test verifies that impl only animation updates get cleared once they
@@ -588,7 +588,7 @@ TEST(ScrollAnimatorTest, ImplOnlyAnimationUpdatesCleared)
EXPECT_FALSE(animator->hasAnimationThatRequiresService());
// Forced GC in order to finalize objects depending on the mock object.
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
}
TEST(ScrollAnimatorTest, MainThreadAnimationTargetAdjustment)
@@ -638,7 +638,7 @@ TEST(ScrollAnimatorTest, MainThreadAnimationTargetAdjustment)
reset(*animator);
// Forced GC in order to finalize objects depending on the mock object.
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698