| Index: ash/session_state_delegate_stub.h
|
| diff --git a/ash/session_state_delegate_stub.h b/ash/session_state_delegate_stub.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..db9b711483865301b7451d4ae1b0018dd4d33d4c
|
| --- /dev/null
|
| +++ b/ash/session_state_delegate_stub.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef ASH_SESSION_STATE_DELEGATE_STUB_H_
|
| +#define ASH_SESSION_STATE_DELEGATE_STUB_H_
|
| +
|
| +#include "ash/session_state_delegate.h"
|
| +#include "base/basictypes.h"
|
| +#include "base/compiler_specific.h"
|
| +
|
| +namespace ash {
|
| +
|
| +// Stub implementation of SessionStateDelegate for testing.
|
| +class SessionStateDelegateStub : public SessionStateDelegate {
|
| + public:
|
| + SessionStateDelegateStub();
|
| + virtual ~SessionStateDelegateStub();
|
| +
|
| + // SessionStateDelegate:
|
| + virtual bool HasActiveUser() const OVERRIDE;
|
| + virtual bool IsActiveUserSessionStarted() const OVERRIDE;
|
| + virtual bool CanLockScreen() const OVERRIDE;
|
| + virtual bool IsScreenLocked() const OVERRIDE;
|
| + virtual void LockScreen() OVERRIDE;
|
| + virtual void UnlockScreen() OVERRIDE;
|
| +
|
| + private:
|
| + bool screen_locked_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub);
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_SESSION_STATE_DELEGATE_STUB_H_
|
|
|