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

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

Issue 11550031: Implement SequenceChecker, which is a generalization of ThreadChecker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/test/null_task_runner.h"
6
7 namespace base {
8
9 NullTaskRunner::NullTaskRunner() {}
10
11 NullTaskRunner::~NullTaskRunner() {}
12
13 bool NullTaskRunner::PostDelayedTask(
14 const tracked_objects::Location& from_here,
15 const base::Closure& task,
16 base::TimeDelta delay) {
17 return false;
18 }
19
20 bool NullTaskRunner::PostNonNestableDelayedTask(
21 const tracked_objects::Location& from_here,
22 const base::Closure& task,
23 base::TimeDelta delay) {
24 return false;
25 }
26
27 bool NullTaskRunner::RunsTasksOnCurrentThread() const {
28 return true;
29 }
30
31 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698