| 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 <sstream> | 7 #include <sstream> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "chrome/browser/password_manager/password_store_factory.h" | 16 #include "chrome/browser/password_manager/password_store_factory.h" |
| 17 #include "chrome/browser/sync/profile_sync_service_factory.h" | 17 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 18 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" | 18 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" |
| 19 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 19 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 20 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" | 20 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
| 21 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | 21 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
| 22 #include "components/browser_sync/browser/profile_sync_service.h" | 22 #include "components/browser_sync/profile_sync_service.h" |
| 23 #include "components/password_manager/core/browser/password_manager_test_utils.h
" | 23 #include "components/password_manager/core/browser/password_manager_test_utils.h
" |
| 24 #include "components/password_manager/core/browser/password_store.h" | 24 #include "components/password_manager/core/browser/password_store.h" |
| 25 #include "components/password_manager/core/browser/password_store_consumer.h" | 25 #include "components/password_manager/core/browser/password_store_consumer.h" |
| 26 #include "content/public/test/test_utils.h" | 26 #include "content/public/test/test_utils.h" |
| 27 | 27 |
| 28 using autofill::PasswordForm; | 28 using autofill::PasswordForm; |
| 29 using password_manager::PasswordStore; | 29 using password_manager::PasswordStore; |
| 30 using sync_datatype_helper::test; | 30 using sync_datatype_helper::test; |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); | 353 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); |
| 354 form.username_value = | 354 form.username_value = |
| 355 base::ASCIIToUTF16(base::StringPrintf("username%d", index)); | 355 base::ASCIIToUTF16(base::StringPrintf("username%d", index)); |
| 356 form.password_value = | 356 form.password_value = |
| 357 base::ASCIIToUTF16(base::StringPrintf("password%d", index)); | 357 base::ASCIIToUTF16(base::StringPrintf("password%d", index)); |
| 358 form.date_created = base::Time::Now(); | 358 form.date_created = base::Time::Now(); |
| 359 return form; | 359 return form; |
| 360 } | 360 } |
| 361 | 361 |
| 362 } // namespace passwords_helper | 362 } // namespace passwords_helper |
| OLD | NEW |