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)), |