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

Unified Diff: google_apis/gcm/gcm_client_impl_unittest.cc

Issue 202083005: Add activity recording capability to gcm internals page. User can refresh, start/stop recording, an… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address all code reviews. Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: google_apis/gcm/gcm_client_impl_unittest.cc
diff --git a/google_apis/gcm/gcm_client_impl_unittest.cc b/google_apis/gcm/gcm_client_impl_unittest.cc
index 7320c003a0d8199c6bc09adc7ff86ffd259b1208..d883252c3a96d46cb7c96ae084b4355f7defa3f9 100644
--- a/google_apis/gcm/gcm_client_impl_unittest.cc
+++ b/google_apis/gcm/gcm_client_impl_unittest.cc
@@ -13,6 +13,7 @@
#include "google_apis/gcm/base/mcs_util.h"
#include "google_apis/gcm/engine/fake_connection_factory.h"
#include "google_apis/gcm/engine/fake_connection_handler.h"
+#include "google_apis/gcm/gcm_stats_recorder.h"
#include "google_apis/gcm/protocol/android_checkin.pb.h"
#include "google_apis/gcm/protocol/checkin.pb.h"
#include "google_apis/gcm/protocol/mcs.pb.h"
@@ -79,11 +80,12 @@ class FakeMCSClient : public MCSClient {
uint64 last_security_token_;
uint8 last_message_tag_;
mcs_proto::DataMessageStanza last_data_message_stanza_;
+ gcm::GCMStatsRecorder recorder_;
};
FakeMCSClient::FakeMCSClient(base::Clock* clock,
ConnectionFactory* connection_factory)
- : MCSClient("", clock, connection_factory, NULL),
+ : MCSClient("", clock, connection_factory, NULL, & recorder_),
last_android_id_(0u),
last_security_token_(0u),
last_message_tag_(kNumProtoTypes) {

Powered by Google App Engine
This is Rietveld 408576698