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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 2864663002: cros: Merge SystemTrayDelegate::GetUserLoginStatus (Closed)
Patch Set: update PaletteTray to exclude ARC kiosk Created 3 years, 7 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/system_tray_delegate_mus.cc ('k') | ash/session/session_controller.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 3992e8d4f8b4da4f49f771b77ceaba080dc40bbe..4693707605b56e7ae3cdce27e80fe74c1410caee 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -11,7 +11,6 @@
#include "ash/session/session_controller.h"
#include "ash/shell.h"
#include "ash/shell_port.h"
-#include "ash/system/tray/system_tray_delegate.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/test_session_controller_client.h"
#include "ash/wm/system_modal_container_layout_manager.h"
@@ -387,8 +386,7 @@ TEST_F(RootWindowControllerTest, ModalContainer) {
UpdateDisplay("600x600");
RootWindowController* controller =
ShellPort::Get()->GetPrimaryRootWindowController();
- EXPECT_EQ(LoginStatus::USER,
- Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
+ EXPECT_TRUE(Shell::Get()->session_controller()->IsActiveUserSessionStarted());
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(NULL));
@@ -399,8 +397,7 @@ TEST_F(RootWindowControllerTest, ModalContainer) {
WmWindow::Get(session_modal_widget->GetNativeWindow())));
Shell::Get()->session_controller()->LockScreenAndFlushForTest();
- EXPECT_EQ(LoginStatus::LOCKED,
- Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
+ EXPECT_TRUE(Shell::Get()->session_controller()->IsScreenLocked());
EXPECT_EQ(
GetLayoutManager(controller, kShellWindowId_LockSystemModalContainer),
controller->GetSystemModalLayoutManager(nullptr));
@@ -426,8 +423,6 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
// Configure login screen environment.
SessionController* session_controller = Shell::Get()->session_controller();
SetUserLoggedIn(false);
- EXPECT_EQ(LoginStatus::NOT_LOGGED_IN,
- Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
EXPECT_EQ(0, session_controller->NumberOfLoggedInUsers());
EXPECT_FALSE(session_controller->IsActiveUserSessionStarted());
@@ -450,8 +445,6 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
// Configure user session environment.
SetUserLoggedIn(true);
SetSessionStarted(true);
- EXPECT_EQ(LoginStatus::USER,
- 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/system_tray_delegate_mus.cc ('k') | ash/session/session_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698