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

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

Issue 510793003: Remove ui::TouchEvent -> blink::WebTouchEvent conversion methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address jdduke's comments. Created 5 years, 11 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/motion_event_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/motion_event_aura_unittest.cc
diff --git a/ui/events/gestures/motion_event_aura_unittest.cc b/ui/events/gestures/motion_event_aura_unittest.cc
index d1fdadf906fc452ab97db0874a618c3baa991d3c..0fbbba67eb1d0ebd03ba0836ed185441b805371f 100644
--- a/ui/events/gestures/motion_event_aura_unittest.cc
+++ b/ui/events/gestures/motion_event_aura_unittest.cc
@@ -299,6 +299,7 @@ TEST(MotionEventAuraTest, TapParams) {
pressure = 0.654f;
TouchEvent move1 = TouchWithTapParams(
ET_TOUCH_MOVED, ids[1], radius_x, radius_y, rotation_angle, pressure);
+ move1.set_location(gfx::Point(20, 21));
jdduke (slow) 2015/01/06 16:49:54 Can we get an additional test or 2 (or 3) covering
tdresser 2015/01/07 17:01:15 Done.
event.OnTouch(move1);
EXPECT_EQ(2U, event.GetPointerCount());
@@ -326,6 +327,7 @@ TEST(MotionEventAuraTest, Timestamps) {
TouchEvent move0 = TouchWithTime(
ui::ET_TOUCH_MOVED, ids[0], times_in_ms[2]);
+ move0.set_location(gfx::PointF(12, 21));
event.OnTouch(move0);
EXPECT_EQ(MsToTicks(times_in_ms[2]), event.GetEventTime());
@@ -356,6 +358,7 @@ TEST(MotionEventAuraTest, CachedAction) {
EXPECT_EQ(1, clone->GetActionIndex());
TouchEvent move0 = TouchWithType(ET_TOUCH_MOVED, ids[0]);
+ move0.set_location(gfx::PointF(10, 12));
event.OnTouch(move0);
EXPECT_EQ(MotionEvent::ACTION_MOVE, event.GetAction());
EXPECT_EQ(2U, event.GetPointerCount());
« no previous file with comments | « ui/events/gestures/motion_event_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698