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

Side by Side Diff: ash/test/ash_test_base.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: cleanup Created 3 years, 9 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
OLDNEW
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 void AshTestBase::RunAllPendingInMessageLoop() { 294 void AshTestBase::RunAllPendingInMessageLoop() {
295 ash_test_helper_->RunAllPendingInMessageLoop(); 295 ash_test_helper_->RunAllPendingInMessageLoop();
296 } 296 }
297 297
298 TestScreenshotDelegate* AshTestBase::GetScreenshotDelegate() { 298 TestScreenshotDelegate* AshTestBase::GetScreenshotDelegate() {
299 return ash_test_helper_->test_screenshot_delegate(); 299 return ash_test_helper_->test_screenshot_delegate();
300 } 300 }
301 301
302 TestSystemTrayDelegate* AshTestBase::GetSystemTrayDelegate() { 302 TestSystemTrayDelegate* AshTestBase::GetSystemTrayDelegate() {
303 return static_cast<TestSystemTrayDelegate*>( 303 return static_cast<TestSystemTrayDelegate*>(
304 WmShell::Get()->system_tray_delegate()); 304 Shell::Get()->system_tray_delegate());
305 } 305 }
306 306
307 void AshTestBase::SetSessionStarted(bool session_started) { 307 void AshTestBase::SetSessionStarted(bool session_started) {
308 AshTestHelper::GetTestSessionStateDelegate()->SetActiveUserSessionStarted( 308 AshTestHelper::GetTestSessionStateDelegate()->SetActiveUserSessionStarted(
309 session_started); 309 session_started);
310 } 310 }
311 311
312 void AshTestBase::SetSessionStarting() { 312 void AshTestBase::SetSessionStarting() {
313 AshTestHelper::GetTestSessionStateDelegate()->set_session_state( 313 AshTestHelper::GetTestSessionStateDelegate()->set_session_state(
314 session_manager::SessionState::ACTIVE); 314 session_manager::SessionState::ACTIVE);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( 398 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId(
399 display_manager()->GetSecondaryDisplay().id()); 399 display_manager()->GetSecondaryDisplay().id());
400 } 400 }
401 401
402 display::Display AshTestBase::GetSecondaryDisplay() { 402 display::Display AshTestBase::GetSecondaryDisplay() {
403 return ash_test_helper_->GetSecondaryDisplay(); 403 return ash_test_helper_->GetSecondaryDisplay();
404 } 404 }
405 405
406 } // namespace test 406 } // namespace test
407 } // namespace ash 407 } // namespace ash
OLDNEW
« ash/shell.h ('K') | « ash/test/BUILD.gn ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698