| 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/test/test_session_state_delegate.h" | 10 #include "ash/common/test/test_session_state_delegate.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 WmShell::Get()->system_tray_delegate()); | 312 WmShell::Get()->system_tray_delegate()); |
| 313 } | 313 } |
| 314 | 314 |
| 315 void AshTestBase::SetSessionStarted(bool session_started) { | 315 void AshTestBase::SetSessionStarted(bool session_started) { |
| 316 AshTestHelper::GetTestSessionStateDelegate()->SetActiveUserSessionStarted( | 316 AshTestHelper::GetTestSessionStateDelegate()->SetActiveUserSessionStarted( |
| 317 session_started); | 317 session_started); |
| 318 } | 318 } |
| 319 | 319 |
| 320 void AshTestBase::SetSessionStarting() { | 320 void AshTestBase::SetSessionStarting() { |
| 321 AshTestHelper::GetTestSessionStateDelegate()->set_session_state( | 321 AshTestHelper::GetTestSessionStateDelegate()->set_session_state( |
| 322 SessionStateDelegate::SESSION_STATE_ACTIVE); | 322 session_manager::SessionState::ACTIVE); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void AshTestBase::SetUserLoggedIn(bool user_logged_in) { | 325 void AshTestBase::SetUserLoggedIn(bool user_logged_in) { |
| 326 AshTestHelper::GetTestSessionStateDelegate()->SetHasActiveUser( | 326 AshTestHelper::GetTestSessionStateDelegate()->SetHasActiveUser( |
| 327 user_logged_in); | 327 user_logged_in); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void AshTestBase::SetShouldLockScreenBeforeSuspending(bool should_lock) { | 330 void AshTestBase::SetShouldLockScreenBeforeSuspending(bool should_lock) { |
| 331 AshTestHelper::GetTestSessionStateDelegate() | 331 AshTestHelper::GetTestSessionStateDelegate() |
| 332 ->SetShouldLockScreenBeforeSuspending(should_lock); | 332 ->SetShouldLockScreenBeforeSuspending(should_lock); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 397 |
| 398 void AshTestBase::SwapPrimaryDisplay() { | 398 void AshTestBase::SwapPrimaryDisplay() { |
| 399 if (display::Screen::GetScreen()->GetNumDisplays() <= 1) | 399 if (display::Screen::GetScreen()->GetNumDisplays() <= 1) |
| 400 return; | 400 return; |
| 401 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( | 401 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( |
| 402 display_manager()->GetSecondaryDisplay().id()); | 402 display_manager()->GetSecondaryDisplay().id()); |
| 403 } | 403 } |
| 404 | 404 |
| 405 } // namespace test | 405 } // namespace test |
| 406 } // namespace ash | 406 } // namespace ash |
| OLD | NEW |