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> |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 protected: | 40 protected: |
41 virtual ~TestPasswordStore(); | 41 virtual ~TestPasswordStore(); |
42 | 42 |
43 // Helper function to determine if forms are considered equivalent. | 43 // Helper function to determine if forms are considered equivalent. |
44 bool FormsAreEquivalent(const autofill::PasswordForm& lhs, | 44 bool FormsAreEquivalent(const autofill::PasswordForm& lhs, |
45 const autofill::PasswordForm& rhs); | 45 const autofill::PasswordForm& rhs); |
46 | 46 |
47 // PasswordStore interface | 47 // PasswordStore interface |
48 virtual PasswordStoreChangeList AddLoginImpl( | 48 virtual PasswordStoreChangeList AddLoginImpl( |
49 const autofill::PasswordForm& form) override; | 49 const autofill::PasswordForm& form) OVERRIDE; |
50 virtual PasswordStoreChangeList UpdateLoginImpl( | 50 virtual PasswordStoreChangeList UpdateLoginImpl( |
51 const autofill::PasswordForm& form) override; | 51 const autofill::PasswordForm& form) OVERRIDE; |
52 virtual PasswordStoreChangeList RemoveLoginImpl( | 52 virtual PasswordStoreChangeList RemoveLoginImpl( |
53 const autofill::PasswordForm& form) override; | 53 const autofill::PasswordForm& form) OVERRIDE; |
54 virtual void GetLoginsImpl( | 54 virtual void GetLoginsImpl( |
55 const autofill::PasswordForm& form, | 55 const autofill::PasswordForm& form, |
56 PasswordStore::AuthorizationPromptPolicy prompt_policy, | 56 PasswordStore::AuthorizationPromptPolicy prompt_policy, |
57 const ConsumerCallbackRunner& runner) override; | 57 const ConsumerCallbackRunner& runner) OVERRIDE; |
58 virtual void WrapModificationTask(ModificationTask task) override; | 58 virtual void WrapModificationTask(ModificationTask task) OVERRIDE; |
59 | 59 |
60 // Unused portions of PasswordStore interface | 60 // Unused portions of PasswordStore interface |
61 virtual void ReportMetricsImpl(const std::string& sync_username) override {} | 61 virtual void ReportMetricsImpl(const std::string& sync_username) OVERRIDE {} |
62 virtual PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( | 62 virtual PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( |
63 base::Time begin, | 63 base::Time begin, |
64 base::Time end) override; | 64 base::Time end) OVERRIDE; |
65 virtual PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( | 65 virtual PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( |
66 base::Time delete_begin, | 66 base::Time delete_begin, |
67 base::Time delete_end) override; | 67 base::Time delete_end) OVERRIDE; |
68 virtual void GetAutofillableLoginsImpl( | 68 virtual void GetAutofillableLoginsImpl( |
69 PasswordStore::GetLoginsRequest* request) override {} | 69 PasswordStore::GetLoginsRequest* request) OVERRIDE {} |
70 virtual void GetBlacklistLoginsImpl( | 70 virtual void GetBlacklistLoginsImpl( |
71 PasswordStore::GetLoginsRequest* request) override {} | 71 PasswordStore::GetLoginsRequest* request) OVERRIDE {} |
72 virtual bool FillAutofillableLogins( | 72 virtual bool FillAutofillableLogins( |
73 std::vector<autofill::PasswordForm*>* forms) override; | 73 std::vector<autofill::PasswordForm*>* forms) OVERRIDE; |
74 virtual bool FillBlacklistLogins( | 74 virtual bool FillBlacklistLogins( |
75 std::vector<autofill::PasswordForm*>* forms) override; | 75 std::vector<autofill::PasswordForm*>* forms) OVERRIDE; |
76 | 76 |
77 private: | 77 private: |
78 PasswordMap stored_passwords_; | 78 PasswordMap stored_passwords_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); | 80 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace password_manager | 83 } // namespace password_manager |
84 | 84 |
85 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 85 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ |
OLD | NEW |