• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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() = default;
10 
11 NullTaskRunner::~NullTaskRunner() = default;
12 
PostDelayedTask(const Location & from_here,OnceClosure task,base::TimeDelta delay)13 bool NullTaskRunner::PostDelayedTask(const Location& from_here,
14                                      OnceClosure task,
15                                      base::TimeDelta delay) {
16   return false;
17 }
18 
PostNonNestableDelayedTask(const Location & from_here,OnceClosure task,base::TimeDelta delay)19 bool NullTaskRunner::PostNonNestableDelayedTask(const Location& from_here,
20                                                 OnceClosure task,
21                                                 base::TimeDelta delay) {
22   return false;
23 }
24 
RunsTasksInCurrentSequence() const25 bool NullTaskRunner::RunsTasksInCurrentSequence() const {
26   return true;
27 }
28 
29 }  // namespace base
30