| 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/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "components/password_manager/core/browser/password_store.h" | 13 #include "components/password_manager/core/browser/password_store.h" |
| 14 | 14 |
| 15 namespace content { | |
| 16 class BrowserContext; | |
| 17 } | |
| 18 | |
| 19 namespace password_manager { | 15 namespace password_manager { |
| 20 | 16 |
| 21 // A very simple PasswordStore implementation that keeps all of the passwords | 17 // A very simple PasswordStore implementation that keeps all of the passwords |
| 22 // in memory and does all its manipulations on the main thread. Since this | 18 // in memory and does all its manipulations on the main thread. Since this |
| 23 // is only used for testing, only the parts of the interface that are needed | 19 // is only used for testing, only the parts of the interface that are needed |
| 24 // for testing have been implemented. | 20 // for testing have been implemented. |
| 25 class TestPasswordStore : public PasswordStore { | 21 class TestPasswordStore : public PasswordStore { |
| 26 public: | 22 public: |
| 27 TestPasswordStore(); | 23 TestPasswordStore(); |
| 28 | 24 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 72 |
| 77 private: | 73 private: |
| 78 PasswordMap stored_passwords_; | 74 PasswordMap stored_passwords_; |
| 79 | 75 |
| 80 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); | 76 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); |
| 81 }; | 77 }; |
| 82 | 78 |
| 83 } // namespace password_manager | 79 } // namespace password_manager |
| 84 | 80 |
| 85 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 81 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ |
| OLD | NEW |