OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/scrollbar_layer.h" | 5 #include "cc/scrollbar_layer.h" |
6 | 6 |
7 #include "cc/scrollbar_animation_controller.h" | 7 #include "cc/scrollbar_animation_controller.h" |
8 #include "cc/scrollbar_layer_impl.h" | 8 #include "cc/scrollbar_layer_impl.h" |
9 #include "cc/single_thread_proxy.h" | 9 #include "cc/single_thread_proxy.h" |
10 #include "cc/test/fake_impl_proxy.h" | 10 #include "cc/test/fake_impl_proxy.h" |
11 #include "cc/test/fake_layer_tree_host_impl.h" | 11 #include "cc/test/fake_layer_tree_host_impl.h" |
12 #include "cc/test/fake_scrollbar_theme_painter.h" | 12 #include "cc/test/fake_scrollbar_theme_painter.h" |
13 #include "cc/test/fake_web_scrollbar.h" | 13 #include "cc/test/fake_web_scrollbar.h" |
14 #include "cc/test/fake_web_scrollbar_theme_geometry.h" | 14 #include "cc/test/fake_web_scrollbar_theme_geometry.h" |
15 #include "cc/test/layer_tree_test_common.h" | 15 #include "cc/test/layer_tree_test_common.h" |
16 #include "cc/tree_synchronizer.h" | 16 #include "cc/tree_synchronizer.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemeGe
ometry.h" | 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemeGe
ometry.h" |
19 | 20 |
20 namespace cc { | 21 namespace cc { |
21 namespace { | 22 namespace { |
22 | 23 |
23 TEST(ScrollbarLayerTest, resolveScrollLayerPointer) | 24 TEST(ScrollbarLayerTest, resolveScrollLayerPointer) |
24 { | 25 { |
25 FakeImplProxy proxy; | 26 FakeImplProxy proxy; |
26 FakeLayerTreeHostImpl hostImpl(&proxy); | 27 FakeLayerTreeHostImpl hostImpl(&proxy); |
27 | 28 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 TEST_F(ScrollbarLayerTestMaxTextureSize, runTest) { | 155 TEST_F(ScrollbarLayerTestMaxTextureSize, runTest) { |
155 FakeWebGraphicsContext3D context; | 156 FakeWebGraphicsContext3D context; |
156 int max_size = 0; | 157 int max_size = 0; |
157 context.getIntegerv(GL_MAX_TEXTURE_SIZE, &max_size); | 158 context.getIntegerv(GL_MAX_TEXTURE_SIZE, &max_size); |
158 setScrollbarBounds(gfx::Size(max_size + 100, max_size + 100)); | 159 setScrollbarBounds(gfx::Size(max_size + 100, max_size + 100)); |
159 runTest(true); | 160 runTest(true); |
160 } | 161 } |
161 | 162 |
162 } // namespace | 163 } // namespace |
163 } // namespace cc | 164 } // namespace cc |
OLD | NEW |