| 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/browser/sync/test/integration/autofill_helper.h" | 5 #include "chrome/browser/sync/test/integration/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" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 ACTION_P(SignalEvent, event) { | 66 ACTION_P(SignalEvent, event) { |
| 67 event->Signal(); | 67 event->Signal(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper { | 70 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper { |
| 71 protected: | 71 protected: |
| 72 virtual void RegisterObservers() { | 72 virtual void RegisterObservers() { |
| 73 registrar_.Add(&observer_, | 73 registrar_.Add(&observer_, |
| 74 chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED, | 74 chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED, |
| 75 NotificationService::AllSources()); | 75 content::NotificationService::AllSources()); |
| 76 registrar_.Add(&observer_, | 76 registrar_.Add(&observer_, |
| 77 chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED, | 77 chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED, |
| 78 NotificationService::AllSources()); | 78 content::NotificationService::AllSources()); |
| 79 } | 79 } |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 class MockPersonalDataManagerObserver : public PersonalDataManagerObserver { | 82 class MockPersonalDataManagerObserver : public PersonalDataManagerObserver { |
| 83 public: | 83 public: |
| 84 MOCK_METHOD0(OnPersonalDataChanged, void()); | 84 MOCK_METHOD0(OnPersonalDataChanged, void()); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace | 87 } // namespace |
| 88 | 88 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 if (!ProfilesMatch(0, i)) { | 290 if (!ProfilesMatch(0, i)) { |
| 291 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " | 291 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " |
| 292 "profiles as profile 0."; | 292 "profiles as profile 0."; |
| 293 return false; | 293 return false; |
| 294 } | 294 } |
| 295 } | 295 } |
| 296 return true; | 296 return true; |
| 297 } | 297 } |
| 298 | 298 |
| 299 } // namespace autofill_helper | 299 } // namespace autofill_helper |
| OLD | NEW |