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

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

Issue 1568263003: Changes top level window creation to include window state in callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn Created 4 years, 11 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') | no next file » | 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 1bbe18709923439031d599914c192f07be1ed149..9325f26dfb264ea37e470a95c5e75ad4426209c5 100644
--- a/components/mus/ws/window_tree_unittest.cc
+++ b/components/mus/ws/window_tree_unittest.cc
@@ -121,6 +121,10 @@ class TestWindowTreeClient : public mus::mojom::WindowTreeClient {
tracker_.OnEmbeddedAppDisconnected(window);
}
void OnUnembed(Id window_id) override { tracker_.OnUnembed(window_id); }
+ void OnTopLevelCreated(uint32_t change_id,
+ mojom::WindowDataPtr data) override {
+ tracker_.OnTopLevelCreated(change_id, std::move(data));
+ }
void OnWindowBoundsChanged(uint32_t window,
mojo::RectPtr old_bounds,
mojo::RectPtr new_bounds) override {
@@ -835,7 +839,8 @@ TEST_F(WindowTreeTest, NewTopLevelWindow) {
->OnWmCreatedTopLevelWindow(wm_change_id,
WindowIdToTransportId(embed_window_id2));
EXPECT_FALSE(last_client_connection()->is_paused());
- EXPECT_EQ("ChangeCompleted id=17 sucess=true",
+ EXPECT_EQ("TopLevelCreated id=17 window_id=" +
+ WindowIdToString(embed_window_id2_in_child),
SingleChangeToDescription(*embed_connection->tracker()->changes()));
embed_connection->tracker()->changes()->clear();
« no previous file with comments | « components/mus/ws/window_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698