Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: google_apis/gcm/monitoring/fake_gcm_stats_recorder.cc

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h" 5 #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h"
6 6
7 namespace gcm { 7 namespace gcm {
8 8
9 FakeGCMStatsRecorder::FakeGCMStatsRecorder() { 9 FakeGCMStatsRecorder::FakeGCMStatsRecorder() {
10 } 10 }
11 11
12 FakeGCMStatsRecorder::~FakeGCMStatsRecorder() { 12 FakeGCMStatsRecorder::~FakeGCMStatsRecorder() {
13 } 13 }
14 14
15 void FakeGCMStatsRecorder::RecordCheckinInitiated(uint64 android_id) { 15 void FakeGCMStatsRecorder::RecordCheckinInitiated(uint64_t android_id) {}
16 }
17 16
18 void FakeGCMStatsRecorder::RecordCheckinDelayedDueToBackoff(int64 delay_msec) { 17 void FakeGCMStatsRecorder::RecordCheckinDelayedDueToBackoff(
19 } 18 int64_t delay_msec) {}
20 19
21 void FakeGCMStatsRecorder::RecordCheckinSuccess() { 20 void FakeGCMStatsRecorder::RecordCheckinSuccess() {
22 } 21 }
23 22
24 void FakeGCMStatsRecorder::RecordCheckinFailure(const std::string& status, 23 void FakeGCMStatsRecorder::RecordCheckinFailure(const std::string& status,
25 bool will_retry) {} 24 bool will_retry) {}
26 25
27 void FakeGCMStatsRecorder::RecordConnectionInitiated(const std::string& host) { 26 void FakeGCMStatsRecorder::RecordConnectionInitiated(const std::string& host) {
28 } 27 }
29 28
30 void FakeGCMStatsRecorder::RecordConnectionDelayedDueToBackoff( 29 void FakeGCMStatsRecorder::RecordConnectionDelayedDueToBackoff(
31 int64 delay_msec) { 30 int64_t delay_msec) {}
32 }
33 31
34 void FakeGCMStatsRecorder::RecordConnectionSuccess() { 32 void FakeGCMStatsRecorder::RecordConnectionSuccess() {
35 } 33 }
36 34
37 void FakeGCMStatsRecorder::RecordConnectionFailure(int network_error) { 35 void FakeGCMStatsRecorder::RecordConnectionFailure(int network_error) {
38 } 36 }
39 37
40 void FakeGCMStatsRecorder::RecordConnectionResetSignaled( 38 void FakeGCMStatsRecorder::RecordConnectionResetSignaled(
41 ConnectionFactory::ConnectionResetReason reason) { 39 ConnectionFactory::ConnectionResetReason reason) {
42 } 40 }
43 41
44 void FakeGCMStatsRecorder::RecordRegistrationSent( 42 void FakeGCMStatsRecorder::RecordRegistrationSent(
45 const std::string& app_id, 43 const std::string& app_id,
46 const std::string& source) { 44 const std::string& source) {
47 } 45 }
48 46
49 void FakeGCMStatsRecorder::RecordRegistrationResponse( 47 void FakeGCMStatsRecorder::RecordRegistrationResponse(
50 const std::string& app_id, 48 const std::string& app_id,
51 const std::string& source, 49 const std::string& source,
52 RegistrationRequest::Status status) { 50 RegistrationRequest::Status status) {
53 } 51 }
54 52
55 void FakeGCMStatsRecorder::RecordRegistrationRetryDelayed( 53 void FakeGCMStatsRecorder::RecordRegistrationRetryDelayed(
56 const std::string& app_id, 54 const std::string& app_id,
57 const std::string& source, 55 const std::string& source,
58 int64 delay_msec, 56 int64_t delay_msec,
59 int retries_left) { 57 int retries_left) {}
60 }
61 58
62 void FakeGCMStatsRecorder::RecordUnregistrationSent( 59 void FakeGCMStatsRecorder::RecordUnregistrationSent(
63 const std::string& app_id, const std::string& source) { 60 const std::string& app_id, const std::string& source) {
64 } 61 }
65 62
66 void FakeGCMStatsRecorder::RecordUnregistrationResponse( 63 void FakeGCMStatsRecorder::RecordUnregistrationResponse(
67 const std::string& app_id, 64 const std::string& app_id,
68 const std::string& source, 65 const std::string& source,
69 UnregistrationRequest::Status status) { 66 UnregistrationRequest::Status status) {
70 } 67 }
71 68
72 void FakeGCMStatsRecorder::RecordUnregistrationRetryDelayed( 69 void FakeGCMStatsRecorder::RecordUnregistrationRetryDelayed(
73 const std::string& app_id, 70 const std::string& app_id,
74 const std::string& source, 71 const std::string& source,
75 int64 delay_msec, 72 int64_t delay_msec,
76 int retries_left) { 73 int retries_left) {}
77 }
78 74
79 void FakeGCMStatsRecorder::RecordDataMessageReceived( 75 void FakeGCMStatsRecorder::RecordDataMessageReceived(
80 const std::string& app_id, 76 const std::string& app_id,
81 const std::string& from, 77 const std::string& from,
82 int message_byte_size, 78 int message_byte_size,
83 bool to_registered_app, 79 bool to_registered_app,
84 ReceivedMessageType message_type) { 80 ReceivedMessageType message_type) {
85 } 81 }
86 82
87 void FakeGCMStatsRecorder::RecordDataSentToWire( 83 void FakeGCMStatsRecorder::RecordDataSentToWire(
(...skipping 13 matching lines...) Expand all
101 } 97 }
102 98
103 void FakeGCMStatsRecorder::RecordIncomingSendError( 99 void FakeGCMStatsRecorder::RecordIncomingSendError(
104 const std::string& app_id, 100 const std::string& app_id,
105 const std::string& receiver_id, 101 const std::string& receiver_id,
106 const std::string& message_id) { 102 const std::string& message_id) {
107 } 103 }
108 104
109 105
110 } // namespace gcm 106 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/monitoring/fake_gcm_stats_recorder.h ('k') | google_apis/gcm/monitoring/gcm_stats_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698