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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix compile issues Created 3 years, 10 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
« no previous file with comments | « no previous file | services/ui/ws/display.h » ('j') | services/ui/ws/display.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/cursor_unittest.cc
diff --git a/services/ui/ws/cursor_unittest.cc b/services/ui/ws/cursor_unittest.cc
index c2061185e353d9b5bcebe187e0371d4e5f14d99e..2ca526216c075aa9182227440252ee4dd1c732ef 100644
--- a/services/ui/ws/cursor_unittest.cc
+++ b/services/ui/ws/cursor_unittest.cc
@@ -95,7 +95,9 @@ class CursorTest : public testing::Test {
WindowManagerDisplayRoot* active_display_root =
display->GetActiveWindowManagerDisplayRoot();
ASSERT_TRUE(active_display_root);
- static_cast<PlatformDisplayDelegate*>(display)->OnEvent(PointerEvent(
+
+ DisplayTestApi display_test_api(display);
+ display_test_api.OnEvent(PointerEvent(
MouseEvent(ET_MOUSE_MOVED, p, p, base::TimeTicks(), 0, 0)));
WindowManagerState* wms = active_display_root->window_manager_state();
wms->OnEventAck(wms->window_tree(), mojom::EventResult::HANDLED);
« no previous file with comments | « no previous file | services/ui/ws/display.h » ('j') | services/ui/ws/display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698