| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/sync/test/integration/passwords_helper.h" | 5 #include "chrome/browser/sync/test/integration/passwords_helper.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 int GetVerifierPasswordCount() { | 209 int GetVerifierPasswordCount() { |
| 210 std::vector<PasswordForm> verifier_forms; | 210 std::vector<PasswordForm> verifier_forms; |
| 211 GetLogins(GetVerifierPasswordStore(), verifier_forms); | 211 GetLogins(GetVerifierPasswordStore(), verifier_forms); |
| 212 return verifier_forms.size(); | 212 return verifier_forms.size(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 PasswordForm CreateTestPasswordForm(int index) { | 215 PasswordForm CreateTestPasswordForm(int index) { |
| 216 PasswordForm form; | 216 PasswordForm form; |
| 217 form.signon_realm = kFakeSignonRealm; | 217 form.signon_realm = kFakeSignonRealm; |
| 218 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); | 218 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); |
| 219 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index)); | 219 form.username_value = |
| 220 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index)); | 220 base::ASCIIToUTF16(base::StringPrintf("username%d", index)); |
| 221 form.password_value = |
| 222 base::ASCIIToUTF16(base::StringPrintf("password%d", index)); |
| 221 form.date_created = base::Time::Now(); | 223 form.date_created = base::Time::Now(); |
| 222 return form; | 224 return form; |
| 223 } | 225 } |
| 224 | 226 |
| 225 } // namespace passwords_helper | 227 } // namespace passwords_helper |
| OLD | NEW |