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

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

Issue 1422773004: [sync] Abstract most ProfileSyncService //chrome deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pss_chrome_signin_deps
Patch Set: Rebase Created 5 years, 1 month 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
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e13edb0942144d0f54c7f5dfab6d4f9ef5a37c45..c60ada82793af3e9bc2fb3370b8e9304a22a50c8 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
@@ -120,9 +120,16 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test {
scoped_ptr<sync_driver::SyncClient> sync_client(
new browser_sync::ChromeSyncClient(profile_.get(), factory.Pass()));
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService(
- sync_client.Pass(), profile_.get(),
+ sync_client.Pass(),
make_scoped_ptr<SigninManagerWrapper>(NULL), token_service,
- browser_sync::MANUAL_START, base::Bind(&EmptyNetworkTimeUpdate)));
+ browser_sync::MANUAL_START, base::Bind(&EmptyNetworkTimeUpdate),
+ profile_->GetPath(), profile_->GetRequestContext(),
+ profile_->GetDebugName(), chrome::GetChannel(),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::DB),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE),
+ content::BrowserThread::GetBlockingPool()));
pss->GetSyncClient()->Initialize(pss.get());
DataTypeController::StateMap controller_states;
pss->GetDataTypeControllerStates(&controller_states);
@@ -147,9 +154,16 @@ TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDefault) {
scoped_ptr<sync_driver::SyncClient> sync_client(
new browser_sync::ChromeSyncClient(profile_.get(), factory.Pass()));
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService(
- sync_client.Pass(), profile_.get(),
+ sync_client.Pass(),
make_scoped_ptr<SigninManagerWrapper>(NULL), token_service,
- browser_sync::MANUAL_START, base::Bind(&EmptyNetworkTimeUpdate)));
+ browser_sync::MANUAL_START, base::Bind(&EmptyNetworkTimeUpdate),
+ profile_->GetPath(), profile_->GetRequestContext(),
+ profile_->GetDebugName(), chrome::GetChannel(),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::DB),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE),
+ content::BrowserThread::GetBlockingPool()));
pss->GetSyncClient()->Initialize(pss.get());
DataTypeController::StateMap controller_states;
pss->GetDataTypeControllerStates(&controller_states);
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698