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

Unified Diff: ui/aura/mus/window_tree_client_unittest.cc

Issue 2897663002: chromeos: makes it possible for windows to outlive WindowTreeClient (Closed)
Patch Set: Created 3 years, 7 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
Index: ui/aura/mus/window_tree_client_unittest.cc
diff --git a/ui/aura/mus/window_tree_client_unittest.cc b/ui/aura/mus/window_tree_client_unittest.cc
index 2f8b467f1f09c6b9a237080ed6fb75126312294e..8de08458a08a45d5be596bcf7975fc2523d66908 100644
--- a/ui/aura/mus/window_tree_client_unittest.cc
+++ b/ui/aura/mus/window_tree_client_unittest.cc
@@ -2405,4 +2405,14 @@ TEST_F(WindowTreeClientClientTestHighDPI, InputEventsInDip) {
window_delegate1.last_event_location());
}
+using WindowTreeClientDestructionTest = test::AuraTestBaseMus;
+
+TEST_F(WindowTreeClientDestructionTest, Shutdown) {
+ aura::Window window(nullptr);
+ window.Init(ui::LAYER_NOT_DRAWN);
+ DeleteWindowTreeClient();
+ aura::Window window2(nullptr);
+ window2.Init(ui::LAYER_NOT_DRAWN);
+}
+
} // namespace aura

Powered by Google App Engine
This is Rietveld 408576698