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