OLD | NEW |
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 <memory> | 8 #include <memory> |
9 #include "platform/heap/GarbageCollected.h" | 9 #include "platform/heap/GarbageCollected.h" |
| 10 #include "platform/scheduler/child/web_scheduler.h" |
10 #include "platform/scroll/ScrollableArea.h" | 11 #include "platform/scroll/ScrollableArea.h" |
11 #include "platform/scroll/Scrollbar.h" | 12 #include "platform/scroll/Scrollbar.h" |
12 #include "platform/scroll/ScrollbarThemeMock.h" | 13 #include "platform/scroll/ScrollbarThemeMock.h" |
13 #include "platform/wtf/PtrUtil.h" | 14 #include "platform/wtf/PtrUtil.h" |
14 #include "public/platform/Platform.h" | 15 #include "public/platform/Platform.h" |
15 #include "public/platform/WebScheduler.h" | |
16 #include "public/platform/WebThread.h" | 16 #include "public/platform/WebThread.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class MockScrollableArea : public GarbageCollectedFinalized<MockScrollableArea>, | 21 class MockScrollableArea : public GarbageCollectedFinalized<MockScrollableArea>, |
22 public ScrollableArea { | 22 public ScrollableArea { |
23 USING_GARBAGE_COLLECTED_MIXIN(MockScrollableArea); | 23 USING_GARBAGE_COLLECTED_MIXIN(MockScrollableArea); |
24 | 24 |
25 public: | 25 public: |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 maximum_scroll_offset_ = maximum_scroll_offset; | 88 maximum_scroll_offset_ = maximum_scroll_offset; |
89 } | 89 } |
90 | 90 |
91 ScrollOffset scroll_offset_; | 91 ScrollOffset scroll_offset_; |
92 ScrollOffset maximum_scroll_offset_; | 92 ScrollOffset maximum_scroll_offset_; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace blink | 95 } // namespace blink |
96 | 96 |
97 #endif | 97 #endif |
OLD | NEW |