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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Address review 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/window_tree_unittest.cc
diff --git a/services/ui/ws/window_tree_unittest.cc b/services/ui/ws/window_tree_unittest.cc
index 87f4bd0bab9c81bd4b3e9c4b041b66f5a63b4049..aad736e5460f0f05ee737fc63fb866722efec7e6 100644
--- a/services/ui/ws/window_tree_unittest.cc
+++ b/services/ui/ws/window_tree_unittest.cc
@@ -147,7 +147,8 @@ class WindowTreeTest : public testing::Test {
}
void DispatchEventWithoutAck(const ui::Event& event) {
- DisplayTestApi(display()).OnEvent(event);
+ std::unique_ptr<Event> tmp = ui::Event::Clone(event);
+ DisplayTestApi(display()).OnEvent(tmp.get());
}
void set_window_manager_internal(WindowTree* tree,

Powered by Google App Engine
This is Rietveld 408576698