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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp

Issue 2644243002: Move ScrollableArea timer to TaskRunnerTimer. (Closed)
Patch Set: use derived class in unique_ptr Created 3 years, 11 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 1acb2fd4a84b43aabb54299d71378a1180ca7204..946efa8168c2d3da98539e340b96d34ce890ace2 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
@@ -31,6 +31,9 @@
#include "platform/geometry/IntRect.h"
#include "platform/scroll/ScrollAnimatorBase.h"
#include "platform/scroll/ScrollableArea.h"
+#include "public/platform/Platform.h"
+#include "public/platform/WebScheduler.h"
+#include "public/platform/WebThread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -108,6 +111,10 @@ class MockScrollableArea : public GarbageCollectedFinalized<MockScrollableArea>,
ScrollableArea::setScrollOffset(offset, type, behavior);
}
+ RefPtr<WebTaskRunner> getTimerTaskRunner() const final {
+ return Platform::current()->currentThread()->scheduler()->timerTaskRunner();
+ }
+
DEFINE_INLINE_VIRTUAL_TRACE() {
visitor->trace(animator);
ScrollableArea::trace(visitor);

Powered by Google App Engine
This is Rietveld 408576698