Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: cc/animation/scrollbar_animation_controller_linear_fade_unittest.cc

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/animation/scrollbar_animation_controller_linear_fade.cc ('k') | cc/append_quads_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/animation/scrollbar_animation_controller_linear_fade.cc ('k') | cc/append_quads_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698