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/base/task_queue_manager_delegate_for_test.h" | 5 #include "components/scheduler/base/task_queue_manager_delegate_for_test.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 | 9 |
10 namespace scheduler { | 10 namespace scheduler { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 bool TaskQueueManagerDelegateForTest::IsNested() const { | 46 bool TaskQueueManagerDelegateForTest::IsNested() const { |
47 return false; | 47 return false; |
48 } | 48 } |
49 | 49 |
50 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() { | 50 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() { |
51 return time_source_->NowTicks(); | 51 return time_source_->NowTicks(); |
52 } | 52 } |
53 | 53 |
| 54 double TaskQueueManagerDelegateForTest::CurrentTimeSeconds() const { |
| 55 return (time_source_->NowTicks() - base::TimeTicks::UnixEpoch()).InSecondsF(); |
| 56 } |
| 57 |
54 void TaskQueueManagerDelegateForTest::OnNoMoreImmediateWork() {} | 58 void TaskQueueManagerDelegateForTest::OnNoMoreImmediateWork() {} |
55 | 59 |
56 } // namespace scheduler | 60 } // namespace scheduler |
OLD | NEW |