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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 const tracked_objects::Location& from_here, | 21 const tracked_objects::Location& from_here, |
22 const base::Closure& task, | 22 const base::Closure& task, |
23 base::TimeDelta delay) { | 23 base::TimeDelta delay) { |
24 return false; | 24 return false; |
25 } | 25 } |
26 | 26 |
27 bool NullTaskRunner::RunsTasksOnCurrentThread() const { | 27 bool NullTaskRunner::RunsTasksOnCurrentThread() const { |
28 return true; | 28 return true; |
29 } | 29 } |
30 | 30 |
31 } // namespace | 31 } // namespace base |
OLD | NEW |