OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/test/live_sync/autofill_helper.h" | 5 #include "chrome/browser/sync/test/live_sync/autofill_helper.h" |
6 | 6 |
7 #include "chrome/browser/autofill/autofill_common_test.h" | 7 #include "chrome/browser/autofill/autofill_common_test.h" |
8 #include "chrome/browser/autofill/autofill_profile.h" | 8 #include "chrome/browser/autofill/autofill_profile.h" |
9 #include "chrome/browser/autofill/autofill_type.h" | 9 #include "chrome/browser/autofill/autofill_type.h" |
10 #include "chrome/browser/autofill/personal_data_manager.h" | 10 #include "chrome/browser/autofill/personal_data_manager.h" |
11 #include "chrome/browser/autofill/personal_data_manager_observer.h" | 11 #include "chrome/browser/autofill/personal_data_manager_observer.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.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_test_util.h" | 14 #include "chrome/browser/sync/profile_sync_test_util.h" |
| 15 #include "chrome/browser/sync/test/live_sync/live_sync_test.h" |
| 16 #include "chrome/browser/sync/test/live_sync/sync_datatype_helper.h" |
15 #include "chrome/browser/webdata/autofill_entry.h" | 17 #include "chrome/browser/webdata/autofill_entry.h" |
16 #include "chrome/browser/webdata/autofill_table.h" | 18 #include "chrome/browser/webdata/autofill_table.h" |
17 #include "chrome/browser/webdata/web_database.h" | 19 #include "chrome/browser/webdata/web_database.h" |
18 #include "chrome/common/chrome_notification_types.h" | 20 #include "chrome/common/chrome_notification_types.h" |
19 #include "chrome/test/base/thread_observer_helper.h" | 21 #include "chrome/test/base/thread_observer_helper.h" |
20 #include "chrome/test/live_sync/live_sync_test.h" | |
21 #include "chrome/test/live_sync/sync_datatype_helper.h" | |
22 #include "webkit/glue/form_field.h" | 22 #include "webkit/glue/form_field.h" |
23 | 23 |
24 using base::WaitableEvent; | 24 using base::WaitableEvent; |
25 using sync_datatype_helper::test; | 25 using sync_datatype_helper::test; |
26 using testing::_; | 26 using testing::_; |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 class GetAllAutofillEntries | 30 class GetAllAutofillEntries |
31 : public base::RefCountedThreadSafe<GetAllAutofillEntries> { | 31 : public base::RefCountedThreadSafe<GetAllAutofillEntries> { |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 if (!ProfilesMatch(0, i)) { | 289 if (!ProfilesMatch(0, i)) { |
290 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " | 290 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " |
291 "profiles as profile 0."; | 291 "profiles as profile 0."; |
292 return false; | 292 return false; |
293 } | 293 } |
294 } | 294 } |
295 return true; | 295 return true; |
296 } | 296 } |
297 | 297 |
298 } // namespace autofill_helper | 298 } // namespace autofill_helper |
OLD | NEW |