| Index: components/gcm_driver/fake_gcm_app_handler.cc
|
| diff --git a/components/gcm_driver/fake_gcm_app_handler.cc b/components/gcm_driver/fake_gcm_app_handler.cc
|
| index a2ccbb08d3b433b95de0e67346d5684234030cb2..40258eb47bc59280f6d724d4d30f465c35aedb0c 100644
|
| --- a/components/gcm_driver/fake_gcm_app_handler.cc
|
| +++ b/components/gcm_driver/fake_gcm_app_handler.cc
|
| @@ -53,9 +53,20 @@ void FakeGCMAppHandler::OnSendError(
|
| run_loop_->Quit();
|
| }
|
|
|
| +void FakeGCMAppHandler::OnSendAcknowledged(
|
| + const std::string& app_id,
|
| + const std::string& message_id) {
|
| + ClearResults();
|
| + app_id_ = app_id;
|
| + acked_message_id_ = message_id;
|
| + if (run_loop_)
|
| + run_loop_->Quit();
|
| +}
|
| +
|
| void FakeGCMAppHandler::ClearResults() {
|
| received_event_ = NO_EVENT;
|
| app_id_.clear();
|
| + acked_message_id_.clear();
|
| message_ = GCMClient::IncomingMessage();
|
| send_error_details_ = GCMClient::SendErrorDetails();
|
| }
|
|
|