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

Unified Diff: components/mus/public/cpp/tests/test_window_tree.cc

Issue 1811913004: mus: Allow SetModal to fail gracefully (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed constructor/destructor Created 4 years, 9 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: components/mus/public/cpp/tests/test_window_tree.cc
diff --git a/components/mus/public/cpp/tests/test_window_tree.cc b/components/mus/public/cpp/tests/test_window_tree.cc
index 10140f75d608a05fa2cc368aefe9a445cc18a3ce..1411f34f1d4ac7a16b1e7aa24e69952854e247f4 100644
--- a/components/mus/public/cpp/tests/test_window_tree.cc
+++ b/components/mus/public/cpp/tests/test_window_tree.cc
@@ -91,7 +91,10 @@ void TestWindowTree::RemoveTransientWindowFromParent(
uint32_t change_id,
uint32_t transient_window_id) {}
-void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {}
+void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {
+ got_change_ = true;
+ change_id_ = change_id;
+}
void TestWindowTree::ReorderWindow(uint32_t change_id,
uint32_t window_id,

Powered by Google App Engine
This is Rietveld 408576698