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

Unified Diff: google_apis/gcm/engine/unregistration_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/unregistration_request_unittest.cc
diff --git a/google_apis/gcm/engine/unregistration_request_unittest.cc b/google_apis/gcm/engine/unregistration_request_unittest.cc
index 1c736de1ad10b2ce6738e1d4f4f68c238fda142d..1d6bd4c3bbe24db4395949a6fe7aa36415bcf0f1 100644
--- a/google_apis/gcm/engine/unregistration_request_unittest.cc
+++ b/google_apis/gcm/engine/unregistration_request_unittest.cc
@@ -91,11 +91,14 @@ void UnregistrationRequestTest::UnregistrationCallback(
}
void UnregistrationRequestTest::CreateRequest() {
fgorski 2015/05/13 18:32:41 add tests for instance id path.
jianli 2015/05/13 22:42:57 Done.
+ scoped_ptr<UnregistrationRequest::GCMRequestInfo> gcm_request_info(
+ new UnregistrationRequest::GCMRequestInfo);
+ gcm_request_info->android_id = kAndroidId;
+ gcm_request_info->security_token = kSecurityToken;
+ gcm_request_info->app_id = kAppId;
request_.reset(new UnregistrationRequest(
GURL(kRegistrationURL),
- UnregistrationRequest::RequestInfo(kAndroidId,
- kSecurityToken,
- kAppId),
+ gcm_request_info.Pass(),
kDefaultBackoffPolicy,
base::Bind(&UnregistrationRequestTest::UnregistrationCallback,
base::Unretained(this)),

Powered by Google App Engine
This is Rietveld 408576698