| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "remoting/client/fling_animation.h" | 5 #include "remoting/client/ui/fling_animation.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/test/simple_test_tick_clock.h" | 11 #include "base/test/simple_test_tick_clock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 fling_animation_.SetVelocity(-1000.f, 1000.f); | 144 fling_animation_.SetVelocity(-1000.f, 1000.f); |
| 145 EXPECT_TRUE(fling_animation_.IsAnimationInProgress()); | 145 EXPECT_TRUE(fling_animation_.IsAnimationInProgress()); |
| 146 TickAnimation(base::TimeDelta::FromMilliseconds(16)); | 146 TickAnimation(base::TimeDelta::FromMilliseconds(16)); |
| 147 EXPECT_TRUE(fling_animation_.IsAnimationInProgress()); | 147 EXPECT_TRUE(fling_animation_.IsAnimationInProgress()); |
| 148 AssertDeltaChanged(); | 148 AssertDeltaChanged(); |
| 149 EXPECT_LT(received_dx_, 0); | 149 EXPECT_LT(received_dx_, 0); |
| 150 EXPECT_GT(received_dy_, 0); | 150 EXPECT_GT(received_dy_, 0); |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace remoting | 153 } // namespace remoting |
| OLD | NEW |