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

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: Response to review 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
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..a9dc1acf8fe33d9a285317a4db315fa18ee86410 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
@@ -122,7 +122,14 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test {
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService(
sync_client.Pass(), profile_.get(),
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);
@@ -149,7 +156,14 @@ TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDefault) {
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService(
sync_client.Pass(), profile_.get(),
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);

Powered by Google App Engine
This is Rietveld 408576698