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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 5 years, 4 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/profile_sync_components_factory_impl_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
index d7173ea7d1aa2198c3e476d3b3084f821f14a6fa..76a4c836f5dfc2242f575fc1df00be9a6d05442a 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
@@ -108,7 +108,7 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test {
ProfileOAuth2TokenService* token_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get());
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService(
- scoped_ptr<ProfileSyncComponentsFactory>(
+ scoped_ptr<sync_driver::SyncApiComponentFactory>(
new ProfileSyncComponentsFactoryImpl(
profile_.get(),
command_line_.get(),
@@ -119,6 +119,7 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test {
make_scoped_ptr<SupervisedUserSigninManagerWrapper>(NULL),
token_service,
browser_sync::MANUAL_START));
+ pss->factory()->Initialize(pss.get());
pss->factory()->RegisterDataTypes(pss.get());
DataTypeController::StateMap controller_states;
pss->GetDataTypeControllerStates(&controller_states);
@@ -136,7 +137,7 @@ TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDefault) {
ProfileOAuth2TokenService* token_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get());
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService(
- scoped_ptr<ProfileSyncComponentsFactory>(
+ scoped_ptr<sync_driver::SyncApiComponentFactory>(
new ProfileSyncComponentsFactoryImpl(
profile_.get(),
command_line_.get(),
@@ -147,6 +148,7 @@ TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDefault) {
make_scoped_ptr<SupervisedUserSigninManagerWrapper>(NULL),
token_service,
browser_sync::MANUAL_START));
+ pss->factory()->Initialize(pss.get());
pss->factory()->RegisterDataTypes(pss.get());
DataTypeController::StateMap controller_states;
pss->GetDataTypeControllerStates(&controller_states);

Powered by Google App Engine
This is Rietveld 408576698