| Index: components/gcm_driver/fake_gcm_client.cc
|
| diff --git a/components/gcm_driver/fake_gcm_client.cc b/components/gcm_driver/fake_gcm_client.cc
|
| index 9c1e3925f9ed889713878653a3bf0ce20d89afa7..ecd7f357bad5caeddcf8909007df8ab76cc81f1b 100644
|
| --- a/components/gcm_driver/fake_gcm_client.cc
|
| +++ b/components/gcm_driver/fake_gcm_client.cc
|
| @@ -158,14 +158,26 @@ void FakeGCMClient::Send(const std::string& app_id,
|
| weak_ptr_factory_.GetWeakPtr(), app_id, message));
|
| }
|
|
|
| +void FakeGCMClient::RecordDecryptionFailure(
|
| + const std::string& app_id,
|
| + GCMEncryptionProvider::DecryptionFailure reason) {
|
| + recorder_.RecordDecryptionFailure(app_id, reason);
|
| +}
|
| +
|
| void FakeGCMClient::SetRecording(bool recording) {
|
| + recorder_.set_is_recording(recording);
|
| }
|
|
|
| void FakeGCMClient::ClearActivityLogs() {
|
| + recorder_.Clear();
|
| }
|
|
|
| GCMClient::GCMStatistics FakeGCMClient::GetStatistics() const {
|
| - return GCMClient::GCMStatistics();
|
| + GCMClient::GCMStatistics statistics;
|
| + statistics.is_recording = recorder_.is_recording();
|
| +
|
| + recorder_.CollectActivities(&statistics.recorded_activities);
|
| + return statistics;
|
| }
|
|
|
| void FakeGCMClient::SetAccountTokens(
|
|
|