| 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/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 17 matching lines...) Expand all Loading... |
| 28 using testing::_; | 28 using testing::_; |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 ACTION_P(SignalEvent, event) { | 32 ACTION_P(SignalEvent, event) { |
| 33 event->Signal(); | 33 event->Signal(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper { | 36 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper { |
| 37 protected: | 37 protected: |
| 38 virtual ~AutofillDBThreadObserverHelper() {} |
| 39 |
| 38 virtual void RegisterObservers() { | 40 virtual void RegisterObservers() { |
| 39 registrar_.Add(&observer_, | 41 registrar_.Add(&observer_, |
| 40 chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED, | 42 chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED, |
| 41 content::NotificationService::AllSources()); | 43 content::NotificationService::AllSources()); |
| 42 registrar_.Add(&observer_, | 44 registrar_.Add(&observer_, |
| 43 chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED, | 45 chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED, |
| 44 content::NotificationService::AllSources()); | 46 content::NotificationService::AllSources()); |
| 45 } | 47 } |
| 46 }; | 48 }; |
| 47 | 49 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 if (!ProfilesMatch(0, i)) { | 312 if (!ProfilesMatch(0, i)) { |
| 311 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " | 313 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " |
| 312 "profiles as profile 0."; | 314 "profiles as profile 0."; |
| 313 return false; | 315 return false; |
| 314 } | 316 } |
| 315 } | 317 } |
| 316 return true; | 318 return true; |
| 317 } | 319 } |
| 318 | 320 |
| 319 } // namespace autofill_helper | 321 } // namespace autofill_helper |
| OLD | NEW |