| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void FakeGCMClient::SetRecording(bool recording) { | 109 void FakeGCMClient::SetRecording(bool recording) { |
| 110 } | 110 } |
| 111 | 111 |
| 112 void FakeGCMClient::ClearActivityLogs() { | 112 void FakeGCMClient::ClearActivityLogs() { |
| 113 } | 113 } |
| 114 | 114 |
| 115 GCMClient::GCMStatistics FakeGCMClient::GetStatistics() const { | 115 GCMClient::GCMStatistics FakeGCMClient::GetStatistics() const { |
| 116 return GCMClient::GCMStatistics(); | 116 return GCMClient::GCMStatistics(); |
| 117 } | 117 } |
| 118 | 118 |
| 119 void FakeGCMClient::SetAccountsForCheckin( | 119 void FakeGCMClient::SetAccountTokens( |
| 120 const std::map<std::string, std::string>& account_tokens) { | 120 const std::vector<AccountTokenInfo>& account_tokens) { |
| 121 } | 121 } |
| 122 | 122 |
| 123 void FakeGCMClient::UpdateAccountMapping( | 123 void FakeGCMClient::UpdateAccountMapping( |
| 124 const AccountMapping& account_mapping) { | 124 const AccountMapping& account_mapping) { |
| 125 } | 125 } |
| 126 | 126 |
| 127 void FakeGCMClient::RemoveAccountMapping(const std::string& account_id) { | 127 void FakeGCMClient::RemoveAccountMapping(const std::string& account_id) { |
| 128 } | 128 } |
| 129 | 129 |
| 130 void FakeGCMClient::PerformDelayedLoading() { | 130 void FakeGCMClient::PerformDelayedLoading() { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 delegate_->OnMessageSendError(app_id, send_error_details); | 241 delegate_->OnMessageSendError(app_id, send_error_details); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void FakeGCMClient::SendAcknowledgement(const std::string& app_id, | 244 void FakeGCMClient::SendAcknowledgement(const std::string& app_id, |
| 245 const std::string& message_id) { | 245 const std::string& message_id) { |
| 246 if (delegate_) | 246 if (delegate_) |
| 247 delegate_->OnSendAcknowledged(app_id, message_id); | 247 delegate_->OnSendAcknowledged(app_id, message_id); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace gcm | 250 } // namespace gcm |
| OLD | NEW |