Chromium Code Reviews| Index: services/ui/ws/cursor_unittest.cc |
| diff --git a/services/ui/ws/cursor_unittest.cc b/services/ui/ws/cursor_unittest.cc |
| index 732eb51894ee97cb06562bb4abee8c206608cead..572d67599dafda1928e53fe74915783de199e910 100644 |
| --- a/services/ui/ws/cursor_unittest.cc |
| +++ b/services/ui/ws/cursor_unittest.cc |
| @@ -90,8 +90,11 @@ class CursorTest : public testing::Test { |
| WindowManagerDisplayRoot* active_display_root = |
| display->GetActiveWindowManagerDisplayRoot(); |
| ASSERT_TRUE(active_display_root); |
| - static_cast<PlatformDisplayDelegate*>(display)->OnEvent(PointerEvent( |
| - MouseEvent(ET_MOUSE_MOVED, p, p, base::TimeTicks(), 0, 0))); |
| + PointerEvent event( |
| + MouseEvent(ET_MOUSE_MOVED, p, p, base::TimeTicks(), 0, 0)); |
| + ignore_result(static_cast<PlatformDisplayDelegate*>(display) |
|
sky
2017/03/20 20:03:25
You no longer need the ignore_result here.
Peng
2017/03/20 20:25:10
Done
|
| + ->GetEventSink() |
| + ->OnEventFromSource(&event)); |
| WindowManagerState* wms = active_display_root->window_manager_state(); |
| wms->OnEventAck(wms->window_tree(), mojom::EventResult::HANDLED); |
| } |