| 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/autofill_helper.h" | 5 #include "chrome/browser/sync/test/integration/autofill_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/guid.h" | 9 #include "base/guid.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 11 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/sync/profile_sync_test_util.h" | 14 #include "chrome/browser/sync/profile_sync_test_util.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/sync_datatype_helper.h" | 16 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
| 17 #include "chrome/browser/sync/test/integration/sync_test.h" | 17 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 18 #include "chrome/browser/web_data_service_factory.h" | 18 #include "chrome/browser/web_data_service_factory.h" |
| 19 #include "components/autofill/core/browser/autofill_profile.h" | 19 #include "components/autofill/core/browser/autofill_profile.h" |
| 20 #include "components/autofill/core/browser/autofill_test_utils.h" | 20 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 21 #include "components/autofill/core/browser/autofill_type.h" | 21 #include "components/autofill/core/browser/autofill_type.h" |
| 22 #include "components/autofill/core/browser/personal_data_manager.h" | 22 #include "components/autofill/core/browser/personal_data_manager.h" |
| 23 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 23 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
| 24 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 24 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
| 25 #include "components/autofill/core/browser/webdata/autofill_table.h" | 25 #include "components/autofill/core/browser/webdata/autofill_table.h" |
| 26 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 26 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 27 #include "components/autofill/core/common/form_field_data.h" | 27 #include "components/autofill/core/common/form_field_data.h" |
| 28 #include "components/browser_sync/browser/profile_sync_service.h" | 28 #include "components/browser_sync/profile_sync_service.h" |
| 29 #include "components/webdata/common/web_database.h" | 29 #include "components/webdata/common/web_database.h" |
| 30 | 30 |
| 31 using autofill::AutofillChangeList; | 31 using autofill::AutofillChangeList; |
| 32 using autofill::AutofillEntry; | 32 using autofill::AutofillEntry; |
| 33 using autofill::AutofillKey; | 33 using autofill::AutofillKey; |
| 34 using autofill::AutofillProfile; | 34 using autofill::AutofillProfile; |
| 35 using autofill::AutofillTable; | 35 using autofill::AutofillTable; |
| 36 using autofill::AutofillType; | 36 using autofill::AutofillType; |
| 37 using autofill::AutofillWebDataService; | 37 using autofill::AutofillWebDataService; |
| 38 using autofill::AutofillWebDataServiceObserverOnDBThread; | 38 using autofill::AutofillWebDataServiceObserverOnDBThread; |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 510 |
| 511 } // namespace | 511 } // namespace |
| 512 | 512 |
| 513 bool AwaitProfilesMatch(int a, int b) { | 513 bool AwaitProfilesMatch(int a, int b) { |
| 514 ProfilesMatchStatusChecker checker(a, b); | 514 ProfilesMatchStatusChecker checker(a, b); |
| 515 checker.Wait(); | 515 checker.Wait(); |
| 516 return !checker.TimedOut(); | 516 return !checker.TimedOut(); |
| 517 } | 517 } |
| 518 | 518 |
| 519 } // namespace autofill_helper | 519 } // namespace autofill_helper |
| OLD | NEW |