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

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc

Issue 9241029: sync: Pass ProfileSyncService to NonFrontendDataTypeController's ctor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
index 83afddc27c1f2d259bbe01e9ee9103a8fd73de17..baeccd5b2f7ba4cf42d1469d0f83c6751c8d5baa 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
@@ -84,8 +84,11 @@ class AutofillDataTypeControllerMock : public AutofillDataTypeController {
public:
AutofillDataTypeControllerMock(
ProfileSyncComponentsFactory* profile_sync_factory,
- Profile* profile)
- : AutofillDataTypeController(profile_sync_factory, profile),
+ Profile* profile,
+ ProfileSyncService* sync_service)
+ : AutofillDataTypeController(profile_sync_factory,
+ profile,
+ sync_service),
start_called_(false, false) {}
MOCK_METHOD0(StartAssociation, void());
@@ -123,7 +126,9 @@ class AutofillDataTypeControllerTest : public testing::Test {
EXPECT_CALL(profile_, GetProfileSyncService()).WillRepeatedly(
Return(&service_));
autofill_dtc_ =
- new AutofillDataTypeControllerMock(&profile_sync_factory_, &profile_);
+ new AutofillDataTypeControllerMock(&profile_sync_factory_,
+ &profile_,
+ &service_);
EXPECT_CALL(profile_, GetWebDataService(_)).
WillRepeatedly(Return(web_data_service_.get()));
}

Powered by Google App Engine
This is Rietveld 408576698