• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
5 #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h"
6 
7 namespace gcm {
8 
FakeGCMStatsRecorder()9 FakeGCMStatsRecorder::FakeGCMStatsRecorder() {
10 }
11 
~FakeGCMStatsRecorder()12 FakeGCMStatsRecorder::~FakeGCMStatsRecorder() {
13 }
14 
RecordCheckinInitiated(uint64 android_id)15 void FakeGCMStatsRecorder::RecordCheckinInitiated(uint64 android_id) {
16 }
17 
RecordCheckinDelayedDueToBackoff(int64 delay_msec)18 void FakeGCMStatsRecorder::RecordCheckinDelayedDueToBackoff(int64 delay_msec) {
19 }
20 
RecordCheckinSuccess()21 void FakeGCMStatsRecorder::RecordCheckinSuccess() {
22 }
23 
RecordCheckinFailure(std::string status,bool will_retry)24 void FakeGCMStatsRecorder::RecordCheckinFailure(std::string status,
25                                             bool will_retry) {
26 }
27 
RecordConnectionInitiated(const std::string & host)28 void FakeGCMStatsRecorder::RecordConnectionInitiated(const std::string& host) {
29 }
30 
RecordConnectionDelayedDueToBackoff(int64 delay_msec)31 void FakeGCMStatsRecorder::RecordConnectionDelayedDueToBackoff(
32     int64 delay_msec) {
33 }
34 
RecordConnectionSuccess()35 void FakeGCMStatsRecorder::RecordConnectionSuccess() {
36 }
37 
RecordConnectionFailure(int network_error)38 void FakeGCMStatsRecorder::RecordConnectionFailure(int network_error) {
39 }
40 
RecordConnectionResetSignaled(ConnectionFactory::ConnectionResetReason reason)41 void FakeGCMStatsRecorder::RecordConnectionResetSignaled(
42       ConnectionFactory::ConnectionResetReason reason) {
43 }
44 
RecordRegistrationSent(const std::string & app_id,const std::string & sender_ids)45 void FakeGCMStatsRecorder::RecordRegistrationSent(
46     const std::string& app_id,
47     const std::string& sender_ids) {
48 }
49 
RecordRegistrationResponse(const std::string & app_id,const std::vector<std::string> & sender_ids,RegistrationRequest::Status status)50 void FakeGCMStatsRecorder::RecordRegistrationResponse(
51     const std::string& app_id,
52     const std::vector<std::string>& sender_ids,
53     RegistrationRequest::Status status) {
54 }
55 
RecordRegistrationRetryRequested(const std::string & app_id,const std::vector<std::string> & sender_ids,int retries_left)56 void FakeGCMStatsRecorder::RecordRegistrationRetryRequested(
57     const std::string& app_id,
58     const std::vector<std::string>& sender_ids,
59     int retries_left) {
60 }
61 
RecordUnregistrationSent(const std::string & app_id)62 void FakeGCMStatsRecorder::RecordUnregistrationSent(
63     const std::string& app_id) {
64 }
65 
RecordUnregistrationResponse(const std::string & app_id,UnregistrationRequest::Status status)66 void FakeGCMStatsRecorder::RecordUnregistrationResponse(
67     const std::string& app_id,
68     UnregistrationRequest::Status status) {
69 }
70 
RecordUnregistrationRetryDelayed(const std::string & app_id,int64 delay_msec)71 void FakeGCMStatsRecorder::RecordUnregistrationRetryDelayed(
72     const std::string& app_id,
73     int64 delay_msec) {
74 }
75 
RecordDataMessageReceived(const std::string & app_id,const std::string & from,int message_byte_size,bool to_registered_app,ReceivedMessageType message_type)76 void FakeGCMStatsRecorder::RecordDataMessageReceived(
77     const std::string& app_id,
78     const std::string& from,
79     int message_byte_size,
80     bool to_registered_app,
81     ReceivedMessageType message_type) {
82 }
83 
RecordDataSentToWire(const std::string & app_id,const std::string & receiver_id,const std::string & message_id,int queued)84 void FakeGCMStatsRecorder::RecordDataSentToWire(
85     const std::string& app_id,
86     const std::string& receiver_id,
87     const std::string& message_id,
88     int queued) {
89 }
90 
RecordNotifySendStatus(const std::string & app_id,const std::string & receiver_id,const std::string & message_id,gcm::MCSClient::MessageSendStatus status,int byte_size,int ttl)91 void FakeGCMStatsRecorder::RecordNotifySendStatus(
92     const std::string& app_id,
93     const std::string& receiver_id,
94     const std::string& message_id,
95     gcm::MCSClient::MessageSendStatus status,
96     int byte_size,
97     int ttl) {
98 }
99 
RecordIncomingSendError(const std::string & app_id,const std::string & receiver_id,const std::string & message_id)100 void FakeGCMStatsRecorder::RecordIncomingSendError(
101     const std::string& app_id,
102     const std::string& receiver_id,
103     const std::string& message_id) {
104 }
105 
106 
107 }  // namespace gcm
108