| 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 #ifndef GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_ | 5 #ifndef GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_ |
| 6 #define GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_ | 6 #define GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_ |
| 7 | 7 |
| 8 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" | 8 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" |
| 9 | 9 |
| 10 namespace gcm { | 10 namespace gcm { |
| 11 | 11 |
| 12 // The fake version of GCMStatsRecorder that does nothing. | 12 // The fake version of GCMStatsRecorder that does nothing. |
| 13 class FakeGCMStatsRecorder : public GCMStatsRecorder { | 13 class FakeGCMStatsRecorder : public GCMStatsRecorder { |
| 14 public: | 14 public: |
| 15 FakeGCMStatsRecorder(); | 15 FakeGCMStatsRecorder(); |
| 16 ~FakeGCMStatsRecorder() override; | 16 ~FakeGCMStatsRecorder() override; |
| 17 | 17 |
| 18 void RecordCheckinInitiated(uint64 android_id) override; | 18 void RecordCheckinInitiated(uint64 android_id) override; |
| 19 void RecordCheckinDelayedDueToBackoff(int64 delay_msec) override; | 19 void RecordCheckinDelayedDueToBackoff(int64 delay_msec) override; |
| 20 void RecordCheckinSuccess() override; | 20 void RecordCheckinSuccess() override; |
| 21 void RecordCheckinFailure(std::string status, bool will_retry) override; | 21 void RecordCheckinFailure(std::string status, bool will_retry) override; |
| 22 void RecordConnectionInitiated(const std::string& host) override; | 22 void RecordConnectionInitiated(const std::string& host) override; |
| 23 void RecordConnectionDelayedDueToBackoff(int64 delay_msec) override; | 23 void RecordConnectionDelayedDueToBackoff(int64 delay_msec) override; |
| 24 void RecordConnectionSuccess() override; | 24 void RecordConnectionSuccess() override; |
| 25 void RecordConnectionFailure(int network_error) override; | 25 void RecordConnectionFailure(int network_error) override; |
| 26 void RecordConnectionResetSignaled( | 26 void RecordConnectionResetSignaled( |
| 27 ConnectionFactory::ConnectionResetReason reason) override; | 27 ConnectionFactory::ConnectionResetReason reason) override; |
| 28 void RecordRegistrationSent(const std::string& app_id, | 28 void RecordRegistrationSent(const std::string& app_id, |
| 29 const std::string& sender_ids) override; | 29 const std::string& senders) override; |
| 30 void RecordRegistrationResponse(const std::string& app_id, | 30 void RecordRegistrationResponse(const std::string& app_id, |
| 31 const std::vector<std::string>& sender_ids, | 31 const std::string& senders, |
| 32 RegistrationRequest::Status status) override; | 32 RegistrationRequest::Status status) override; |
| 33 void RecordRegistrationRetryRequested( | 33 void RecordRegistrationRetryRequested( |
| 34 const std::string& app_id, | 34 const std::string& app_id, |
| 35 const std::vector<std::string>& sender_ids, | 35 const std::string& senders, |
| 36 int retries_left) override; | 36 int retries_left) override; |
| 37 void RecordUnregistrationSent(const std::string& app_id) override; | 37 void RecordUnregistrationSent(const std::string& app_id) override; |
| 38 void RecordUnregistrationResponse( | 38 void RecordUnregistrationResponse( |
| 39 const std::string& app_id, | 39 const std::string& app_id, |
| 40 UnregistrationRequest::Status status) override; | 40 UnregistrationRequest::Status status) override; |
| 41 void RecordUnregistrationRetryDelayed(const std::string& app_id, | 41 void RecordUnregistrationRetryDelayed(const std::string& app_id, |
| 42 int64 delay_msec) override; | 42 int64 delay_msec) override; |
| 43 void RecordDataMessageReceived(const std::string& app_id, | 43 void RecordDataMessageReceived(const std::string& app_id, |
| 44 const std::string& from, | 44 const std::string& from, |
| 45 int message_byte_size, | 45 int message_byte_size, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 59 const std::string& receiver_id, | 59 const std::string& receiver_id, |
| 60 const std::string& message_id) override; | 60 const std::string& message_id) override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(FakeGCMStatsRecorder); | 63 DISALLOW_COPY_AND_ASSIGN(FakeGCMStatsRecorder); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace gcm | 66 } // namespace gcm |
| 67 | 67 |
| 68 #endif // GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_ | 68 #endif // GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_ |
| OLD | NEW |