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

Side by Side Diff: ash/mus/test/wm_test_base.cc

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « ash/mus/root_windows_observer.h ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/mus/test/wm_test_base.h" 5 #include "ash/mus/test/wm_test_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/mus/root_window_controller.h" 10 #include "ash/mus/root_window_controller.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 test_helper_.reset(new WmTestHelper); 193 test_helper_.reset(new WmTestHelper);
194 test_helper_->Init(); 194 test_helper_->Init();
195 } 195 }
196 196
197 void WmTestBase::TearDown() { 197 void WmTestBase::TearDown() {
198 teardown_called_ = true; 198 teardown_called_ = true;
199 test_helper_.reset(); 199 test_helper_.reset();
200 } 200 }
201 201
202 std::vector<RootWindowController*> WmTestBase::GetRootsOrderedByDisplayId() { 202 std::vector<RootWindowController*> WmTestBase::GetRootsOrderedByDisplayId() {
203 std::set<RootWindowController*> roots = 203 std::set<RootWindowController*> roots = test_helper_->window_manager_app()
204 test_helper_->window_manager_app()->GetRootControllers(); 204 ->window_manager()
205 ->GetRootWindowControllers();
205 std::vector<RootWindowController*> ordered_roots; 206 std::vector<RootWindowController*> ordered_roots;
206 ordered_roots.insert(ordered_roots.begin(), roots.begin(), roots.end()); 207 ordered_roots.insert(ordered_roots.begin(), roots.begin(), roots.end());
207 std::sort(ordered_roots.begin(), ordered_roots.end(), &CompareByDisplayId); 208 std::sort(ordered_roots.begin(), ordered_roots.end(), &CompareByDisplayId);
208 return ordered_roots; 209 return ordered_roots;
209 } 210 }
210 211
211 } // namespace mus 212 } // namespace mus
212 } // namespace ash 213 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/root_windows_observer.h ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698