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

Unified Diff: components/mus/ws/window_tree_unittest.cc

Issue 1939133002: StructTraits to map mus::mojom::Event to unique_ptr<ui::Event> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback. Created 4 years, 6 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 | « components/mus/ws/window_tree_client_unittest.cc ('k') | mash/app_driver/app_driver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_unittest.cc
diff --git a/components/mus/ws/window_tree_unittest.cc b/components/mus/ws/window_tree_unittest.cc
index 6b0d6bc8789cc00bf2aaa4b1dbbf74ccad064176..2bf859857eb81ff99d34f73869655adea419a08d 100644
--- a/components/mus/ws/window_tree_unittest.cc
+++ b/components/mus/ws/window_tree_unittest.cc
@@ -260,7 +260,7 @@ TEST_F(WindowTreeTest, FocusOnPointer) {
EXPECT_EQ(child1, display()->GetFocusedWindow());
ASSERT_EQ(wm_client()->tracker()->changes()->size(), 1u)
<< SingleChangeToDescription(*wm_client()->tracker()->changes());
- EXPECT_EQ("InputEvent window=0,3 event_action=4",
+ EXPECT_EQ("InputEvent window=0,3 event_action=16",
ChangesToDescription1(*wm_client()->tracker()->changes())[0]);
EXPECT_TRUE(tree1_client->tracker()->changes()->empty());
}
@@ -281,7 +281,7 @@ TEST_F(WindowTreeTest, BasicInputEventTarget) {
ASSERT_EQ(2u, embed_client->tracker()->changes()->size());
EXPECT_EQ("Focused id=2,1",
ChangesToDescription1(*embed_client->tracker()->changes())[0]);
- EXPECT_EQ("InputEvent window=2,1 event_action=4",
+ EXPECT_EQ("InputEvent window=2,1 event_action=16",
ChangesToDescription1(*embed_client->tracker()->changes())[1]);
}
@@ -307,7 +307,7 @@ TEST_F(WindowTreeTest, SetEventObserver) {
// Pointer-down events are sent to the client.
DispatchEventAndAckImmediately(pointer_down);
ASSERT_EQ(1u, client->tracker()->changes()->size());
- EXPECT_EQ("EventObserved event_action=4 event_observer_id=111",
+ EXPECT_EQ("EventObserved event_action=16 event_observer_id=111",
ChangesToDescription1(*client->tracker()->changes())[0]);
client->tracker()->changes()->clear();
@@ -356,7 +356,7 @@ TEST_F(WindowTreeTest, SetEventObserverSendsOnce) {
// observer.
DispatchEventAndAckImmediately(pointer_up);
ASSERT_EQ(1u, client->tracker()->changes()->size());
- EXPECT_EQ("InputEvent window=2,1 event_action=6 event_observer_id=111",
+ EXPECT_EQ("InputEvent window=2,1 event_action=18 event_observer_id=111",
SingleChangeToDescription(*client->tracker()->changes()));
}
@@ -377,7 +377,7 @@ TEST_F(WindowTreeTest, SetEventObserverWrongUser) {
// An event is observed by the wm tree, but not by the other user's tree.
DispatchEventAndAckImmediately(CreatePointerUpEvent(5, 5));
ASSERT_EQ(1u, wm_client()->tracker()->changes()->size());
- EXPECT_EQ("InputEvent window=0,3 event_action=6 event_observer_id=111",
+ EXPECT_EQ("InputEvent window=0,3 event_action=18 event_observer_id=111",
SingleChangeToDescription(*wm_client()->tracker()->changes()));
ASSERT_EQ(0u, other_binding->client()->tracker()->changes()->size());
}
@@ -540,7 +540,7 @@ TEST_F(WindowTreeTest, EventAck) {
wm_client()->tracker()->changes()->clear();
DispatchEventWithoutAck(CreateMouseMoveEvent(21, 22));
ASSERT_EQ(1u, wm_client()->tracker()->changes()->size());
- EXPECT_EQ("InputEvent window=0,3 event_action=5",
+ EXPECT_EQ("InputEvent window=0,3 event_action=17",
ChangesToDescription1(*wm_client()->tracker()->changes())[0]);
wm_client()->tracker()->changes()->clear();
@@ -551,7 +551,7 @@ TEST_F(WindowTreeTest, EventAck) {
// Ack the first event. That should trigger the dispatch of the second event.
AckPreviousEvent();
ASSERT_EQ(1u, wm_client()->tracker()->changes()->size());
- EXPECT_EQ("InputEvent window=0,3 event_action=5",
+ EXPECT_EQ("InputEvent window=0,3 event_action=17",
ChangesToDescription1(*wm_client()->tracker()->changes())[0]);
}
« no previous file with comments | « components/mus/ws/window_tree_client_unittest.cc ('k') | mash/app_driver/app_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698