| 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/live_autofill_sync_test.h" | 5 #include "chrome/test/live_sync/live_autofill_sync_test.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/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/sync/profile_sync_service.h" | 11 #include "chrome/browser/sync/profile_sync_service.h" |
| 12 #include "chrome/browser/sync/profile_sync_test_util.h" | 12 #include "chrome/browser/sync/profile_sync_test_util.h" |
| 13 #include "chrome/browser/webdata/autofill_entry.h" | 13 #include "chrome/browser/webdata/autofill_entry.h" |
| 14 #include "chrome/browser/webdata/autofill_table.h" | 14 #include "chrome/browser/webdata/autofill_table.h" |
| 15 #include "chrome/browser/webdata/web_database.h" | 15 #include "chrome/browser/webdata/web_database.h" |
| 16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
| 17 #include "chrome/test/thread_observer_helper.h" | 17 #include "chrome/test/base/thread_observer_helper.h" |
| 18 #include "webkit/glue/form_field.h" | 18 #include "webkit/glue/form_field.h" |
| 19 | 19 |
| 20 | |
| 21 using base::WaitableEvent; | 20 using base::WaitableEvent; |
| 22 using testing::_; | 21 using testing::_; |
| 23 | 22 |
| 24 namespace { | 23 namespace { |
| 25 class GetAllAutofillEntries | 24 class GetAllAutofillEntries |
| 26 : public base::RefCountedThreadSafe<GetAllAutofillEntries> { | 25 : public base::RefCountedThreadSafe<GetAllAutofillEntries> { |
| 27 public: | 26 public: |
| 28 explicit GetAllAutofillEntries(WebDataService* web_data_service) | 27 explicit GetAllAutofillEntries(WebDataService* web_data_service) |
| 29 : web_data_service_(web_data_service), | 28 : web_data_service_(web_data_service), |
| 30 done_event_(false, false) {} | 29 done_event_(false, false) {} |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 bool LiveAutofillSyncTest::AllProfilesMatch() { | 285 bool LiveAutofillSyncTest::AllProfilesMatch() { |
| 287 for (int i = 1; i < num_clients(); ++i) { | 286 for (int i = 1; i < num_clients(); ++i) { |
| 288 if (!ProfilesMatch(0, i)) { | 287 if (!ProfilesMatch(0, i)) { |
| 289 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " | 288 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " |
| 290 "profiles as profile 0."; | 289 "profiles as profile 0."; |
| 291 return false; | 290 return false; |
| 292 } | 291 } |
| 293 } | 292 } |
| 294 return true; | 293 return true; |
| 295 } | 294 } |
| OLD | NEW |