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

Unified Diff: ash/mus/window_manager_unittest.cc

Issue 2301353003: Changes ownership of WindowTreeClient (Closed)
Patch Set: fix navigation Created 4 years, 3 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 | « ash/mus/window_manager_application.cc ('k') | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_unittest.cc
diff --git a/ash/mus/window_manager_unittest.cc b/ash/mus/window_manager_unittest.cc
index 1e77c8ca35797f57ea096657a8444c59e589108c..badbe80412c0988c25c278b1965669fd14bd5a31 100644
--- a/ash/mus/window_manager_unittest.cc
+++ b/ash/mus/window_manager_unittest.cc
@@ -23,7 +23,8 @@ class WindowTreeClientDelegate : public ui::WindowTreeClientDelegate {
private:
// ui::WindowTreeClientDelegate:
void OnEmbed(ui::Window* root) override {}
- void OnDidDestroyClient(ui::WindowTreeClient* client) override {}
+ void OnEmbedRootDestroyed(ui::Window* root) override {}
+ void OnLostConnection(ui::WindowTreeClient* client) override {}
void OnPointerEventObserved(const ui::PointerEvent& event,
ui::Window* target) override {}
@@ -51,7 +52,7 @@ TEST_F(WindowManagerTest, OpenWindow) {
// Connect to mus and create a new top level window. The request goes to
// |ash|, but is async.
std::unique_ptr<ui::WindowTreeClient> client(
- new ui::WindowTreeClient(&window_tree_delegate, nullptr, nullptr));
+ new ui::WindowTreeClient(&window_tree_delegate));
client->ConnectViaWindowTreeFactory(connector());
ui::Window* top_level_window = client->NewTopLevelWindow(nullptr);
ASSERT_TRUE(top_level_window);
« no previous file with comments | « ash/mus/window_manager_application.cc ('k') | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698