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

Side by Side Diff: ash/test/test_lock_state_controller_delegate.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
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/test/lock_state_controller_test_api.cc ('k') | ash/test/test_lock_state_controller_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698