Index: base/test/test_simple_task_runner.cc |
diff --git a/base/test/test_simple_task_runner.cc b/base/test/test_simple_task_runner.cc |
index 440d6a1cfe255f6240e42f6964cfe796d4a77399..cc39fab85ad3ecb8b1d7ee5f8d591a0f3669159b 100644 |
--- a/base/test/test_simple_task_runner.cc |
+++ b/base/test/test_simple_task_runner.cc |
@@ -47,6 +47,16 @@ TestSimpleTaskRunner::GetPendingTasks() const { |
return pending_tasks_; |
} |
+bool TestSimpleTaskRunner::HasPendingTask() const { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ return !pending_tasks_.empty(); |
+} |
+ |
+base::TimeDelta TestSimpleTaskRunner::NextPendingTaskDelay() const { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ return pending_tasks_.front().GetTimeToRun() - base::TimeTicks(); |
+} |
+ |
void TestSimpleTaskRunner::ClearPendingTasks() { |
DCHECK(thread_checker_.CalledOnValidThread()); |
pending_tasks_.clear(); |