OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/gcm_driver/fake_gcm_client.h" | 5 #include "components/gcm_driver/fake_gcm_client.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/location.h" | 12 #include "base/location.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
13 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
15 #include "base/sys_byteorder.h" | 17 #include "base/sys_byteorder.h" |
16 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 delegate_->OnMessageSendError(app_id, send_error_details); | 307 delegate_->OnMessageSendError(app_id, send_error_details); |
306 } | 308 } |
307 | 309 |
308 void FakeGCMClient::SendAcknowledgement(const std::string& app_id, | 310 void FakeGCMClient::SendAcknowledgement(const std::string& app_id, |
309 const std::string& message_id) { | 311 const std::string& message_id) { |
310 if (delegate_) | 312 if (delegate_) |
311 delegate_->OnSendAcknowledged(app_id, message_id); | 313 delegate_->OnSendAcknowledged(app_id, message_id); |
312 } | 314 } |
313 | 315 |
314 } // namespace gcm | 316 } // namespace gcm |
OLD | NEW |