OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/web_contents/aura/overscroll_window_animation.h" | 5 #include "content/browser/web_contents/aura/overscroll_window_animation.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "ui/aura/test/aura_test_base.h" | 9 #include "ui/aura/test/aura_test_base.h" |
9 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
10 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 11 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
11 #include "ui/compositor/scoped_layer_animation_settings.h" | 12 #include "ui/compositor/scoped_layer_animation_settings.h" |
12 #include "ui/compositor/test/layer_animator_test_controller.h" | 13 #include "ui/compositor/test/layer_animator_test_controller.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 class OverscrollWindowAnimationTest | 17 class OverscrollWindowAnimationTest |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // The animation has finished, OverscrollCompleted should have been fired. | 217 // The animation has finished, OverscrollCompleted should have been fired. |
217 animator->Step(start_time + duration); | 218 animator->Step(start_time + duration); |
218 EXPECT_FALSE(owa()->is_active()); | 219 EXPECT_FALSE(owa()->is_active()); |
219 EXPECT_FALSE(overscroll_started()); | 220 EXPECT_FALSE(overscroll_started()); |
220 EXPECT_TRUE(overscroll_completing()); | 221 EXPECT_TRUE(overscroll_completing()); |
221 EXPECT_TRUE(overscroll_completed()); | 222 EXPECT_TRUE(overscroll_completed()); |
222 EXPECT_FALSE(overscroll_aborted()); | 223 EXPECT_FALSE(overscroll_aborted()); |
223 } | 224 } |
224 | 225 |
225 } // namespace content | 226 } // namespace content |
OLD | NEW |