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/child/scheduler_task_runner_delegate_for_test.h" | 5 #include "components/scheduler/child/scheduler_task_runner_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 #include "components/scheduler/child/nestable_task_runner_for_test.h" | 9 #include "components/scheduler/child/nestable_task_runner_for_test.h" |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 | 49 |
50 bool SchedulerTaskRunnerDelegateForTest::RunsTasksOnCurrentThread() const { | 50 bool SchedulerTaskRunnerDelegateForTest::RunsTasksOnCurrentThread() const { |
51 return task_runner_->RunsTasksOnCurrentThread(); | 51 return task_runner_->RunsTasksOnCurrentThread(); |
52 } | 52 } |
53 | 53 |
54 bool SchedulerTaskRunnerDelegateForTest::IsNested() const { | 54 bool SchedulerTaskRunnerDelegateForTest::IsNested() const { |
55 return task_runner_->IsNested(); | 55 return task_runner_->IsNested(); |
56 } | 56 } |
57 | 57 |
58 void SchedulerTaskRunnerDelegateForTest::AddTaskObserver( | |
59 base::MessageLoop::TaskObserver* task_observer) { | |
60 task_runner_->AddTaskObserver(task_observer); | |
61 } | |
62 | |
63 void SchedulerTaskRunnerDelegateForTest::RemoveTaskObserver( | |
64 base::MessageLoop::TaskObserver* task_observer) { | |
65 task_runner_->RemoveTaskObserver(task_observer); | |
66 } | |
67 | |
68 } // namespace scheduler | 58 } // namespace scheduler |
OLD | NEW |