This source file includes following definitions.
- PostDelayedTask
- PostNonNestableDelayedTask
- RunsTasksOnCurrentThread
#include "base/test/null_task_runner.h"
namespace base {
NullTaskRunner::NullTaskRunner() {}
NullTaskRunner::~NullTaskRunner() {}
bool NullTaskRunner::PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
base::TimeDelta delay) {
return false;
}
bool NullTaskRunner::PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
base::TimeDelta delay) {
return false;
}
bool NullTaskRunner::RunsTasksOnCurrentThread() const {
return true;
}
}