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

Unified Diff: chrome/browser/invalidation/ticl_invalidation_service_unittest.cc

Issue 238983007: Provide GCMService to TiclInvalidationService as an explicit dependency (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/invalidation/ticl_invalidation_service_unittest.cc
diff --git a/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc b/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc
index a4588a9daff0a7d50377dd831efb2315d51314c8..44f33b05bbb709c9ca4a0cfae947e5af5e09b147 100644
--- a/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc
+++ b/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc
@@ -8,6 +8,9 @@
#include "chrome/browser/invalidation/invalidation_service_factory.h"
#include "chrome/browser/invalidation/invalidation_service_test_template.h"
#include "chrome/browser/invalidation/invalidator_storage.h"
+#include "chrome/browser/services/gcm/gcm_profile_service.h"
+#include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
+#include "chrome/browser/services/gcm/gcm_service.h"
#include "chrome/browser/signin/fake_profile_oauth2_token_service.h"
#include "chrome/browser/signin/fake_signin_manager.h"
#include "chrome/browser/signin/profile_identity_provider.h"
@@ -46,6 +49,7 @@ class TiclInvalidationServiceTestDelegate {
SigninManagerFactory::GetForProfile(profile_.get()),
token_service_.get(),
NULL)),
+ gcm::GCMProfileServiceFactory::GetForProfile(profile_.get()),
profile_->GetRequestContext(),
profile_.get()));
}
@@ -103,6 +107,7 @@ class TiclInvalidationServiceChannelTest : public ::testing::Test {
fake_signin_manager_, token_service_.get(), NULL));
invalidation_service_.reset(new TiclInvalidationService(
identity_provider.Pass(),
+ gcm::GCMProfileServiceFactory::GetForProfile(profile_.get()),
profile_->GetRequestContext(),
profile_.get()));
invalidation_service_->Init(scoped_ptr<syncer::InvalidationStateTracker>(
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698