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.
5 #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h"
9 FakeGCMStatsRecorder::FakeGCMStatsRecorder() {
12 FakeGCMStatsRecorder::~FakeGCMStatsRecorder() {
15 void FakeGCMStatsRecorder::RecordCheckinInitiated(uint64 android_id) {
18 void FakeGCMStatsRecorder::RecordCheckinDelayedDueToBackoff(int64 delay_msec) {
21 void FakeGCMStatsRecorder::RecordCheckinSuccess() {
24 void FakeGCMStatsRecorder::RecordCheckinFailure(std::string status,
28 void FakeGCMStatsRecorder::RecordConnectionInitiated(const std::string& host) {
31 void FakeGCMStatsRecorder::RecordConnectionDelayedDueToBackoff(
35 void FakeGCMStatsRecorder::RecordConnectionSuccess() {
38 void FakeGCMStatsRecorder::RecordConnectionFailure(int network_error) {
41 void FakeGCMStatsRecorder::RecordConnectionResetSignaled(
42 ConnectionFactory::ConnectionResetReason reason) {
45 void FakeGCMStatsRecorder::RecordRegistrationSent(
46 const std::string& app_id,
47 const std::string& sender_ids) {
50 void FakeGCMStatsRecorder::RecordRegistrationResponse(
51 const std::string& app_id,
52 const std::vector<std::string>& sender_ids,
53 RegistrationRequest::Status status) {
56 void FakeGCMStatsRecorder::RecordRegistrationRetryRequested(
57 const std::string& app_id,
58 const std::vector<std::string>& sender_ids,
62 void FakeGCMStatsRecorder::RecordUnregistrationSent(
63 const std::string& app_id) {
66 void FakeGCMStatsRecorder::RecordUnregistrationResponse(
67 const std::string& app_id,
68 UnregistrationRequest::Status status) {
71 void FakeGCMStatsRecorder::RecordUnregistrationRetryDelayed(
72 const std::string& app_id,
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) {
84 void FakeGCMStatsRecorder::RecordDataSentToWire(
85 const std::string& app_id,
86 const std::string& receiver_id,
87 const std::string& message_id,
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,
100 void FakeGCMStatsRecorder::RecordIncomingSendError(
101 const std::string& app_id,
102 const std::string& receiver_id,
103 const std::string& message_id) {