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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Rebase and fix build issues. Created 3 years, 9 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/cursor_unittest.cc
diff --git a/services/ui/ws/cursor_unittest.cc b/services/ui/ws/cursor_unittest.cc
index 732eb51894ee97cb06562bb4abee8c206608cead..a25c73fafe5a40c134cdc00c9af74ce6aac518fe 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));
+ (void)static_cast<PlatformDisplayDelegate*>(display)
sky 2017/03/20 15:42:12 Why the (void) here?
Peng 2017/03/20 17:24:14 Done.
+ ->GetEventSink()
+ ->OnEventFromSource(&event);
WindowManagerState* wms = active_display_root->window_manager_state();
wms->OnEventAck(wms->window_tree(), mojom::EventResult::HANDLED);
}

Powered by Google App Engine
This is Rietveld 408576698