| 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" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 ACTION_P(SignalEvent, event) { | 58 ACTION_P(SignalEvent, event) { |
| 59 event->Signal(); | 59 event->Signal(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper { | 62 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper { |
| 63 protected: | 63 protected: |
| 64 virtual void RegisterObservers() { | 64 virtual void RegisterObservers() { |
| 65 registrar_.Add(&observer_, | 65 registrar_.Add(&observer_, |
| 66 NotificationType::AUTOFILL_ENTRIES_CHANGED, | 66 chrome::AUTOFILL_ENTRIES_CHANGED, |
| 67 NotificationService::AllSources()); | 67 NotificationService::AllSources()); |
| 68 registrar_.Add(&observer_, | 68 registrar_.Add(&observer_, |
| 69 NotificationType::AUTOFILL_PROFILE_CHANGED, | 69 chrome::AUTOFILL_PROFILE_CHANGED, |
| 70 NotificationService::AllSources()); | 70 NotificationService::AllSources()); |
| 71 } | 71 } |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 class MockPersonalDataManagerObserver : public PersonalDataManager::Observer { | 74 class MockPersonalDataManagerObserver : public PersonalDataManager::Observer { |
| 75 public: | 75 public: |
| 76 MOCK_METHOD0(OnPersonalDataChanged, void()); | 76 MOCK_METHOD0(OnPersonalDataChanged, void()); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace | 79 } // namespace |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 bool LiveAutofillSyncTest::AllProfilesMatch() { | 284 bool LiveAutofillSyncTest::AllProfilesMatch() { |
| 285 for (int i = 1; i < num_clients(); ++i) { | 285 for (int i = 1; i < num_clients(); ++i) { |
| 286 if (!ProfilesMatch(0, i)) { | 286 if (!ProfilesMatch(0, i)) { |
| 287 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " | 287 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " |
| 288 "profiles as profile 0."; | 288 "profiles as profile 0."; |
| 289 return false; | 289 return false; |
| 290 } | 290 } |
| 291 } | 291 } |
| 292 return true; | 292 return true; |
| 293 } | 293 } |
| OLD | NEW |