| Index: chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| diff --git a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| index 2b1499a636811678df1916e2f33d7b9eb0057136..dc473183a7468837e0f05066e1f485da5e8514a3 100644
|
| --- a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| +++ b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| @@ -61,7 +61,8 @@ class GCMProfileServiceTest : public testing::Test {
|
| void CreateGCMProfileService();
|
|
|
| void RegisterAndWaitForCompletion(const std::vector<std::string>& sender_ids);
|
| - void UnregisterAndWaitForCompletion();
|
| + void UnregisterAndWaitForCompletion(
|
| + const std::vector<std::string>& sender_ids);
|
| void SendAndWaitForCompletion(const GCMClient::OutgoingMessage& message);
|
|
|
| void RegisterCompleted(const base::Closure& callback,
|
| @@ -147,10 +148,12 @@ void GCMProfileServiceTest::RegisterAndWaitForCompletion(
|
| run_loop.Run();
|
| }
|
|
|
| -void GCMProfileServiceTest::UnregisterAndWaitForCompletion() {
|
| +void GCMProfileServiceTest::UnregisterAndWaitForCompletion(
|
| + const std::vector<std::string>& sender_ids) {
|
| base::RunLoop run_loop;
|
| gcm_profile_service_->driver()->Unregister(
|
| kTestAppID,
|
| + sender_ids,
|
| base::Bind(&GCMProfileServiceTest::UnregisterCompleted,
|
| base::Unretained(this),
|
| run_loop.QuitClosure()));
|
| @@ -207,7 +210,7 @@ TEST_F(GCMProfileServiceTest, RegisterAndUnregister) {
|
| EXPECT_EQ(expected_registration_id, registration_id());
|
| EXPECT_EQ(GCMClient::SUCCESS, registration_result());
|
|
|
| - UnregisterAndWaitForCompletion();
|
| + UnregisterAndWaitForCompletion(sender_ids);
|
| EXPECT_EQ(GCMClient::SUCCESS, unregistration_result());
|
| }
|
|
|
|
|