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

Unified Diff: ui/aura/test/mus/test_window_tree.cc

Issue 2456623002: Fixes to WindowTreeHostMus (Closed)
Patch Set: merge Created 4 years, 2 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 | « ui/aura/test/mus/test_window_tree.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/mus/test_window_tree.cc
diff --git a/ui/aura/test/mus/test_window_tree.cc b/ui/aura/test/mus/test_window_tree.cc
index 1a437040965ca6075d5e86ca5279df7ca2ad36c6..2487007bd4bba9fd1705cdc6f1fc80623ad583aa 100644
--- a/ui/aura/test/mus/test_window_tree.cc
+++ b/ui/aura/test/mus/test_window_tree.cc
@@ -85,6 +85,15 @@ bool TestWindowTree::GetAndRemoveFirstChangeOfType(WindowTreeChangeType type,
return false;
}
+size_t TestWindowTree::GetChangeCountForType(WindowTreeChangeType type) {
+ size_t count = 0;
+ for (const auto& change : changes_) {
+ if (change.type == type)
+ ++count;
+ }
+ return count;
+}
+
void TestWindowTree::OnChangeReceived(uint32_t change_id,
WindowTreeChangeType type) {
changes_.push_back({type, change_id});
« no previous file with comments | « ui/aura/test/mus/test_window_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698