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

Unified Diff: ui/events/gestures/gesture_provider_aura_unittest.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/gesture_provider_aura_unittest.cc
diff --git a/ui/events/gestures/gesture_provider_aura_unittest.cc b/ui/events/gestures/gesture_provider_aura_unittest.cc
index e4d9f7acc43d0847c66b302c1a437698abad8f89..efdd94c3965be45b852c3cbb411f39bb898ea93c 100644
--- a/ui/events/gestures/gesture_provider_aura_unittest.cc
+++ b/ui/events/gestures/gesture_provider_aura_unittest.cc
@@ -38,7 +38,7 @@ class GestureProviderAuraTest : public testing::Test,
};
TEST_F(GestureProviderAuraTest, IgnoresExtraPressEvents) {
- base::TimeDelta time = ui::EventTimeForNow();
+ base::TimeTicks time = ui::EventTimeForNow();
TouchEvent press1(ET_TOUCH_PRESSED, gfx::Point(10, 10), 0, time);
EXPECT_TRUE(provider()->OnTouchEvent(&press1));
@@ -48,7 +48,7 @@ TEST_F(GestureProviderAuraTest, IgnoresExtraPressEvents) {
}
TEST_F(GestureProviderAuraTest, IgnoresExtraMoveOrReleaseEvents) {
- base::TimeDelta time = ui::EventTimeForNow();
+ base::TimeTicks time = ui::EventTimeForNow();
TouchEvent press1(ET_TOUCH_PRESSED, gfx::Point(10, 10), 0, time);
EXPECT_TRUE(provider()->OnTouchEvent(&press1));
@@ -73,7 +73,7 @@ TEST_F(GestureProviderAuraTest, IgnoresIdenticalMoveEvents) {
const int kTouchId0 = 5;
const int kTouchId1 = 3;
- base::TimeDelta time = ui::EventTimeForNow();
+ base::TimeTicks time = ui::EventTimeForNow();
TouchEvent press0_1(ET_TOUCH_PRESSED, gfx::Point(9, 10), kTouchId0, time);
EXPECT_TRUE(provider()->OnTouchEvent(&press0_1));
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698