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

Unified Diff: ash/test/test_lock_state_controller_delegate.cc

Issue 776093004: Add device policy to disallow shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/test/test_lock_state_controller_delegate.cc
diff --git a/ash/test/test_lock_state_controller_delegate.cc b/ash/test/test_lock_state_controller_delegate.cc
index 55e46ac60473dfe9fd63a97d01b2cb0c7c6fde56..42a2458846200c32188aef8c8842b31c4ab254e0 100644
--- a/ash/test/test_lock_state_controller_delegate.cc
+++ b/ash/test/test_lock_state_controller_delegate.cc
@@ -9,6 +9,7 @@ namespace test {
TestLockStateControllerDelegate::TestLockStateControllerDelegate()
: num_lock_requests_(0),
+ num_restart_requests_(0),
num_shutdown_requests_(0) {
}
@@ -19,6 +20,10 @@ void TestLockStateControllerDelegate::RequestLockScreen() {
++num_lock_requests_;
}
+void TestLockStateControllerDelegate::RequestRestart() {
+ ++num_restart_requests_;
+}
+
void TestLockStateControllerDelegate::RequestShutdown() {
++num_shutdown_requests_;
}

Powered by Google App Engine
This is Rietveld 408576698