| Index: google_apis/gcm/engine/heartbeat_manager_unittest.cc
|
| diff --git a/google_apis/gcm/engine/heartbeat_manager_unittest.cc b/google_apis/gcm/engine/heartbeat_manager_unittest.cc
|
| index 2c3b668d5335c3819a30d1c22a0de8b7484e29c2..a2755df452cf97cf7e40ff683eb1a15db07b9894 100644
|
| --- a/google_apis/gcm/engine/heartbeat_manager_unittest.cc
|
| +++ b/google_apis/gcm/engine/heartbeat_manager_unittest.cc
|
| @@ -4,8 +4,11 @@
|
|
|
| #include "google_apis/gcm/engine/heartbeat_manager.h"
|
|
|
| +#include "base/bind.h"
|
| +#include "base/bind_helpers.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/time/time.h"
|
| +#include "base/timer/timer.h"
|
| #include "google_apis/gcm/protocol/mcs.pb.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -21,7 +24,10 @@ mcs_proto::HeartbeatConfig BuildHeartbeatConfig(int interval_ms) {
|
|
|
| class TestHeartbeatManager : public HeartbeatManager {
|
| public:
|
| - TestHeartbeatManager() {}
|
| + TestHeartbeatManager()
|
| + : HeartbeatManager(make_scoped_ptr(
|
| + new base::Timer(true, /* retain user task */
|
| + false /* non repeating */))) {}
|
| virtual ~TestHeartbeatManager() {}
|
|
|
| // Bypass the heartbeat timer, and send the heartbeat now.
|
|
|