| 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 "config.h" | |
| 6 | |
| 7 #include "cc/scrollbar_animation_controller_linear_fade.h" | 5 #include "cc/scrollbar_animation_controller_linear_fade.h" |
| 8 | 6 |
| 9 #include "cc/scrollbar_layer_impl.h" | 7 #include "cc/scrollbar_layer_impl.h" |
| 10 #include "cc/single_thread_proxy.h" | 8 #include "cc/single_thread_proxy.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 10 |
| 13 using namespace cc; | 11 using namespace cc; |
| 14 | 12 |
| 15 namespace { | 13 namespace { |
| 16 | 14 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 m_scrollbarController->animate(9); | 106 m_scrollbarController->animate(9); |
| 109 EXPECT_FLOAT_EQ(2 / 3.0f, m_scrollbarLayer->opacity()); | 107 EXPECT_FLOAT_EQ(2 / 3.0f, m_scrollbarLayer->opacity()); |
| 110 m_scrollbarController->animate(10); | 108 m_scrollbarController->animate(10); |
| 111 EXPECT_FLOAT_EQ(1 / 3.0f, m_scrollbarLayer->opacity()); | 109 EXPECT_FLOAT_EQ(1 / 3.0f, m_scrollbarLayer->opacity()); |
| 112 m_scrollbarController->animate(11); | 110 m_scrollbarController->animate(11); |
| 113 EXPECT_FLOAT_EQ(0, m_scrollbarLayer->opacity()); | 111 EXPECT_FLOAT_EQ(0, m_scrollbarLayer->opacity()); |
| 114 | 112 |
| 115 } | 113 } |
| 116 | 114 |
| 117 } // annoymous namespace | 115 } // annoymous namespace |
| OLD | NEW |