OLD | NEW |
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( | 13 bool NullTaskRunner::PostDelayedTask(const tracked_objects::Location& from_here, |
14 const tracked_objects::Location& from_here, | 14 Closure task, |
15 const base::Closure& task, | 15 base::TimeDelta delay) { |
16 base::TimeDelta delay) { | |
17 return false; | 16 return false; |
18 } | 17 } |
19 | 18 |
20 bool NullTaskRunner::PostNonNestableDelayedTask( | 19 bool NullTaskRunner::PostNonNestableDelayedTask( |
21 const tracked_objects::Location& from_here, | 20 const tracked_objects::Location& from_here, |
22 const base::Closure& task, | 21 Closure task, |
23 base::TimeDelta delay) { | 22 base::TimeDelta delay) { |
24 return false; | 23 return false; |
25 } | 24 } |
26 | 25 |
27 bool NullTaskRunner::RunsTasksOnCurrentThread() const { | 26 bool NullTaskRunner::RunsTasksOnCurrentThread() const { |
28 return true; | 27 return true; |
29 } | 28 } |
30 | 29 |
31 } // namespace base | 30 } // namespace base |
OLD | NEW |