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

Side by Side Diff: ash/test/test_lock_state_controller_delegate.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: Rebase 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 unified diff | Download patch
« no previous file with comments | « ash/test/test_lock_state_controller_delegate.h ('k') | ash/wm/lock_state_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/test/test_lock_state_controller_delegate.h" 5 #include "ash/test/test_lock_state_controller_delegate.h"
6 6
7 namespace ash { 7 namespace ash {
8 namespace test { 8 namespace test {
9 9
10 TestLockStateControllerDelegate::TestLockStateControllerDelegate() 10 TestLockStateControllerDelegate::TestLockStateControllerDelegate()
11 : num_lock_requests_(0), 11 : num_lock_requests_(0),
12 num_restart_requests_(0),
13 num_shutdown_requests_(0) { 12 num_shutdown_requests_(0) {
14 } 13 }
15 14
16 TestLockStateControllerDelegate::~TestLockStateControllerDelegate() { 15 TestLockStateControllerDelegate::~TestLockStateControllerDelegate() {
17 } 16 }
18 17
19 void TestLockStateControllerDelegate::RequestLockScreen() { 18 void TestLockStateControllerDelegate::RequestLockScreen() {
20 ++num_lock_requests_; 19 ++num_lock_requests_;
21 } 20 }
22 21
23 void TestLockStateControllerDelegate::RequestRestart() {
24 ++num_restart_requests_;
25 }
26
27 void TestLockStateControllerDelegate::RequestShutdown() { 22 void TestLockStateControllerDelegate::RequestShutdown() {
28 ++num_shutdown_requests_; 23 ++num_shutdown_requests_;
29 } 24 }
30 25
31 } // namespace test 26 } // namespace test
32 } // namespace ash 27 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_lock_state_controller_delegate.h ('k') | ash/wm/lock_state_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698