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

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

Issue 1755223002: Adds WindowManagerManager to mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and WindowManagerState Created 4 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 | « components/mus/ws/window_tree_impl.cc ('k') | mash/wm/root_window_controller.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 e31150fa027cb09abde91cfb1e7ea07d09c86da6..b71174776025f9bbec8a265a32bfa5b69a42d7f4 100644
--- a/components/mus/ws/window_tree_unittest.cc
+++ b/components/mus/ws/window_tree_unittest.cc
@@ -261,19 +261,27 @@ class TestConnectionManagerDelegate : public ConnectionManagerDelegate {
private:
// ConnectionManagerDelegate:
void OnNoMoreRootConnections() override {}
-
ClientConnection* CreateClientConnectionForEmbedAtWindow(
ConnectionManager* connection_manager,
mojo::InterfaceRequest<mus::mojom::WindowTree> service_request,
ServerWindow* root,
uint32_t policy_bitmask,
mus::mojom::WindowTreeClientPtr client) override {
- // Used by ConnectionManager::AddRoot.
scoped_ptr<WindowTreeImpl> service(
new WindowTreeImpl(connection_manager, root, policy_bitmask));
last_connection_ = new TestClientConnection(std::move(service));
return last_connection_;
}
+ ClientConnection* CreateClientConnectionForWindowManager(
+ WindowTreeHostImpl* tree_host,
+ ServerWindow* window,
+ const mojom::Display& display,
+ uint32_t user_id,
+ mojom::WindowManagerFactory* factory) override {
+ NOTREACHED();
+ return nullptr;
+ }
+ void CreateDefaultWindowTreeHosts() override { NOTREACHED(); }
TestClientConnection* last_connection_;
WindowTreeHostImpl* window_tree_host_;
@@ -641,7 +649,7 @@ TEST_F(WindowTreeTest, FocusOnPointer) {
EXPECT_EQ(child1, window_tree_host_->GetFocusedWindow());
ASSERT_EQ(wm_client()->tracker()->changes()->size(), 1u)
<< SingleChangeToDescription(*wm_client()->tracker()->changes());
- EXPECT_EQ("InputEvent window=0,2 event_action=4",
+ EXPECT_EQ("InputEvent window=0,3 event_action=4",
ChangesToDescription1(*wm_client()->tracker()->changes())[0]);
EXPECT_TRUE(connection1_client->tracker()->changes()->empty());
}
@@ -819,7 +827,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,2 event_action=5",
+ EXPECT_EQ("InputEvent window=0,3 event_action=5",
ChangesToDescription1(*wm_client()->tracker()->changes())[0]);
wm_client()->tracker()->changes()->clear();
@@ -830,7 +838,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,2 event_action=5",
+ EXPECT_EQ("InputEvent window=0,3 event_action=5",
ChangesToDescription1(*wm_client()->tracker()->changes())[0]);
}
« no previous file with comments | « components/mus/ws/window_tree_impl.cc ('k') | mash/wm/root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698