| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_base.h" | 5 #include "ash/test/ash_test_base.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/common/session/session_controller.h" | 10 #include "ash/common/session/session_controller.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 TestScreenshotDelegate* AshTestBase::GetScreenshotDelegate() { | 299 TestScreenshotDelegate* AshTestBase::GetScreenshotDelegate() { |
| 300 return ash_test_helper_->test_screenshot_delegate(); | 300 return ash_test_helper_->test_screenshot_delegate(); |
| 301 } | 301 } |
| 302 | 302 |
| 303 TestSessionControllerClient* AshTestBase::GetSessionControllerClient() { | 303 TestSessionControllerClient* AshTestBase::GetSessionControllerClient() { |
| 304 return ash_test_helper_->test_session_controller_client(); | 304 return ash_test_helper_->test_session_controller_client(); |
| 305 } | 305 } |
| 306 | 306 |
| 307 TestSystemTrayDelegate* AshTestBase::GetSystemTrayDelegate() { | 307 TestSystemTrayDelegate* AshTestBase::GetSystemTrayDelegate() { |
| 308 return static_cast<TestSystemTrayDelegate*>( | 308 return static_cast<TestSystemTrayDelegate*>( |
| 309 WmShell::Get()->system_tray_delegate()); | 309 Shell::Get()->system_tray_delegate()); |
| 310 } | 310 } |
| 311 | 311 |
| 312 void AshTestBase::SetSessionStarted(bool session_started) { | 312 void AshTestBase::SetSessionStarted(bool session_started) { |
| 313 if (session_started) | 313 if (session_started) |
| 314 GetSessionControllerClient()->CreatePredefinedUserSessions(1); | 314 GetSessionControllerClient()->CreatePredefinedUserSessions(1); |
| 315 else | 315 else |
| 316 GetSessionControllerClient()->Reset(); | 316 GetSessionControllerClient()->Reset(); |
| 317 } | 317 } |
| 318 | 318 |
| 319 void AshTestBase::SetUserLoggedIn(bool user_logged_in) { | 319 void AshTestBase::SetUserLoggedIn(bool user_logged_in) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( | 400 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( |
| 401 display_manager()->GetSecondaryDisplay().id()); | 401 display_manager()->GetSecondaryDisplay().id()); |
| 402 } | 402 } |
| 403 | 403 |
| 404 display::Display AshTestBase::GetSecondaryDisplay() { | 404 display::Display AshTestBase::GetSecondaryDisplay() { |
| 405 return ash_test_helper_->GetSecondaryDisplay(); | 405 return ash_test_helper_->GetSecondaryDisplay(); |
| 406 } | 406 } |
| 407 | 407 |
| 408 } // namespace test | 408 } // namespace test |
| 409 } // namespace ash | 409 } // namespace ash |
| OLD | NEW |