OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
sky
2016/11/02 23:06:52
2016
Elliot Glaysher
2016/11/02 23:12:28
Done.
| |
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_SHUTDOWN_CLIENT_H_ | |
6 #define ASH_TEST_TEST_SHUTDOWN_CLIENT_H_ | |
7 | |
8 #include "ash/public/interfaces/shutdown.mojom.h" | |
9 #include "base/macros.h" | |
10 | |
11 namespace ash { | |
12 namespace test { | |
13 | |
14 // Fake implementation of ShutdownClient that just logs requests to lock the | |
15 // screen and shut down the device. | |
16 class TestShutdownClient : public mojom::ShutdownClient { | |
17 public: | |
18 TestShutdownClient(); | |
19 ~TestShutdownClient() 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(TestShutdownClient); | |
30 }; | |
31 | |
32 } // namespace test | |
33 } // namespace ash | |
34 | |
35 #endif // ASH_TEST_TEST_SHUTDOWN_CLIENT_H_ | |
OLD | NEW |