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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/test/wm_test_helper.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller_unittest.cc
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
index badb5f160adb2cc2b274d73ff2b03634caef54e0..cdcfc0ace62f05546e2d6855c515c44c733d1e8e 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -387,7 +387,7 @@ TEST_F(RootWindowControllerTest, ModalContainer) {
WmShell* wm_shell = WmShell::Get();
RootWindowController* controller = wm_shell->GetPrimaryRootWindowController();
EXPECT_EQ(LoginStatus::USER,
- wm_shell->system_tray_delegate()->GetUserLoginStatus());
+ Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(NULL));
@@ -399,7 +399,7 @@ TEST_F(RootWindowControllerTest, ModalContainer) {
wm_shell->session_controller()->LockScreenAndFlushForTest();
EXPECT_EQ(LoginStatus::LOCKED,
- wm_shell->system_tray_delegate()->GetUserLoginStatus());
+ Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
EXPECT_EQ(
GetLayoutManager(controller, kShellWindowId_LockSystemModalContainer),
controller->GetSystemModalLayoutManager(nullptr));
@@ -426,7 +426,7 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
SessionController* session_controller = WmShell::Get()->session_controller();
SetUserLoggedIn(false);
EXPECT_EQ(LoginStatus::NOT_LOGGED_IN,
- WmShell::Get()->system_tray_delegate()->GetUserLoginStatus());
+ Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
EXPECT_EQ(0, session_controller->NumberOfLoggedInUsers());
EXPECT_FALSE(session_controller->IsActiveUserSessionStarted());
@@ -450,7 +450,7 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
SetUserLoggedIn(true);
SetSessionStarted(true);
EXPECT_EQ(LoginStatus::USER,
- WmShell::Get()->system_tray_delegate()->GetUserLoginStatus());
+ Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
EXPECT_EQ(1, session_controller->NumberOfLoggedInUsers());
EXPECT_TRUE(session_controller->IsActiveUserSessionStarted());
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
« no previous file with comments | « ash/mus/test/wm_test_helper.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698