blob: ffa6bdf043b4d1fae4015d3e13d0458f5ec6de90 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001// 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
7namespace base {
8
9NullTaskRunner::NullTaskRunner() {}
10
11NullTaskRunner::~NullTaskRunner() {}
12
13bool NullTaskRunner::PostDelayedTask(
14 const tracked_objects::Location& from_here,
15 const base::Closure& task,
16 base::TimeDelta delay) {
17 return false;
18}
19
20bool NullTaskRunner::PostNonNestableDelayedTask(
21 const tracked_objects::Location& from_here,
22 const base::Closure& task,
23 base::TimeDelta delay) {
24 return false;
25}
26
27bool NullTaskRunner::RunsTasksOnCurrentThread() const {
28 return true;
29}
30
Nick Bray0bcbd3b2015-03-12 16:29:36 -070031} // namespace base