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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h

Issue 2621393003: Remove ScrollbarTestSuite from platform/scroll (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScrollbarTestSuite_h 5 #ifndef ScrollbarTestSuite_h
6 #define ScrollbarTestSuite_h 6 #define ScrollbarTestSuite_h
7 7
8 #include "platform/heap/GarbageCollected.h" 8 #include "platform/heap/GarbageCollected.h"
9 #include "platform/scroll/ScrollableArea.h" 9 #include "platform/scroll/ScrollableArea.h"
10 #include "platform/scroll/Scrollbar.h" 10 #include "platform/scroll/Scrollbar.h"
11 #include "platform/scroll/ScrollbarThemeMock.h" 11 #include "platform/scroll/ScrollbarThemeMock.h"
12 #include "platform/testing/TestingPlatformSupport.h"
13 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
14 #include "wtf/PtrUtil.h" 13 #include "wtf/PtrUtil.h"
15 #include <memory> 14 #include <memory>
16 15
17 namespace blink { 16 namespace blink {
18 17
19 class MockScrollableArea : public GarbageCollectedFinalized<MockScrollableArea>, 18 class MockScrollableArea : public GarbageCollectedFinalized<MockScrollableArea>,
20 public ScrollableArea { 19 public ScrollableArea {
21 USING_GARBAGE_COLLECTED_MIXIN(MockScrollableArea); 20 USING_GARBAGE_COLLECTED_MIXIN(MockScrollableArea);
22 21
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 74
76 private: 75 private:
77 void setMaximumScrollOffset(const ScrollOffset& maximumScrollOffset) { 76 void setMaximumScrollOffset(const ScrollOffset& maximumScrollOffset) {
78 m_maximumScrollOffset = maximumScrollOffset; 77 m_maximumScrollOffset = maximumScrollOffset;
79 } 78 }
80 79
81 ScrollOffset m_scrollOffset; 80 ScrollOffset m_scrollOffset;
82 ScrollOffset m_maximumScrollOffset; 81 ScrollOffset m_maximumScrollOffset;
83 }; 82 };
84 83
85 class ScrollbarTestSuite : public testing::Test {
86 public:
87 ScrollbarTestSuite() {}
88
89 void SetUp() override {
90 m_config.compositorSupport = Platform::current()->compositorSupport();
Takashi Toyoshima 2017/01/12 13:19:47 We already have the same logic inside TestingPlatf
91 }
92
93 protected:
94 TestingPlatformSupport::Config m_config;
95 };
96
97 } // namespace blink 84 } // namespace blink
98 85
99 #endif 86 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698