| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |