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

Side by Side Diff: ash/test/test_shutdown_client.h

Issue 2471643002: mash: remove the LockStateControllerDelegate. (Closed)
Patch Set: sky comments Created 4 years, 1 month 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.cc ('k') | ash/test/test_shutdown_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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_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_
OLDNEW
« no previous file with comments | « ash/test/test_lock_state_controller_delegate.cc ('k') | ash/test/test_shutdown_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698