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

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

Issue 625293003: replace OVERRIDE and FINAL with override and final in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase on master Created 6 years, 2 months 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
« no previous file with comments | « google_apis/gcm/engine/unregistration_request.h ('k') | google_apis/gcm/tools/mcs_probe.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 virtual ~FakeGCMStatsRecorder(); 16 virtual ~FakeGCMStatsRecorder();
17 17
18 virtual void RecordCheckinInitiated(uint64 android_id) OVERRIDE; 18 virtual void RecordCheckinInitiated(uint64 android_id) override;
19 virtual void RecordCheckinDelayedDueToBackoff(int64 delay_msec) OVERRIDE; 19 virtual void RecordCheckinDelayedDueToBackoff(int64 delay_msec) override;
20 virtual void RecordCheckinSuccess() OVERRIDE; 20 virtual void RecordCheckinSuccess() override;
21 virtual void RecordCheckinFailure(std::string status, 21 virtual void RecordCheckinFailure(std::string status,
22 bool will_retry) OVERRIDE; 22 bool will_retry) override;
23 virtual void RecordConnectionInitiated(const std::string& host) OVERRIDE; 23 virtual void RecordConnectionInitiated(const std::string& host) override;
24 virtual void RecordConnectionDelayedDueToBackoff(int64 delay_msec) OVERRIDE; 24 virtual void RecordConnectionDelayedDueToBackoff(int64 delay_msec) override;
25 virtual void RecordConnectionSuccess() OVERRIDE; 25 virtual void RecordConnectionSuccess() override;
26 virtual void RecordConnectionFailure(int network_error) OVERRIDE; 26 virtual void RecordConnectionFailure(int network_error) override;
27 virtual void RecordConnectionResetSignaled( 27 virtual void RecordConnectionResetSignaled(
28 ConnectionFactory::ConnectionResetReason reason) OVERRIDE; 28 ConnectionFactory::ConnectionResetReason reason) override;
29 virtual void RecordRegistrationSent(const std::string& app_id, 29 virtual void RecordRegistrationSent(const std::string& app_id,
30 const std::string& sender_ids) OVERRIDE; 30 const std::string& sender_ids) override;
31 virtual void RecordRegistrationResponse( 31 virtual void RecordRegistrationResponse(
32 const std::string& app_id, 32 const std::string& app_id,
33 const std::vector<std::string>& sender_ids, 33 const std::vector<std::string>& sender_ids,
34 RegistrationRequest::Status status) OVERRIDE; 34 RegistrationRequest::Status status) override;
35 virtual void RecordRegistrationRetryRequested( 35 virtual void RecordRegistrationRetryRequested(
36 const std::string& app_id, 36 const std::string& app_id,
37 const std::vector<std::string>& sender_ids, 37 const std::vector<std::string>& sender_ids,
38 int retries_left) OVERRIDE; 38 int retries_left) override;
39 virtual void RecordUnregistrationSent(const std::string& app_id) OVERRIDE; 39 virtual void RecordUnregistrationSent(const std::string& app_id) override;
40 virtual void RecordUnregistrationResponse( 40 virtual void RecordUnregistrationResponse(
41 const std::string& app_id, 41 const std::string& app_id,
42 UnregistrationRequest::Status status) OVERRIDE; 42 UnregistrationRequest::Status status) override;
43 virtual void RecordUnregistrationRetryDelayed(const std::string& app_id, 43 virtual void RecordUnregistrationRetryDelayed(const std::string& app_id,
44 int64 delay_msec) OVERRIDE; 44 int64 delay_msec) override;
45 virtual void RecordDataMessageReceived( 45 virtual void RecordDataMessageReceived(
46 const std::string& app_id, 46 const std::string& app_id,
47 const std::string& from, 47 const std::string& from,
48 int message_byte_size, 48 int message_byte_size,
49 bool to_registered_app, 49 bool to_registered_app,
50 ReceivedMessageType message_type) OVERRIDE; 50 ReceivedMessageType message_type) override;
51 virtual void RecordDataSentToWire(const std::string& app_id, 51 virtual void RecordDataSentToWire(const std::string& app_id,
52 const std::string& receiver_id, 52 const std::string& receiver_id,
53 const std::string& message_id, 53 const std::string& message_id,
54 int queued) OVERRIDE; 54 int queued) override;
55 virtual void RecordNotifySendStatus(const std::string& app_id, 55 virtual void RecordNotifySendStatus(const std::string& app_id,
56 const std::string& receiver_id, 56 const std::string& receiver_id,
57 const std::string& message_id, 57 const std::string& message_id,
58 MCSClient::MessageSendStatus status, 58 MCSClient::MessageSendStatus status,
59 int byte_size, 59 int byte_size,
60 int ttl) OVERRIDE; 60 int ttl) override;
61 virtual void RecordIncomingSendError(const std::string& app_id, 61 virtual void RecordIncomingSendError(const std::string& app_id,
62 const std::string& receiver_id, 62 const std::string& receiver_id,
63 const std::string& message_id) OVERRIDE; 63 const std::string& message_id) override;
64 64
65 private: 65 private:
66 DISALLOW_COPY_AND_ASSIGN(FakeGCMStatsRecorder); 66 DISALLOW_COPY_AND_ASSIGN(FakeGCMStatsRecorder);
67 }; 67 };
68 68
69 } // namespace gcm 69 } // namespace gcm
70 70
71 #endif // GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_ 71 #endif // GOOGLE_APIS_GCM_MONITORING_FAKE_GCM_STATS_RECODER_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/unregistration_request.h ('k') | google_apis/gcm/tools/mcs_probe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698