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 "chrome/test/base/ui_test_utils.h" | |
20 #include "components/password_manager/core/browser/password_form_data.h" | 19 #include "components/password_manager/core/browser/password_form_data.h" |
21 #include "components/password_manager/core/browser/password_store.h" | 20 #include "components/password_manager/core/browser/password_store.h" |
22 #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" |
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"; |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); | 360 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); |
361 form.username_value = | 361 form.username_value = |
362 base::ASCIIToUTF16(base::StringPrintf("username%d", index)); | 362 base::ASCIIToUTF16(base::StringPrintf("username%d", index)); |
363 form.password_value = | 363 form.password_value = |
364 base::ASCIIToUTF16(base::StringPrintf("password%d", index)); | 364 base::ASCIIToUTF16(base::StringPrintf("password%d", index)); |
365 form.date_created = base::Time::Now(); | 365 form.date_created = base::Time::Now(); |
366 return form; | 366 return form; |
367 } | 367 } |
368 | 368 |
369 } // namespace passwords_helper | 369 } // namespace passwords_helper |
OLD | NEW |