| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/live_sync/passwords_helper.h" | 5 #include "chrome/browser/sync/test/integration/passwords_helper.h" |
| 6 | 6 |
| 7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
| 8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/password_manager/password_form_data.h" | 10 #include "chrome/browser/password_manager/password_form_data.h" |
| 11 #include "chrome/browser/password_manager/password_store_consumer.h" | 11 #include "chrome/browser/password_manager/password_store_consumer.h" |
| 12 #include "chrome/browser/password_manager/password_store.h" | 12 #include "chrome/browser/password_manager/password_store.h" |
| 13 #include "chrome/browser/sync/profile_sync_service_harness.h" | 13 #include "chrome/browser/sync/profile_sync_service_harness.h" |
| 14 #include "chrome/browser/sync/test/live_sync/sync_datatype_helper.h" | 14 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
| 15 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| 16 #include "content/browser/browser_thread.h" | 16 #include "content/browser/browser_thread.h" |
| 17 | 17 |
| 18 using webkit_glue::PasswordForm; | 18 using webkit_glue::PasswordForm; |
| 19 using sync_datatype_helper::test; | 19 using sync_datatype_helper::test; |
| 20 | 20 |
| 21 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/"; | 21 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/"; |
| 22 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d"; | 22 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d"; |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 PasswordForm CreateTestPasswordForm(int index) { | 196 PasswordForm CreateTestPasswordForm(int index) { |
| 197 PasswordForm form; | 197 PasswordForm form; |
| 198 form.signon_realm = kFakeSignonRealm; | 198 form.signon_realm = kFakeSignonRealm; |
| 199 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); | 199 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); |
| 200 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index)); | 200 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index)); |
| 201 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index)); | 201 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index)); |
| 202 return form; | 202 return form; |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace passwords_helper | 205 } // namespace passwords_helper |
| OLD | NEW |