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

Unified Diff: content/browser/renderer_host/input/web_input_event_util_unittest.cc

Issue 999423003: Set the unique_event_id when converting from TouchEvent to WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: content/browser/renderer_host/input/web_input_event_util_unittest.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util_unittest.cc b/content/browser/renderer_host/input/web_input_event_util_unittest.cc
index 0ea59b13063a071e9db18b6426beea44facca32f..862d6c1486393143eb4d4026236233bc7be69290 100644
--- a/content/browser/renderer_host/input/web_input_event_util_unittest.cc
+++ b/content/browser/renderer_host/input/web_input_event_util_unittest.cc
@@ -38,6 +38,7 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
MotionEventGeneric event(
MotionEvent::ACTION_DOWN, base::TimeTicks::Now(), pointer);
event.set_flags(ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN);
+ event.set_unique_event_id(123456U);
WebTouchEvent expected_event;
expected_event.type = WebInputEvent::TouchStart;
@@ -56,6 +57,7 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
expected_pointer.rotationAngle = 0.f;
expected_pointer.force = pointer.pressure;
expected_event.touches[0] = expected_pointer;
+ expected_event.uniqueTouchEventId = 123456U;
WebTouchEvent actual_event =
ui::CreateWebTouchEventFromMotionEvent(event, false);
« no previous file with comments | « content/browser/renderer_host/input/touch_emulator.cc ('k') | content/common/input/synthetic_web_input_event_builders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698