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

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

Issue 468043003: Ignore min/max gesture bounds for mouse or stylus-derived gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GestureTextSelectorTest Created 6 years, 4 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/gesture_detection/gesture_event_data.cc ('k') | ui/events/gesture_detection/gesture_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2502219f27ebd0061e12c19be51d53ec637d262c..8cdf5246b9a993a3a320a11d9f1df47f0a1b015e 100644
--- a/ui/events/gesture_detection/gesture_event_data_packet_unittest.cc
+++ b/ui/events/gesture_detection/gesture_event_data_packet_unittest.cc
@@ -18,6 +18,7 @@ const float kTouchY = 14.2f;
GestureEventData CreateGesture(EventType type) {
return GestureEventData(GestureEventDetails(type, 0, 0),
0,
+ MotionEvent::TOOL_TYPE_FINGER,
base::TimeTicks(),
kTouchX,
kTouchY,
@@ -31,9 +32,10 @@ GestureEventData CreateGesture(EventType type) {
bool GestureEquals(const GestureEventData& lhs, const GestureEventData& rhs) {
return lhs.type() == rhs.type() &&
- lhs.motion_event_id == rhs.motion_event_id && 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.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;
}
bool PacketEquals(const GestureEventDataPacket& lhs,
« no previous file with comments | « ui/events/gesture_detection/gesture_event_data.cc ('k') | ui/events/gesture_detection/gesture_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698