| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
| 6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "components/signin/core/account_id/account_id.h" | 12 #include "components/signin/core/account_id/account_id.h" |
| 14 #include "components/user_manager/user.h" | 13 #include "components/user_manager/user.h" |
| 15 #include "components/user_manager/user_manager_base.h" | 14 #include "components/user_manager/user_manager_base.h" |
| 16 | 15 |
| 17 namespace user_manager { | 16 namespace user_manager { |
| 18 | 17 |
| 19 // Fake user manager with a barebones implementation. Users can be added | 18 // Fake user manager with a barebones implementation. Users can be added |
| 20 // and set as logged in, and those users can be returned. | 19 // and set as logged in, and those users can be returned. |
| 21 class USER_MANAGER_EXPORT FakeUserManager : public UserManagerBase { | 20 class USER_MANAGER_EXPORT FakeUserManager : public UserManagerBase { |
| 22 public: | 21 public: |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 156 |
| 158 // stub. Always empty. | 157 // stub. Always empty. |
| 159 gfx::ImageSkia empty_image_; | 158 gfx::ImageSkia empty_image_; |
| 160 | 159 |
| 161 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 160 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 } // namespace user_manager | 163 } // namespace user_manager |
| 165 | 164 |
| 166 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 165 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
| OLD | NEW |