OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/input/top_controls_manager.h" | 5 #include "cc/input/top_controls_manager.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/time.h" | 8 #include "base/time/time.h" |
9 #include "cc/input/top_controls_manager_client.h" | 9 #include "cc/input/top_controls_manager_client.h" |
10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
11 #include "cc/test/fake_impl_proxy.h" | 11 #include "cc/test/fake_impl_proxy.h" |
12 #include "cc/test/fake_layer_tree_host_impl.h" | 12 #include "cc/test/fake_layer_tree_host_impl.h" |
13 #include "cc/trees/layer_tree_impl.h" | 13 #include "cc/trees/layer_tree_impl.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/gfx/vector2d_f.h" | 15 #include "ui/gfx/vector2d_f.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 namespace { | 18 namespace { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 EXPECT_GT(manager->controls_top_offset(), previous_offset); | 281 EXPECT_GT(manager->controls_top_offset(), previous_offset); |
282 previous_offset = manager->controls_top_offset(); | 282 previous_offset = manager->controls_top_offset(); |
283 } | 283 } |
284 EXPECT_FALSE(manager->animation()); | 284 EXPECT_FALSE(manager->animation()); |
285 EXPECT_EQ(0.f, manager->controls_top_offset()); | 285 EXPECT_EQ(0.f, manager->controls_top_offset()); |
286 EXPECT_EQ(100.f, manager->content_top_offset()); | 286 EXPECT_EQ(100.f, manager->content_top_offset()); |
287 } | 287 } |
288 | 288 |
289 } // namespace | 289 } // namespace |
290 } // namespace cc | 290 } // namespace cc |
OLD | NEW |