Index: components/mus/view_tree_unittest.cc |
diff --git a/components/mus/view_tree_unittest.cc b/components/mus/view_tree_unittest.cc |
index 7ff457862e53202015556479a670da19b9ae1d71..71380377935a8521cf136a1af52c46844d66ace9 100644 |
--- a/components/mus/view_tree_unittest.cc |
+++ b/components/mus/view_tree_unittest.cc |
@@ -251,8 +251,8 @@ mojo::EventPtr CreatePointerDownEvent(int x, int y) { |
event->action = mojo::EVENT_TYPE_POINTER_DOWN; |
event->pointer_data = mojo::PointerData::New(); |
event->pointer_data->pointer_id = 1u; |
- event->pointer_data->x = x; |
- event->pointer_data->y = y; |
+ event->pointer_data->location->x = x; |
+ event->pointer_data->location->y = y; |
return event.Pass(); |
} |
@@ -261,8 +261,8 @@ mojo::EventPtr CreatePointerUpEvent(int x, int y) { |
event->action = mojo::EVENT_TYPE_POINTER_UP; |
event->pointer_data = mojo::PointerData::New(); |
event->pointer_data->pointer_id = 1u; |
- event->pointer_data->x = x; |
- event->pointer_data->y = y; |
+ event->pointer_data->location->x = x; |
+ event->pointer_data->location->y = y; |
return event.Pass(); |
} |