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

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

Issue 183803026: Clean up InvalidationService test infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 2239a6f384257e5a6eec5a48137642f3aa747141..1db6f96cd762f340a64f1073ecc9dd68504c7add 100644
--- a/chrome/browser/sync/profile_sync_service_session_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_session_unittest.cc
@@ -17,6 +17,7 @@
#include "base/stl_util.h"
#include "base/time/time.h"
#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/invalidation/fake_invalidation_service.h"
#include "chrome/browser/invalidation/invalidation_service_factory.h"
#include "chrome/browser/sessions/session_tab_helper.h"
#include "chrome/browser/signin/fake_profile_oauth2_token_service.h"
@@ -73,8 +74,8 @@ using browser_sync::SyncBackendHost;
using content::BrowserThread;
using content::WebContents;
using syncer::ChangeRecord;
-using testing::_;
using testing::Return;
+using testing::_;
namespace browser_sync {
@@ -142,8 +143,8 @@ class ProfileSyncServiceSessionTest
// Don't want the profile to create a real ProfileSyncService.
builder.AddTestingFactory(ProfileSyncServiceFactory::GetInstance(), NULL);
scoped_ptr<TestingProfile> profile(builder.Build());
- invalidation::InvalidationServiceFactory::GetInstance()->
- SetBuildOnlyFakeInvalidatorsForTest(true);
+ invalidation::InvalidationServiceFactory::GetInstance()->SetTestingFactory(
+ profile.get(), invalidation::FakeInvalidationService::Build);
return profile.release();
}

Powered by Google App Engine
This is Rietveld 408576698