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

Side by Side Diff: remoting/client/ui/fling_animation_unittest.cc

Issue 2879383002: [CRD iOS] Move UI stuff into a subdirectory (Closed)
Patch Set: Fix include Created 3 years, 7 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
« no previous file with comments | « remoting/client/ui/fling_animation.cc ('k') | remoting/client/ui/fling_tracker.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 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
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
OLDNEW
« no previous file with comments | « remoting/client/ui/fling_animation.cc ('k') | remoting/client/ui/fling_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698