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

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

Issue 15580002: Make use of InvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Responses to Fred's comments Created 7 years, 7 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_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 44d1dfb0c4bb17788b5873f7c3f0e9830924f59a..258ed6911ef215481bb95e6c925edc3ec8630616 100644
--- a/chrome/browser/sync/profile_sync_service_session_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_session_unittest.cc
@@ -16,6 +16,7 @@
#include "base/stl_util.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/invalidation/invalidation_service_factory.h"
#include "chrome/browser/signin/signin_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/signin/token_service_factory.h"
@@ -205,6 +206,8 @@ class ProfileSyncServiceSessionTest
// Don't want the profile to create a real ProfileSyncService.
ProfileSyncServiceFactory::GetInstance()->SetTestingFactory(profile,
NULL);
+ invalidation::InvalidationServiceFactory::GetInstance()->
+ SetFakeInvalidationServiceForTest(profile);
return profile;
}

Powered by Google App Engine
This is Rietveld 408576698