| 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/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "components/signin/core/account_id/account_id.h" | 13 #include "components/signin/core/account_id/account_id.h" |
| 13 #include "components/user_manager/user.h" | 14 #include "components/user_manager/user.h" |
| 14 #include "components/user_manager/user_manager_base.h" | 15 #include "components/user_manager/user_manager_base.h" |
| 15 | 16 |
| 16 namespace user_manager { | 17 namespace user_manager { |
| 17 | 18 |
| 18 // Fake user manager with a barebones implementation. Users can be added | 19 // Fake user manager with a barebones implementation. Users can be added |
| 19 // and set as logged in, and those users can be returned. | 20 // and set as logged in, and those users can be returned. |
| 20 class USER_MANAGER_EXPORT FakeUserManager : public UserManagerBase { | 21 class USER_MANAGER_EXPORT FakeUserManager : public UserManagerBase { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 135 |
| 135 // stub, always empty. | 136 // stub, always empty. |
| 136 AccountId owner_account_id_ = EmptyAccountId(); | 137 AccountId owner_account_id_ = EmptyAccountId(); |
| 137 | 138 |
| 138 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); | 139 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace user_manager | 142 } // namespace user_manager |
| 142 | 143 |
| 143 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ | 144 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ |
| OLD | NEW |