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

Unified Diff: ash/common/session/session_controller_unittest.cc

Issue 2637403007: cros: Change max users to be a constant (Closed)
Patch Set: fix test Created 3 years, 11 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/common/session/session_controller.cc ('k') | ash/mus/test/wm_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_controller_unittest.cc
diff --git a/ash/common/session/session_controller_unittest.cc b/ash/common/session/session_controller_unittest.cc
index d2a8a4ea4d7e2337ba5e7a3a5797f5d62aada789..e5eb8f490aeda7cc6aa8dfca4f83bba0f0c2e687 100644
--- a/ash/common/session/session_controller_unittest.cc
+++ b/ash/common/session/session_controller_unittest.cc
@@ -61,7 +61,6 @@ class TestSessionStateObserver : public SessionStateObserver {
};
void FillDefaultSessionInfo(mojom::SessionInfo* info) {
- info->max_users = 123;
info->can_lock_screen = true;
info->should_lock_screen_automatically = true;
info->add_user_session_policy = AddUserSessionPolicy::ALLOWED;
@@ -124,7 +123,8 @@ TEST_F(SessionControllerTest, SimpleSessionInfo) {
FillDefaultSessionInfo(&info);
SetSessionInfo(info);
- EXPECT_EQ(123, controller()->GetMaximumNumberOfLoggedInUsers());
+ EXPECT_EQ(session_manager::kMaxmiumNumberOfUserSessions,
+ controller()->GetMaximumNumberOfLoggedInUsers());
EXPECT_TRUE(controller()->CanLockScreen());
EXPECT_TRUE(controller()->ShouldLockScreenAutomatically());
« no previous file with comments | « ash/common/session/session_controller.cc ('k') | ash/mus/test/wm_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698