fake_gcm_stats_recorder.cc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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
  3. // found in the LICENSE file.
  4. #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h"
  5. namespace gcm {
  6. FakeGCMStatsRecorder::FakeGCMStatsRecorder() {
  7. }
  8. FakeGCMStatsRecorder::~FakeGCMStatsRecorder() {
  9. }
  10. void FakeGCMStatsRecorder::RecordCheckinInitiated(uint64_t android_id) {}
  11. void FakeGCMStatsRecorder::RecordCheckinDelayedDueToBackoff(
  12. int64_t delay_msec) {}
  13. void FakeGCMStatsRecorder::RecordCheckinSuccess() {
  14. }
  15. void FakeGCMStatsRecorder::RecordCheckinFailure(const std::string& status,
  16. bool will_retry) {}
  17. void FakeGCMStatsRecorder::RecordConnectionInitiated(const std::string& host) {
  18. }
  19. void FakeGCMStatsRecorder::RecordConnectionDelayedDueToBackoff(
  20. int64_t delay_msec) {}
  21. void FakeGCMStatsRecorder::RecordConnectionSuccess() {
  22. }
  23. void FakeGCMStatsRecorder::RecordConnectionFailure(int network_error) {
  24. }
  25. void FakeGCMStatsRecorder::RecordConnectionResetSignaled(
  26. ConnectionFactory::ConnectionResetReason reason) {
  27. }
  28. void FakeGCMStatsRecorder::RecordRegistrationSent(
  29. const std::string& app_id,
  30. const std::string& source) {
  31. }
  32. void FakeGCMStatsRecorder::RecordRegistrationResponse(
  33. const std::string& app_id,
  34. const std::string& source,
  35. RegistrationRequest::Status status) {
  36. }
  37. void FakeGCMStatsRecorder::RecordRegistrationRetryDelayed(
  38. const std::string& app_id,
  39. const std::string& source,
  40. int64_t delay_msec,
  41. int retries_left) {}
  42. void FakeGCMStatsRecorder::RecordDataMessageReceived(
  43. const std::string& app_id,
  44. const std::string& from,
  45. int message_byte_size,
  46. ReceivedMessageType message_type) {}
  47. void FakeGCMStatsRecorder::RecordUnregistrationSent(
  48. const std::string& app_id, const std::string& source) {
  49. }
  50. void FakeGCMStatsRecorder::RecordUnregistrationResponse(
  51. const std::string& app_id,
  52. const std::string& source,
  53. UnregistrationRequest::Status status) {
  54. }
  55. void FakeGCMStatsRecorder::RecordUnregistrationRetryDelayed(
  56. const std::string& app_id,
  57. const std::string& source,
  58. int64_t delay_msec,
  59. int retries_left) {}
  60. void FakeGCMStatsRecorder::RecordDataSentToWire(
  61. const std::string& app_id,
  62. const std::string& receiver_id,
  63. const std::string& message_id,
  64. int queued) {
  65. }
  66. void FakeGCMStatsRecorder::RecordNotifySendStatus(
  67. const std::string& app_id,
  68. const std::string& receiver_id,
  69. const std::string& message_id,
  70. gcm::MCSClient::MessageSendStatus status,
  71. int byte_size,
  72. int ttl) {
  73. }
  74. void FakeGCMStatsRecorder::RecordIncomingSendError(
  75. const std::string& app_id,
  76. const std::string& receiver_id,
  77. const std::string& message_id) {
  78. }
  79. } // namespace gcm