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

Side by Side Diff: google_apis/gcm/engine/heartbeat_manager_unittest.cc

Issue 1968043003: Fix include path for moved thread_task_runner_handle.h header in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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/heartbeat_manager.cc ('k') | google_apis/gcm/engine/mcs_client.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 #include "google_apis/gcm/engine/heartbeat_manager.h" 5 #include "google_apis/gcm/engine/heartbeat_manager.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/test/test_simple_task_runner.h" 12 #include "base/test/test_simple_task_runner.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
16 #include "google_apis/gcm/protocol/mcs.pb.h" 16 #include "google_apis/gcm/protocol/mcs.pb.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace gcm { 19 namespace gcm {
20 20
21 namespace { 21 namespace {
22 22
23 mcs_proto::HeartbeatConfig BuildHeartbeatConfig(int interval_ms) { 23 mcs_proto::HeartbeatConfig BuildHeartbeatConfig(int interval_ms) {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 heartbeat = manager()->GetNextHeartbeatTime(); 308 heartbeat = manager()->GetNextHeartbeatTime();
309 EXPECT_GT(heartbeat - base::TimeTicks::Now(), 309 EXPECT_GT(heartbeat - base::TimeTicks::Now(),
310 base::TimeDelta::FromMilliseconds(kDefaultAckIntervalMs)); 310 base::TimeDelta::FromMilliseconds(kDefaultAckIntervalMs));
311 EXPECT_LE(heartbeat - base::TimeTicks::Now(), 311 EXPECT_LE(heartbeat - base::TimeTicks::Now(),
312 base::TimeDelta::FromMilliseconds(kCustomIntervalMs)); 312 base::TimeDelta::FromMilliseconds(kCustomIntervalMs));
313 } 313 }
314 314
315 } // namespace 315 } // namespace
316 316
317 } // namespace gcm 317 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/heartbeat_manager.cc ('k') | google_apis/gcm/engine/mcs_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698