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

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

Issue 2588403002: TestingPlatformSupport: register Platform instance correctly (Closed)
Patch Set: review #32 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/ScrollbarThemeAuraTest.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAuraTest.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAuraTest.cpp
index 20e74d97445a7243258f91752bf52c6346eedfd2..d4601f19e3ada14f1d83441df7b8e58316289237 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAuraTest.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAuraTest.cpp
@@ -31,6 +31,10 @@ class ScrollbarThemeAuraButtonOverride final : public ScrollbarThemeAura {
class ScrollbarThemeAuraTest : public ScrollbarTestSuite {};
TEST_F(ScrollbarThemeAuraTest, ButtonSizeHorizontal) {
+ ScopedTestingPlatformSupport<TestingPlatformSupportWithMockScheduler,
+ const TestingPlatformSupport::Config&>
+ platform(m_config);
+
MockScrollableArea* mockScrollableArea = MockScrollableArea::create();
ScrollbarThemeMock mockTheme;
Scrollbar* scrollbar = Scrollbar::createForTesting(
@@ -53,6 +57,10 @@ TEST_F(ScrollbarThemeAuraTest, ButtonSizeHorizontal) {
}
TEST_F(ScrollbarThemeAuraTest, ButtonSizeVertical) {
+ ScopedTestingPlatformSupport<TestingPlatformSupportWithMockScheduler,
+ const TestingPlatformSupport::Config&>
+ platform(m_config);
+
MockScrollableArea* mockScrollableArea = MockScrollableArea::create();
ScrollbarThemeMock mockTheme;
Scrollbar* scrollbar = Scrollbar::createForTesting(
@@ -75,6 +83,10 @@ TEST_F(ScrollbarThemeAuraTest, ButtonSizeVertical) {
}
TEST_F(ScrollbarThemeAuraTest, NoButtonsReturnsSize0) {
+ ScopedTestingPlatformSupport<TestingPlatformSupportWithMockScheduler,
+ const TestingPlatformSupport::Config&>
+ platform(m_config);
+
MockScrollableArea* mockScrollableArea = MockScrollableArea::create();
ScrollbarThemeMock mockTheme;
Scrollbar* scrollbar = Scrollbar::createForTesting(

Powered by Google App Engine
This is Rietveld 408576698