| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SESSION_STATE_DELEGATE_STUB_H_ | 5 #ifndef ASH_SESSION_STATE_DELEGATE_STUB_H_ |
| 6 #define ASH_SESSION_STATE_DELEGATE_STUB_H_ | 6 #define ASH_SESSION_STATE_DELEGATE_STUB_H_ |
| 7 | 7 |
| 8 #include "ash/session_state_delegate.h" | 8 #include "ash/session_state_delegate.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "ui/gfx/image/image_skia.h" |
| 11 | 12 |
| 12 namespace ash { | 13 namespace ash { |
| 13 | 14 |
| 14 // Stub implementation of SessionStateDelegate for testing. | 15 // Stub implementation of SessionStateDelegate for testing. |
| 15 class SessionStateDelegateStub : public SessionStateDelegate { | 16 class SessionStateDelegateStub : public SessionStateDelegate { |
| 16 public: | 17 public: |
| 17 SessionStateDelegateStub(); | 18 SessionStateDelegateStub(); |
| 18 virtual ~SessionStateDelegateStub(); | 19 virtual ~SessionStateDelegateStub(); |
| 19 | 20 |
| 20 // SessionStateDelegate: | 21 // SessionStateDelegate: |
| 21 virtual bool HasActiveUser() const OVERRIDE; | 22 virtual int NumberOfLoggedInUsers() const OVERRIDE; |
| 22 virtual bool IsActiveUserSessionStarted() const OVERRIDE; | 23 virtual bool IsActiveUserSessionStarted() const OVERRIDE; |
| 23 virtual bool CanLockScreen() const OVERRIDE; | 24 virtual bool CanLockScreen() const OVERRIDE; |
| 24 virtual bool IsScreenLocked() const OVERRIDE; | 25 virtual bool IsScreenLocked() const OVERRIDE; |
| 25 virtual void LockScreen() OVERRIDE; | 26 virtual void LockScreen() OVERRIDE; |
| 26 virtual void UnlockScreen() OVERRIDE; | 27 virtual void UnlockScreen() OVERRIDE; |
| 28 virtual const base::string16 GetUserDisplayName( |
| 29 ash::MultiProfileIndex index) const OVERRIDE; |
| 30 virtual const std::string GetUserEmail( |
| 31 ash::MultiProfileIndex index) const OVERRIDE; |
| 32 virtual const gfx::ImageSkia& GetUserImage( |
| 33 ash::MultiProfileIndex index) const OVERRIDE; |
| 34 virtual void GetLoggedInUsers(UserEmailList* users) OVERRIDE; |
| 35 virtual void SwitchActiveUser(const std::string& email) OVERRIDE; |
| 27 | 36 |
| 28 private: | 37 private: |
| 29 bool screen_locked_; | 38 bool screen_locked_; |
| 30 | 39 |
| 40 // A pseudo user image. |
| 41 gfx::ImageSkia null_image_; |
| 42 |
| 31 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub); | 43 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub); |
| 32 }; | 44 }; |
| 33 | 45 |
| 34 } // namespace ash | 46 } // namespace ash |
| 35 | 47 |
| 36 #endif // ASH_SESSION_STATE_DELEGATE_STUB_H_ | 48 #endif // ASH_SESSION_STATE_DELEGATE_STUB_H_ |
| OLD | NEW |