Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: chrome/browser/sync/test/integration/autofill_helper.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/signin_manager.cc ('k') | chrome/browser/sync/util/extensions_activity_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698