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

Side by Side Diff: ui/events/android/scroller_unittest.cc

Issue 1544283002: Clean up header files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « ui/base/win/accessibility_ids_win.h ('k') | ui/events/gestures/blink/web_gesture_curve_impl.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <limits.h>
6
5 #include "base/time/time.h" 7 #include "base/time/time.h"
6 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
7 #include "ui/events/android/scroller.h" 9 #include "ui/events/android/scroller.h"
8 10
9 namespace ui { 11 namespace ui {
10 namespace { 12 namespace {
11 13
12 const float kDefaultStartX = 7.f; 14 const float kDefaultStartX = 7.f;
13 const float kDefaultStartY = 25.f; 15 const float kDefaultStartY = 25.f;
14 const float kDefaultDeltaX = -20.f; 16 const float kDefaultDeltaX = -20.f;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Try to advance further; nothing should change. 169 // Try to advance further; nothing should change.
168 EXPECT_FALSE(scroller.ComputeScrollOffset( 170 EXPECT_FALSE(scroller.ComputeScrollOffset(
169 start_time + scroll_duration * 2, &offset, &velocity)); 171 start_time + scroll_duration * 2, &offset, &velocity));
170 EXPECT_EQ(scroller.GetFinalX(), offset.x()); 172 EXPECT_EQ(scroller.GetFinalX(), offset.x());
171 EXPECT_EQ(scroller.GetFinalY(), offset.y()); 173 EXPECT_EQ(scroller.GetFinalY(), offset.y());
172 EXPECT_TRUE(scroller.IsFinished()); 174 EXPECT_TRUE(scroller.IsFinished());
173 EXPECT_EQ(scroll_duration, scroller.GetTimePassed()); 175 EXPECT_EQ(scroll_duration, scroller.GetTimePassed());
174 } 176 }
175 177
176 } // namespace ui 178 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/win/accessibility_ids_win.h ('k') | ui/events/gestures/blink/web_gesture_curve_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698