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/animation/scrollbar_animation_controller_linear_fade.h" | 5 #include "cc/animation/scrollbar_animation_controller_linear_fade.h" |
6 | 6 |
7 #include "cc/scrollbar_layer_impl.h" | 7 #include "cc/layers/scrollbar_layer_impl.h" |
8 #include "cc/test/fake_impl_proxy.h" | 8 #include "cc/test/fake_impl_proxy.h" |
9 #include "cc/test/fake_layer_tree_host_impl.h" | 9 #include "cc/test/fake_layer_tree_host_impl.h" |
10 #include "cc/test/fake_web_scrollbar_theme_geometry.h" | 10 #include "cc/test/fake_web_scrollbar_theme_geometry.h" |
11 #include "cc/trees/single_thread_proxy.h" | 11 #include "cc/trees/single_thread_proxy.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 namespace { | 15 namespace { |
16 | 16 |
17 class ScrollbarAnimationControllerLinearFadeTest : public testing::Test { | 17 class ScrollbarAnimationControllerLinearFadeTest : public testing::Test { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 m_scrollbarController->animate(time); | 159 m_scrollbarController->animate(time); |
160 EXPECT_FLOAT_EQ(1.0f / 3.0f, m_scrollbarLayer->opacity()); | 160 EXPECT_FLOAT_EQ(1.0f / 3.0f, m_scrollbarLayer->opacity()); |
161 | 161 |
162 time += base::TimeDelta::FromSeconds(1); | 162 time += base::TimeDelta::FromSeconds(1); |
163 m_scrollbarController->animate(time); | 163 m_scrollbarController->animate(time); |
164 EXPECT_FLOAT_EQ(0, m_scrollbarLayer->opacity()); | 164 EXPECT_FLOAT_EQ(0, m_scrollbarLayer->opacity()); |
165 } | 165 } |
166 | 166 |
167 } // namespace | 167 } // namespace |
168 } // namespace cc | 168 } // namespace cc |
OLD | NEW |