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

Unified Diff: ui/events/gesture_detection/gesture_event_data_packet_unittest.cc

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumbed aura gestures, fixed unittests. 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
Index: ui/events/gesture_detection/gesture_event_data_packet_unittest.cc
diff --git a/ui/events/gesture_detection/gesture_event_data_packet_unittest.cc b/ui/events/gesture_detection/gesture_event_data_packet_unittest.cc
index 76f61726a69446d58af7e8a4d142ac1c213e32e4..694ac0004b63a6c2ea706a1ae43cf732f61e1790 100644
--- a/ui/events/gesture_detection/gesture_event_data_packet_unittest.cc
+++ b/ui/events/gesture_detection/gesture_event_data_packet_unittest.cc
@@ -15,6 +15,7 @@ namespace {
const float kTouchX = 13.7f;
const float kTouchY = 14.2f;
+const uint32_t uniqueTouchEventId = 1234U;
GestureEventData CreateGesture(EventType type) {
return GestureEventData(GestureEventDetails(type),
@@ -27,7 +28,8 @@ GestureEventData CreateGesture(EventType type) {
kTouchY + 10.f,
1,
gfx::RectF(kTouchX - 1.f, kTouchY - 1.f, 2.f, 2.f),
- EF_NONE);
+ EF_NONE,
+ uniqueTouchEventId);
}
} // namespace
@@ -37,7 +39,8 @@ bool GestureEquals(const GestureEventData& lhs, const GestureEventData& rhs) {
lhs.motion_event_id == rhs.motion_event_id &&
lhs.primary_tool_type == rhs.primary_tool_type &&
lhs.time == rhs.time && lhs.x == rhs.x && lhs.y == rhs.y &&
- lhs.raw_x == rhs.raw_x && lhs.raw_y == rhs.raw_y;
+ lhs.raw_x == rhs.raw_x && lhs.raw_y == rhs.raw_y &&
+ lhs.unique_touch_event_id == rhs.unique_touch_event_id;
}
bool PacketEquals(const GestureEventDataPacket& lhs,

Powered by Google App Engine
This is Rietveld 408576698