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 "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" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 }; | 80 }; |
81 | 81 |
82 class ScrollbarTestSuite : public testing::Test { | 82 class ScrollbarTestSuite : public testing::Test { |
83 public: | 83 public: |
84 ScrollbarTestSuite() {} | 84 ScrollbarTestSuite() {} |
85 | 85 |
86 void SetUp() override { | 86 void SetUp() override { |
87 TestingPlatformSupport::Config config; | 87 TestingPlatformSupport::Config config; |
88 config.compositorSupport = Platform::current()->compositorSupport(); | 88 config.compositorSupport = Platform::current()->compositorSupport(); |
89 m_fakePlatform = | 89 m_fakePlatform = |
90 makeUnique<TestingPlatformSupportWithMockScheduler>(config); | 90 WTF::makeUnique<TestingPlatformSupportWithMockScheduler>(config); |
91 } | 91 } |
92 | 92 |
93 void TearDown() override { m_fakePlatform = nullptr; } | 93 void TearDown() override { m_fakePlatform = nullptr; } |
94 | 94 |
95 private: | 95 private: |
96 std::unique_ptr<TestingPlatformSupportWithMockScheduler> m_fakePlatform; | 96 std::unique_ptr<TestingPlatformSupportWithMockScheduler> m_fakePlatform; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace blink | 99 } // namespace blink |
100 | 100 |
101 #endif | 101 #endif |
OLD | NEW |