Index: google_apis/gcm/engine/connection_factory_impl_unittest.cc |
diff --git a/google_apis/gcm/engine/connection_factory_impl_unittest.cc b/google_apis/gcm/engine/connection_factory_impl_unittest.cc |
index 56ed855ef573fc82c15b9f01613704e17ab455fe..75b3d9263a336f24f9cb99f72f3c9aa5ee81943e 100644 |
--- a/google_apis/gcm/engine/connection_factory_impl_unittest.cc |
+++ b/google_apis/gcm/engine/connection_factory_impl_unittest.cc |
@@ -147,6 +147,8 @@ TestConnectionFactoryImpl::TestConnectionFactoryImpl( |
NULL, |
NULL, |
&dummy_recorder_), |
+ // Set a non-null time. |
+ tick_clock_(base::TimeTicks() + base::TimeDelta::FromMilliseconds(1)), |
connect_result_(net::ERR_UNEXPECTED), |
num_expected_attempts_(0), |
connections_fulfilled_(true), |
@@ -155,10 +157,7 @@ TestConnectionFactoryImpl::TestConnectionFactoryImpl( |
scoped_handler_( |
new FakeConnectionHandler(base::Bind(&ReadContinuation), |
base::Bind(&WriteContinuation))), |
- fake_handler_(scoped_handler_.get()) { |
- // Set a non-null time. |
- tick_clock_.Advance(base::TimeDelta::FromMilliseconds(1)); |
-} |
+ fake_handler_(scoped_handler_.get()) {} |
TestConnectionFactoryImpl::~TestConnectionFactoryImpl() { |
EXPECT_EQ(0, num_expected_attempts_); |