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

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

Issue 67683005: Clean up TestProfileSyncService and related tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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_session_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_session_unittest.cc b/chrome/browser/sync/profile_sync_service_session_unittest.cc
index 04ae92a9b76d033b6e3c823f329ba0c64ac2d03c..ba4dccb90bf146a021999499ef975809ca45d334 100644
--- a/chrome/browser/sync/profile_sync_service_session_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_session_unittest.cc
@@ -19,6 +19,8 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/invalidation/invalidation_service_factory.h"
#include "chrome/browser/sessions/session_tab_helper.h"
+#include "chrome/browser/signin/profile_oauth2_token_service.h"
+#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/signin/signin_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/sync/abstract_profile_sync_service_test.h"
@@ -84,14 +86,12 @@ class FakeProfileSyncService : public TestProfileSyncService {
Profile* profile,
SigninManagerBase* signin,
ProfileOAuth2TokenService* oauth2_token_service,
- ProfileSyncService::StartBehavior behavior,
- bool synchronous_backend_initialization)
+ ProfileSyncService::StartBehavior behavior)
: TestProfileSyncService(factory,
profile,
signin,
oauth2_token_service,
- behavior,
- synchronous_backend_initialization) {}
+ behavior) {}
virtual ~FakeProfileSyncService() {}
virtual scoped_ptr<DeviceInfo> GetLocalDeviceInfo() const OVERRIDE {
@@ -198,8 +198,7 @@ class ProfileSyncServiceSessionTest
profile(),
signin,
oauth2_token_service,
- ProfileSyncService::AUTO_START,
- false));
+ ProfileSyncService::AUTO_START));
sync_service_->set_backend_init_callback(callback);
// Register the session data type.

Powered by Google App Engine
This is Rietveld 408576698