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

Unified Diff: google_apis/gcm/engine/registration_request_unittest.cc

Issue 1137463003: Support getting and deleting token for Instance ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new files Created 5 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: google_apis/gcm/engine/registration_request_unittest.cc
diff --git a/google_apis/gcm/engine/registration_request_unittest.cc b/google_apis/gcm/engine/registration_request_unittest.cc
index b808f39e68d33a6f5d980dd7c29fa2e9f67e1552..5471222961329ccb6132c706e31383e877d5a724 100644
--- a/google_apis/gcm/engine/registration_request_unittest.cc
+++ b/google_apis/gcm/engine/registration_request_unittest.cc
@@ -108,12 +108,15 @@ void RegistrationRequestTest::CreateRequest(const std::string& sender_ids) {
while (tokenizer.GetNext())
senders.push_back(tokenizer.token());
+ scoped_ptr<RegistrationRequest::GCMRequestInfo> gcm_request_info(
+ new RegistrationRequest::GCMRequestInfo);
+ gcm_request_info->android_id = kAndroidId;
+ gcm_request_info->security_token = kSecurityToken;
+ gcm_request_info->app_id = kAppId;
+ gcm_request_info->sender_ids = senders;
request_.reset(new RegistrationRequest(
GURL(kRegistrationURL),
- RegistrationRequest::RequestInfo(kAndroidId,
- kSecurityToken,
- kAppId,
- senders),
+ gcm_request_info.Pass(),
kDefaultBackoffPolicy,
base::Bind(&RegistrationRequestTest::RegistrationCallback,
base::Unretained(this)),

Powered by Google App Engine
This is Rietveld 408576698