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

Unified Diff: chrome/browser/sync/profile_sync_service_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
Index: chrome/browser/sync/profile_sync_service_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
index 71566994791387dbe5c7d7cc21e5cd8d1e4ee777..56fba359cb6ce57cf5858cb4d88607f97e875b88 100644
--- a/chrome/browser/sync/profile_sync_service_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/sync/glue/sync_backend_host_mock.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_test_util.h"
+#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
@@ -306,9 +307,16 @@ class ProfileSyncServiceTest : public ::testing::Test {
base::Bind(&ProfileSyncServiceTest::ClearBrowsingDataCallback,
base::Unretained(this))));
service_.reset(new ProfileSyncService(
- sync_client.Pass(), profile_,
+ sync_client.Pass(),
make_scoped_ptr(new SigninManagerWrapper(signin)), oauth2_token_service,
- behavior, base::Bind(&EmptyNetworkTimeUpdate)));
+ behavior, 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()));
service_->RegisterDataTypeController(
new sync_driver::FakeDataTypeController(syncer::BOOKMARKS));
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service_startup_unittest.cc ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698