Index: components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
diff --git a/components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc b/components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
index 23c69978402bf982ee9fdd0a986e376b11a273f7..ecded84d8f99e5400255d86cd48eed426cbb3af8 100644 |
--- a/components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
+++ b/components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
@@ -4,6 +4,8 @@ |
#include "components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.h" |
+#include "base/time/default_tick_clock.h" |
+ |
namespace scheduler { |
// static |
@@ -15,7 +17,8 @@ LazySchedulerMessageLoopDelegateForTests::Create() { |
LazySchedulerMessageLoopDelegateForTests:: |
LazySchedulerMessageLoopDelegateForTests() |
: message_loop_(base::MessageLoop::current()), |
- thread_id_(base::PlatformThread::CurrentId()) { |
+ thread_id_(base::PlatformThread::CurrentId()), |
+ time_source_(make_scoped_ptr(new base::DefaultTickClock())) { |
if (message_loop_) |
original_task_runner_ = message_loop_->task_runner(); |
} |
@@ -82,4 +85,10 @@ bool LazySchedulerMessageLoopDelegateForTests::IsNested() const { |
return EnsureMessageLoop()->IsNested(); |
} |
+base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() { |
+ return time_source_->NowTicks(); |
+} |
+ |
+void LazySchedulerMessageLoopDelegateForTests::OnNoMoreWork() {} |
+ |
} // namespace scheduler |