Index: ui/views/touchui/touch_selection_controller_impl_unittest.cc |
diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc |
index b9df2ec3b32a83aae4a2ab32c8722e4915b46da4..7a56d9479c8f85bbcb13ffa6f507ec3efbacef63 100644 |
--- a/ui/views/touchui/touch_selection_controller_impl_unittest.cc |
+++ b/ui/views/touchui/touch_selection_controller_impl_unittest.cc |
@@ -732,8 +732,10 @@ TEST_F(TouchSelectionControllerImplTest, HandlesStackAboveParent) { |
// end touch editing. |
StartTouchEditing(); |
gfx::Point test_point = GetCursorHandleDragPoint(); |
- ui::MouseEvent test_event1(ui::ET_MOUSE_MOVED, test_point, test_point, |
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE); |
+ ui::MouseEvent test_event1( |
+ ui::ET_MOUSE_MOVED, test_point, test_point, ui::EventTimeForNow(), |
+ ui::EF_NONE, ui::EF_NONE, |
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)); |
EXPECT_EQ(GetCursorHandleNativeView(), |
targeter->FindTargetForEvent(root, &test_event1)); |
EndTouchEditing(); |
@@ -745,15 +747,19 @@ TEST_F(TouchSelectionControllerImplTest, HandlesStackAboveParent) { |
// Start touch editing (in the first window) and check that the handle is not |
// above the second window. |
StartTouchEditing(); |
- ui::MouseEvent test_event2(ui::ET_MOUSE_MOVED, test_point, test_point, |
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE); |
+ ui::MouseEvent test_event2( |
+ ui::ET_MOUSE_MOVED, test_point, test_point, ui::EventTimeForNow(), |
+ ui::EF_NONE, ui::EF_NONE, |
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)); |
EXPECT_EQ(window2, targeter->FindTargetForEvent(root, &test_event2)); |
// Move the first window to top and check that the handle is kept above the |
// first window. |
window1->GetRootWindow()->StackChildAtTop(window1); |
- ui::MouseEvent test_event3(ui::ET_MOUSE_MOVED, test_point, test_point, |
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE); |
+ ui::MouseEvent test_event3( |
+ ui::ET_MOUSE_MOVED, test_point, test_point, ui::EventTimeForNow(), |
+ ui::EF_NONE, ui::EF_NONE, |
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)); |
EXPECT_EQ(GetCursorHandleNativeView(), |
targeter->FindTargetForEvent(root, &test_event3)); |
} |