| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const { | 86 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const { |
| 87 return EnsureMessageLoop()->IsNested(); | 87 return EnsureMessageLoop()->IsNested(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() { | 90 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() { |
| 91 return time_source_->NowTicks(); | 91 return time_source_->NowTicks(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 double LazySchedulerMessageLoopDelegateForTests::CurrentTimeSeconds() const { | |
| 95 return base::Time::Now().ToDoubleT(); | |
| 96 } | |
| 97 | |
| 98 void LazySchedulerMessageLoopDelegateForTests::OnNoMoreImmediateWork() {} | |
| 99 | |
| 100 } // namespace scheduler | 94 } // namespace scheduler |
| OLD | NEW |