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 #include "core/frame/LocalFrameView.h" | 5 #include "core/frame/LocalFrameView.h" |
| 6 #include "core/frame/WebLocalFrameBase.h" |
6 #include "core/layout/LayoutView.h" | 7 #include "core/layout/LayoutView.h" |
7 #include "core/paint/PaintLayerScrollableArea.h" | 8 #include "core/paint/PaintLayerScrollableArea.h" |
8 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 9 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
9 #include "platform/testing/TestingPlatformSupport.h" | 10 #include "platform/testing/TestingPlatformSupport.h" |
10 #include "platform/testing/UnitTestHelpers.h" | 11 #include "platform/testing/UnitTestHelpers.h" |
11 #include "public/platform/WebThemeEngine.h" | 12 #include "public/platform/WebThemeEngine.h" |
12 #include "public/web/WebScriptSource.h" | 13 #include "public/web/WebScriptSource.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "web/WebLocalFrameImpl.h" | |
15 #include "web/tests/sim/SimDisplayItemList.h" | 15 #include "web/tests/sim/SimDisplayItemList.h" |
16 #include "web/tests/sim/SimRequest.h" | 16 #include "web/tests/sim/SimRequest.h" |
17 #include "web/tests/sim/SimTest.h" | 17 #include "web/tests/sim/SimTest.h" |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 class ScrollbarsTest : private ScopedRootLayerScrollingForTest, public SimTest { | 23 class ScrollbarsTest : private ScopedRootLayerScrollingForTest, public SimTest { |
24 public: | 24 public: |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 EXPECT_EQ(StubWebThemeEngine::kMinimumHorizontalLength, | 200 EXPECT_EQ(StubWebThemeEngine::kMinimumHorizontalLength, |
201 theme.ThumbLength(*scrollable_area->HorizontalScrollbar())); | 201 theme.ThumbLength(*scrollable_area->HorizontalScrollbar())); |
202 EXPECT_EQ(StubWebThemeEngine::kMinimumVerticalLength, | 202 EXPECT_EQ(StubWebThemeEngine::kMinimumVerticalLength, |
203 theme.ThumbLength(*scrollable_area->VerticalScrollbar())); | 203 theme.ThumbLength(*scrollable_area->VerticalScrollbar())); |
204 } | 204 } |
205 #endif | 205 #endif |
206 | 206 |
207 } // namespace | 207 } // namespace |
208 | 208 |
209 } // namespace blink | 209 } // namespace blink |
OLD | NEW |