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 #include "components/password_manager/core/browser/test_password_store.h" | 5 #include "components/password_manager/core/browser/test_password_store.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 ScopedVector<autofill::PasswordForm> TestPasswordStore::FillMatchingLogins( | 83 ScopedVector<autofill::PasswordForm> TestPasswordStore::FillMatchingLogins( |
84 const autofill::PasswordForm& form, | 84 const autofill::PasswordForm& form, |
85 PasswordStore::AuthorizationPromptPolicy prompt_policy) { | 85 PasswordStore::AuthorizationPromptPolicy prompt_policy) { |
86 ScopedVector<autofill::PasswordForm> matched_forms; | 86 ScopedVector<autofill::PasswordForm> matched_forms; |
87 std::vector<autofill::PasswordForm> forms = | 87 std::vector<autofill::PasswordForm> forms = |
88 stored_passwords_[form.signon_realm]; | 88 stored_passwords_[form.signon_realm]; |
89 for (const auto& stored_form : forms) { | 89 for (const auto& stored_form : forms) { |
90 matched_forms.push_back(new autofill::PasswordForm(stored_form)); | 90 matched_forms.push_back(new autofill::PasswordForm(stored_form)); |
91 } | 91 } |
92 return matched_forms.Pass(); | 92 return matched_forms; |
93 } | 93 } |
94 | 94 |
95 void TestPasswordStore::ReportMetricsImpl(const std::string& sync_username, | 95 void TestPasswordStore::ReportMetricsImpl(const std::string& sync_username, |
96 bool custom_passphrase_sync_enabled) { | 96 bool custom_passphrase_sync_enabled) { |
97 } | 97 } |
98 | 98 |
99 PasswordStoreChangeList TestPasswordStore::RemoveLoginsCreatedBetweenImpl( | 99 PasswordStoreChangeList TestPasswordStore::RemoveLoginsCreatedBetweenImpl( |
100 base::Time begin, | 100 base::Time begin, |
101 base::Time end) { | 101 base::Time end) { |
102 PasswordStoreChangeList changes; | 102 PasswordStoreChangeList changes; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 void TestPasswordStore::RemoveSiteStatsImpl(const GURL& origin_domain) { | 136 void TestPasswordStore::RemoveSiteStatsImpl(const GURL& origin_domain) { |
137 } | 137 } |
138 | 138 |
139 std::vector<scoped_ptr<InteractionsStats>> TestPasswordStore::GetSiteStatsImpl( | 139 std::vector<scoped_ptr<InteractionsStats>> TestPasswordStore::GetSiteStatsImpl( |
140 const GURL& origin_domain) { | 140 const GURL& origin_domain) { |
141 return std::vector<scoped_ptr<InteractionsStats>>(); | 141 return std::vector<scoped_ptr<InteractionsStats>>(); |
142 } | 142 } |
143 | 143 |
144 } // namespace password_manager | 144 } // namespace password_manager |
OLD | NEW |