| 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" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "chrome/browser/password_manager/password_store_factory.h" | 12 #include "chrome/browser/password_manager/password_store_factory.h" |
| 13 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
| 14 #include "chrome/browser/sync/profile_sync_service_factory.h" | 14 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 15 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" | 15 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" |
| 16 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 16 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 17 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" | 17 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
| 18 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | 18 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
| 19 #include "components/password_manager/core/browser/password_form_data.h" | 19 #include "components/password_manager/core/browser/password_manager_test_utils.h
" |
| 20 #include "components/password_manager/core/browser/password_store.h" | 20 #include "components/password_manager/core/browser/password_store.h" |
| 21 #include "components/password_manager/core/browser/password_store_consumer.h" | 21 #include "components/password_manager/core/browser/password_store_consumer.h" |
| 22 #include "content/public/test/test_utils.h" | 22 #include "content/public/test/test_utils.h" |
| 23 | 23 |
| 24 using autofill::PasswordForm; | 24 using autofill::PasswordForm; |
| 25 using password_manager::PasswordStore; | 25 using password_manager::PasswordStore; |
| 26 using sync_datatype_helper::test; | 26 using sync_datatype_helper::test; |
| 27 | 27 |
| 28 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/"; | 28 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/"; |
| 29 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d"; | 29 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d"; |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); | 344 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); |
| 345 form.username_value = | 345 form.username_value = |
| 346 base::ASCIIToUTF16(base::StringPrintf("username%d", index)); | 346 base::ASCIIToUTF16(base::StringPrintf("username%d", index)); |
| 347 form.password_value = | 347 form.password_value = |
| 348 base::ASCIIToUTF16(base::StringPrintf("password%d", index)); | 348 base::ASCIIToUTF16(base::StringPrintf("password%d", index)); |
| 349 form.date_created = base::Time::Now(); | 349 form.date_created = base::Time::Now(); |
| 350 return form; | 350 return form; |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace passwords_helper | 353 } // namespace passwords_helper |
| OLD | NEW |