OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_TEST_TEST_LOCK_STATE_CONTROLLER_DELEGATE_H_ | |
6 #define ASH_TEST_TEST_LOCK_STATE_CONTROLLER_DELEGATE_H_ | |
7 | |
8 #include "ash/wm/lock_state_controller.h" | |
9 #include "base/macros.h" | |
10 | |
11 namespace ash { | |
12 namespace test { | |
13 | |
14 // Fake implementation of PowerButtonControllerDelegate that just logs requests | |
15 // to lock the screen and shut down the device. | |
16 class TestLockStateControllerDelegate : public LockStateControllerDelegate { | |
17 public: | |
18 TestLockStateControllerDelegate(); | |
19 ~TestLockStateControllerDelegate() override; | |
20 | |
21 int num_shutdown_requests() const { return num_shutdown_requests_; } | |
22 | |
23 // LockStateControllerDelegate implementation. | |
24 void RequestShutdown() override; | |
25 | |
26 private: | |
27 int num_shutdown_requests_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(TestLockStateControllerDelegate); | |
30 }; | |
31 | |
32 } // namespace test | |
33 } // namespace ash | |
34 | |
35 #endif // ASH_TEST_TEST_LOCK_STATE_CONTROLLER_DELEGATE_H_ | |
OLD | NEW |