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

Side by Side Diff: base/test/null_task_runner.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword Created 3 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 | « base/test/null_task_runner.h ('k') | base/test/scoped_task_scheduler.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/test/null_task_runner.h" 5 #include "base/test/null_task_runner.h"
6 6
7 namespace base { 7 namespace base {
8 8
9 NullTaskRunner::NullTaskRunner() {} 9 NullTaskRunner::NullTaskRunner() {}
10 10
11 NullTaskRunner::~NullTaskRunner() {} 11 NullTaskRunner::~NullTaskRunner() {}
12 12
13 bool NullTaskRunner::PostDelayedTask(const tracked_objects::Location& from_here, 13 bool NullTaskRunner::PostDelayedTask(const tracked_objects::Location& from_here,
14 OnceClosure task, 14 OnceClosure task,
15 base::TimeDelta delay) { 15 base::TimeDelta delay) {
16 return false; 16 return false;
17 } 17 }
18 18
19 bool NullTaskRunner::PostNonNestableDelayedTask( 19 bool NullTaskRunner::PostNonNestableDelayedTask(
20 const tracked_objects::Location& from_here, 20 const tracked_objects::Location& from_here,
21 OnceClosure task, 21 OnceClosure task,
22 base::TimeDelta delay) { 22 base::TimeDelta delay) {
23 return false; 23 return false;
24 } 24 }
25 25
26 bool NullTaskRunner::RunsTasksOnCurrentThread() const { 26 bool NullTaskRunner::RunsTasksInCurrentSequence() const {
27 return true; 27 return true;
28 } 28 }
29 29
30 } // namespace base 30 } // namespace base
OLDNEW
« no previous file with comments | « base/test/null_task_runner.h ('k') | base/test/scoped_task_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698