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_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "components/password_manager/core/browser/password_store.h" | 14 #include "components/password_manager/core/browser/password_store.h" |
14 | 15 |
15 namespace password_manager { | 16 namespace password_manager { |
16 | 17 |
17 // A very simple PasswordStore implementation that keeps all of the passwords | 18 // A very simple PasswordStore implementation that keeps all of the passwords |
18 // in memory and does all its manipulations on the main thread. Since this | 19 // in memory and does all its manipulations on the main thread. Since this |
19 // is only used for testing, only the parts of the interface that are needed | 20 // is only used for testing, only the parts of the interface that are needed |
20 // for testing have been implemented. | 21 // for testing have been implemented. |
21 class TestPasswordStore : public PasswordStore { | 22 class TestPasswordStore : public PasswordStore { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 70 |
70 private: | 71 private: |
71 PasswordMap stored_passwords_; | 72 PasswordMap stored_passwords_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); | 74 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace password_manager | 77 } // namespace password_manager |
77 | 78 |
78 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 79 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ |
OLD | NEW |