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

Side by Side Diff: ash/session_state_delegate_stub.h

Issue 14295008: Add ash SessionStateDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready for review. Created 7 years, 8 months 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 (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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698