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 "chrome/browser/autofill/personal_data_manager_factory.h" | 7 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 autofill::test::SetProfileInfoWithGuid(&profile, | 160 autofill::test::SetProfileInfoWithGuid(&profile, |
161 "FE461507-7E13-4198-8E66-74C7DB6D8322", | 161 "FE461507-7E13-4198-8E66-74C7DB6D8322", |
162 "", "", "", "", "", "", "", "", "", "", "", ""); | 162 "", "", "", "", "", "", "", "", "", "", "", ""); |
163 break; | 163 break; |
164 } | 164 } |
165 return profile; | 165 return profile; |
166 } | 166 } |
167 | 167 |
168 scoped_refptr<AutofillWebDataService> GetWebDataService(int index) { | 168 scoped_refptr<AutofillWebDataService> GetWebDataService(int index) { |
169 return WebDataServiceFactory::GetAutofillWebDataForProfile( | 169 return WebDataServiceFactory::GetAutofillWebDataForProfile( |
170 test()->GetProfile(index), Profile::EXPLICIT_ACCESS); | 170 test()->GetProfile(index), ServiceAccessType::EXPLICIT_ACCESS); |
171 } | 171 } |
172 | 172 |
173 PersonalDataManager* GetPersonalDataManager(int index) { | 173 PersonalDataManager* GetPersonalDataManager(int index) { |
174 return autofill::PersonalDataManagerFactory::GetForProfile( | 174 return autofill::PersonalDataManagerFactory::GetForProfile( |
175 test()->GetProfile(index)); | 175 test()->GetProfile(index)); |
176 } | 176 } |
177 | 177 |
178 void AddKeys(int profile, const std::set<AutofillKey>& keys) { | 178 void AddKeys(int profile, const std::set<AutofillKey>& keys) { |
179 std::vector<FormFieldData> form_fields; | 179 std::vector<FormFieldData> form_fields; |
180 for (std::set<AutofillKey>::const_iterator i = keys.begin(); | 180 for (std::set<AutofillKey>::const_iterator i = keys.begin(); |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 489 |
490 } // namespace | 490 } // namespace |
491 | 491 |
492 bool AwaitProfilesMatch(int a, int b) { | 492 bool AwaitProfilesMatch(int a, int b) { |
493 ProfilesMatchStatusChecker checker(a, b); | 493 ProfilesMatchStatusChecker checker(a, b); |
494 checker.Wait(); | 494 checker.Wait(); |
495 return !checker.TimedOut(); | 495 return !checker.TimedOut(); |
496 } | 496 } |
497 | 497 |
498 } // namespace autofill_helper | 498 } // namespace autofill_helper |
OLD | NEW |