OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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_SESSION_STATE_DELEGATE_STUB_H_ | |
6 #define ASH_SESSION_STATE_DELEGATE_STUB_H_ | |
7 | |
8 #include "ash/session_state_delegate.h" | |
9 #include "base/basictypes.h" | |
10 #include "base/compiler_specific.h" | |
11 | |
12 namespace ash { | |
13 | |
14 // Stub implementation of SessionStateDelegate for testing. | |
15 class SessionStateDelegateStub : public SessionStateDelegate { | |
16 public: | |
17 SessionStateDelegateStub(); | |
18 virtual ~SessionStateDelegateStub(); | |
19 | |
20 // SessionStateDelegate: | |
21 virtual bool HasActiveUser() const OVERRIDE; | |
22 virtual bool IsActiveUserSessionStarted() const OVERRIDE; | |
23 virtual bool CanLockScreen() const OVERRIDE; | |
24 virtual bool IsScreenLocked() const OVERRIDE; | |
25 virtual void LockScreen() OVERRIDE; | |
26 virtual void UnlockScreen() OVERRIDE; | |
27 | |
28 private: | |
29 bool screen_locked_; | |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub); | |
32 }; | |
33 | |
34 } // namespace ash | |
35 | |
36 #endif // ASH_SESSION_STATE_DELEGATE_STUB_H_ | |
OLD | NEW |