| 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 "platform/heap/GarbageCollected.h" | 9 #include "platform/heap/GarbageCollected.h" |
| 9 #include "platform/scroll/ScrollableArea.h" | 10 #include "platform/scroll/ScrollableArea.h" |
| 10 #include "platform/scroll/Scrollbar.h" | 11 #include "platform/scroll/Scrollbar.h" |
| 11 #include "platform/scroll/ScrollbarThemeMock.h" | 12 #include "platform/scroll/ScrollbarThemeMock.h" |
| 12 #include "public/platform/Platform.h" | 13 #include "public/platform/Platform.h" |
| 13 #include "public/platform/WebScheduler.h" | 14 #include "public/platform/WebScheduler.h" |
| 14 #include "public/platform/WebThread.h" | 15 #include "public/platform/WebThread.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "wtf/PtrUtil.h" | 17 #include "wtf/PtrUtil.h" |
| 17 #include <memory> | |
| 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: |
| 26 static MockScrollableArea* create() { return new MockScrollableArea(); } | 26 static MockScrollableArea* create() { return new MockScrollableArea(); } |
| 27 | 27 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 m_maximumScrollOffset = maximumScrollOffset; | 87 m_maximumScrollOffset = maximumScrollOffset; |
| 88 } | 88 } |
| 89 | 89 |
| 90 ScrollOffset m_scrollOffset; | 90 ScrollOffset m_scrollOffset; |
| 91 ScrollOffset m_maximumScrollOffset; | 91 ScrollOffset m_maximumScrollOffset; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif | 96 #endif |
| OLD | NEW |