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

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

Issue 1639223003: Makes it so each windowtreeclient can use whatever ids it wants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup 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/server_window_surface.cc ('k') | components/mus/ws/window_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_change_tracker.cc
diff --git a/components/mus/ws/test_change_tracker.cc b/components/mus/ws/test_change_tracker.cc
index 2ea6796428be2ce02612d45bec0b82b15a08fb57..6a7100c8e92d114254f5be37146009aac05a7200 100644
--- a/components/mus/ws/test_change_tracker.cc
+++ b/components/mus/ws/test_change_tracker.cc
@@ -149,9 +149,12 @@ std::string SingleChangeToDescription(const std::vector<Change>& changes) {
}
std::string SingleWindowDescription(const std::vector<TestWindow>& windows) {
- if (windows.size() != 1u)
- return "more than one changes and expected only one";
- return windows[0].ToString();
+ if (windows.empty())
+ return "no windows";
+ std::string result;
+ for (const TestWindow& window : windows)
+ result += window.ToString();
+ return result;
}
std::string ChangeWindowDescription(const std::vector<Change>& changes) {
« no previous file with comments | « components/mus/ws/server_window_surface.cc ('k') | components/mus/ws/window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698