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

Unified Diff: services/ui/ws/event_dispatcher_unittest.cc

Issue 2655303004: Add id properties to PointerEvent (Closed)
Patch Set: pointer id Created 3 years, 10 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: services/ui/ws/event_dispatcher_unittest.cc
diff --git a/services/ui/ws/event_dispatcher_unittest.cc b/services/ui/ws/event_dispatcher_unittest.cc
index 5e059270eade0ffd818bcdecf53f073ac47c0861..7d35a153f38a8927be6cf8325d8b2fcbf021af1d 100644
--- a/services/ui/ws/event_dispatcher_unittest.cc
+++ b/services/ui/ws/event_dispatcher_unittest.cc
@@ -1308,7 +1308,7 @@ TEST_F(EventDispatcherTest, ProcessPointerEvents) {
}
{
- const int touch_id = 3;
+ const uint32_t touch_id = 3U;
const ui::PointerEvent pointer_event(
ui::TouchEvent(ui::ET_TOUCH_RELEASED, gfx::Point(25, 20), touch_id,
base::TimeTicks()));
@@ -1326,7 +1326,7 @@ TEST_F(EventDispatcherTest, ProcessPointerEvents) {
ui::PointerEvent* dispatched_event = details->event->AsPointerEvent();
EXPECT_EQ(gfx::Point(25, 20), dispatched_event->root_location());
EXPECT_EQ(gfx::Point(15, 10), dispatched_event->location());
- EXPECT_EQ(touch_id, dispatched_event->pointer_id());
+ EXPECT_EQ(touch_id, dispatched_event->pointer_details().id);
}
}

Powered by Google App Engine
This is Rietveld 408576698