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

Unified Diff: components/mus/ws/window_manager_state_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/test_utils.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_manager_state_unittest.cc
diff --git a/components/mus/ws/window_manager_state_unittest.cc b/components/mus/ws/window_manager_state_unittest.cc
index 1cfe2942f8fc44430cc619e22b9301e0d62a59a4..12171e10dd62ab9d19a5117317df9a494a2b5354 100644
--- a/components/mus/ws/window_manager_state_unittest.cc
+++ b/components/mus/ws/window_manager_state_unittest.cc
@@ -139,7 +139,7 @@ TEST_F(WindowManagerStateTest, NullAccelerator) {
WindowTree* target_tree = tree();
TestChangeTracker* tracker = wm_client()->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
state->OnEventAck(target_tree, mojom::EventResult::UNHANDLED);
@@ -156,7 +156,7 @@ TEST_F(WindowManagerStateTest, PostTargetAccelerator) {
DispatchInputEventToWindow(target, true, key, accelerator.get());
TestChangeTracker* tracker = wm_client()->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
window_manager_state()->OnEventAck(tree(), mojom::EventResult::UNHANDLED);
@@ -174,7 +174,7 @@ TEST_F(WindowManagerStateTest, ClientHandlesEvent) {
DispatchInputEventToWindow(target, true, key, accelerator.get());
TestChangeTracker* tracker = wm_client()->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
window_manager_state()->OnEventAck(tree(), mojom::EventResult::HANDLED);
@@ -191,7 +191,7 @@ TEST_F(WindowManagerStateTest, AcceleratorDeleted) {
DispatchInputEventToWindow(target, true, key, accelerator.get());
TestChangeTracker* tracker = wm_client()->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
accelerator.reset();
@@ -211,7 +211,7 @@ TEST_F(WindowManagerStateTest, EnqueuedAccelerators) {
DispatchInputEventToWindow(target, true, key, accelerator.get());
TestChangeTracker* tracker = wm_client()->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
tracker->changes()->clear();
@@ -229,7 +229,7 @@ TEST_F(WindowManagerStateTest, EnqueuedAccelerators) {
WindowTreeTestApi(target_tree).ClearAck();
state->OnEventAck(target_tree, mojom::EventResult::UNHANDLED);
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
EXPECT_TRUE(window_manager()->on_accelerator_called());
EXPECT_EQ(accelerator->id(), window_manager()->on_accelerator_id());
@@ -244,7 +244,7 @@ TEST_F(WindowManagerStateTest, DeleteTree) {
DispatchInputEventToWindow(target, true, key, accelerator.get());
TestChangeTracker* tracker = wm_client()->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
window_manager_state()->OnWillDestroyTree(tree());
@@ -267,7 +267,7 @@ TEST_F(WindowManagerStateTest, DeleteNonRootTree) {
DispatchInputEventToWindow(target, true, key, accelerator.get());
TestChangeTracker* tracker = embed_connection->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=2,1 event_action=1",
+ EXPECT_EQ("InputEvent window=2,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
EXPECT_TRUE(wm_client()->tracker()->changes()->empty());
@@ -283,7 +283,7 @@ TEST_F(WindowManagerStateTest, AckTimeout) {
DispatchInputEventToWindow(window(), true, key, accelerator.get());
TestChangeTracker* tracker = wm_client()->tracker();
EXPECT_EQ(1u, tracker->changes()->size());
- EXPECT_EQ("InputEvent window=1,1 event_action=1",
+ EXPECT_EQ("InputEvent window=1,1 event_action=7",
ChangesToDescription1(*tracker->changes())[0]);
OnEventAckTimeout(window()->id().client_id);
« no previous file with comments | « components/mus/ws/test_utils.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698