| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test/ash_test_helper.h" | 5 #include "ash/test/ash_test_helper.h" |
| 6 | 6 |
| 7 #include "ash/accelerators/accelerator_controller_delegate_aura.h" | 7 #include "ash/accelerators/accelerator_controller_delegate_aura.h" |
| 8 #include "ash/aura/wm_shell_aura.h" | 8 #include "ash/aura/wm_shell_aura.h" |
| 9 #include "ash/common/test/test_session_state_delegate.h" | 9 #include "ash/common/test/test_session_state_delegate.h" |
| 10 #include "ash/common/test/test_system_tray_delegate.h" | 10 #include "ash/common/test/test_system_tray_delegate.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 if (is_mash) | 136 if (is_mash) |
| 137 CreateMashWindowManager(); | 137 CreateMashWindowManager(); |
| 138 else | 138 else |
| 139 CreateShell(); | 139 CreateShell(); |
| 140 | 140 |
| 141 aura::test::EnvTestHelper().SetInputStateLookup( | 141 aura::test::EnvTestHelper().SetInputStateLookup( |
| 142 std::unique_ptr<aura::InputStateLookup>()); | 142 std::unique_ptr<aura::InputStateLookup>()); |
| 143 | 143 |
| 144 session_controller_client_.reset( | 144 session_controller_client_.reset( |
| 145 new TestSessionControllerClient(WmShell::Get()->session_controller())); | 145 new TestSessionControllerClient(Shell::Get()->session_controller())); |
| 146 session_controller_client_->InitializeAndBind(); | 146 session_controller_client_->InitializeAndBind(); |
| 147 | 147 |
| 148 Shell* shell = Shell::GetInstance(); | 148 Shell* shell = Shell::GetInstance(); |
| 149 if (start_session) | 149 if (start_session) |
| 150 session_controller_client_->CreatePredefinedUserSessions(1); | 150 session_controller_client_->CreatePredefinedUserSessions(1); |
| 151 | 151 |
| 152 if (!is_mash) { | 152 if (!is_mash) { |
| 153 // ScreenLayoutObserver is specific to classic-ash. | 153 // ScreenLayoutObserver is specific to classic-ash. |
| 154 // Tests that change the display configuration generally don't care about | 154 // Tests that change the display configuration generally don't care about |
| 155 // the notifications and the popup UI can interfere with things like | 155 // the notifications and the popup UI can interfere with things like |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 std::set<RootWindowController*> roots = | 370 std::set<RootWindowController*> roots = |
| 371 window_manager_app_->window_manager()->GetRootWindowControllers(); | 371 window_manager_app_->window_manager()->GetRootWindowControllers(); |
| 372 std::vector<RootWindowController*> ordered_roots; | 372 std::vector<RootWindowController*> ordered_roots; |
| 373 ordered_roots.insert(ordered_roots.begin(), roots.begin(), roots.end()); | 373 ordered_roots.insert(ordered_roots.begin(), roots.begin(), roots.end()); |
| 374 std::sort(ordered_roots.begin(), ordered_roots.end(), &CompareByDisplayId); | 374 std::sort(ordered_roots.begin(), ordered_roots.end(), &CompareByDisplayId); |
| 375 return ordered_roots; | 375 return ordered_roots; |
| 376 } | 376 } |
| 377 | 377 |
| 378 } // namespace test | 378 } // namespace test |
| 379 } // namespace ash | 379 } // namespace ash |
| OLD | NEW |