Index: google_apis/gcm/engine/mcs_client_unittest.cc |
diff --git a/google_apis/gcm/engine/mcs_client_unittest.cc b/google_apis/gcm/engine/mcs_client_unittest.cc |
index 5983ddd747ec41a82575874611151c1afb09df60..9f84a46e89a93bebe24ad6623c85354dcee9a1aa 100644 |
--- a/google_apis/gcm/engine/mcs_client_unittest.cc |
+++ b/google_apis/gcm/engine/mcs_client_unittest.cc |
@@ -14,6 +14,7 @@ |
#include "google_apis/gcm/engine/fake_connection_factory.h" |
#include "google_apis/gcm/engine/fake_connection_handler.h" |
#include "google_apis/gcm/engine/gcm_store_impl.h" |
+#include "google_apis/gcm/gcm_stats_recorder.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace gcm { |
@@ -66,8 +67,9 @@ class TestMCSClient : public MCSClient { |
public: |
TestMCSClient(base::Clock* clock, |
ConnectionFactory* connection_factory, |
- GCMStore* gcm_store) |
- : MCSClient("", clock, connection_factory, gcm_store), |
+ GCMStore* gcm_store, |
+ gcm::GCMStatsRecorder* recorder) |
+ : MCSClient("", clock, connection_factory, gcm_store, recorder), |
next_id_(0) { |
} |
@@ -133,6 +135,8 @@ class MCSClientTest : public testing::Test { |
scoped_ptr<MCSMessage> received_message_; |
std::string sent_message_id_; |
MCSClient::MessageSendStatus message_send_status_; |
+ |
+ gcm::GCMStatsRecorder recorder_; |
}; |
MCSClientTest::MCSClientTest() |
@@ -161,7 +165,8 @@ void MCSClientTest::BuildMCSClient() { |
message_loop_.message_loop_proxy())); |
mcs_client_.reset(new TestMCSClient(&clock_, |
&connection_factory_, |
- gcm_store_.get())); |
+ gcm_store_.get(), |
+ &recorder_)); |
} |
void MCSClientTest::InitializeClient() { |