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

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

Issue 13197004: Draft: InvalidationService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Passes tests Created 7 years, 8 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 1ee92a6ec5a72ecf2869a11c4c88495fa1e41795..3ab1f0c9d6c3f404e22bba4f0b256ee01c11e04e 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_service_factory.h"
#include "chrome/browser/sessions/session_types_test_helper.h"
#include "chrome/browser/signin/signin_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
@@ -205,6 +206,8 @@ class ProfileSyncServiceSessionTest
// Don't want the profile to create a real ProfileSyncService.
ProfileSyncServiceFactory::GetInstance()->SetTestingFactory(profile,
NULL);
+ InvalidationServiceFactory::GetInstance()->SetTestingFactory(
+ profile, InvalidationServiceFactory::BuildTestServiceInstanceFor);
return profile;
}

Powered by Google App Engine
This is Rietveld 408576698