| Index: ui/wm/core/capture_controller_unittest.cc
|
| diff --git a/ui/wm/core/capture_controller_unittest.cc b/ui/wm/core/capture_controller_unittest.cc
|
| index ecbe720ae2b96de6d26d8faf18556040895ed3ad..8e3e38c2bb89ba0eb79d12c5c4990b360b4ee0b9 100644
|
| --- a/ui/wm/core/capture_controller_unittest.cc
|
| +++ b/ui/wm/core/capture_controller_unittest.cc
|
| @@ -114,9 +114,10 @@ TEST_F(CaptureControllerTest, ResetMouseEventHandlerOnCapture) {
|
|
|
| // Make a synthesized mouse down event. Ensure that the WindowEventDispatcher
|
| // will dispatch further mouse events to |w1|.
|
| - ui::MouseEvent mouse_pressed_event(ui::ET_MOUSE_PRESSED, gfx::Point(5, 5),
|
| - gfx::Point(5, 5), ui::EventTimeForNow(), 0,
|
| - 0);
|
| + ui::MouseEvent mouse_pressed_event(
|
| + ui::ET_MOUSE_PRESSED, gfx::Point(5, 5), gfx::Point(5, 5),
|
| + ui::EventTimeForNow(), 0, 0,
|
| + ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| DispatchEventUsingWindowDispatcher(&mouse_pressed_event);
|
| EXPECT_EQ(w1.get(), host()->dispatcher()->mouse_pressed_handler());
|
|
|
| @@ -257,8 +258,9 @@ TEST_F(CaptureControllerTest, GestureResetWithCapture) {
|
| EXPECT_EQ(nullptr, capture_client->GetCaptureWindow());
|
|
|
| // Send a mouse click. We no longer hold capture so this should not crash.
|
| - ui::MouseEvent mouse_press(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
|
| - base::TimeTicks(), 0, 0);
|
| + ui::MouseEvent mouse_press(
|
| + ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), base::TimeTicks(), 0, 0,
|
| + ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| DispatchEventUsingWindowDispatcher(&mouse_press);
|
| }
|
|
|
|
|