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

Unified Diff: ash/wm/lock_state_controller_unittest.cc

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduced scope of CL (ash only now, removed webui changes) Created 5 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
Index: ash/wm/lock_state_controller_unittest.cc
diff --git a/ash/wm/lock_state_controller_unittest.cc b/ash/wm/lock_state_controller_unittest.cc
index 4f3c4d054a9671b3a23bffe6082eff4a60f459b9..ec5af74ef6f85b5721035399aadad17da4529b4a 100644
--- a/ash/wm/lock_state_controller_unittest.cc
+++ b/ash/wm/lock_state_controller_unittest.cc
@@ -818,7 +818,7 @@ TEST_F(LockStateControllerTest, ShutdownWithoutButton) {
TEST_F(LockStateControllerTest, RequestShutdownFromLoginScreen) {
Initialize(false, user::LOGGED_IN_NONE);
- lock_state_controller_->RequestShutdown(LockStateController::POWER_OFF);
+ lock_state_controller_->RequestShutdownOrRestart();
ExpectShutdownAnimationStarted();
Advance(SessionStateAnimator::ANIMATION_SPEED_SHUTDOWN);
@@ -840,7 +840,7 @@ TEST_F(LockStateControllerTest, RequestShutdownFromLockScreen) {
Advance(SessionStateAnimator::ANIMATION_SPEED_SHUTDOWN);
ExpectPostLockAnimationFinished();
- lock_state_controller_->RequestShutdown(LockStateController::POWER_OFF);
+ lock_state_controller_->RequestShutdownOrRestart();
ExpectShutdownAnimationStarted();
Advance(SessionStateAnimator::ANIMATION_SPEED_SHUTDOWN);

Powered by Google App Engine
This is Rietveld 408576698