| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tes
ts.h" | 5 #include "components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tes
ts.h" |
| 6 | 6 |
| 7 #include "base/time/default_tick_clock.h" | 7 #include "base/time/default_tick_clock.h" |
| 8 | 8 |
| 9 namespace scheduler { | 9 namespace scheduler { |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 82 } |
| 83 | 83 |
| 84 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const { | 84 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const { |
| 85 return EnsureMessageLoop()->IsNested(); | 85 return EnsureMessageLoop()->IsNested(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() { | 88 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() { |
| 89 return time_source_->NowTicks(); | 89 return time_source_->NowTicks(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 double LazySchedulerMessageLoopDelegateForTests::CurrentTimeSeconds() const { |
| 93 return base::Time::Now().ToDoubleT(); |
| 94 } |
| 95 |
| 92 void LazySchedulerMessageLoopDelegateForTests::OnNoMoreImmediateWork() {} | 96 void LazySchedulerMessageLoopDelegateForTests::OnNoMoreImmediateWork() {} |
| 93 | 97 |
| 94 } // namespace scheduler | 98 } // namespace scheduler |
| OLD | NEW |