| 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/base/nestable_task_runner_for_test.h" |
| 10 | 10 |
| 11 namespace scheduler { | 11 namespace scheduler { |
| 12 | 12 |
| 13 // static | 13 // static |
| 14 scoped_refptr<SchedulerTaskRunnerDelegateForTest> | 14 scoped_refptr<SchedulerTaskRunnerDelegateForTest> |
| 15 SchedulerTaskRunnerDelegateForTest::Create( | 15 SchedulerTaskRunnerDelegateForTest::Create( |
| 16 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { | 16 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { |
| 17 return make_scoped_refptr( | 17 return make_scoped_refptr( |
| 18 new SchedulerTaskRunnerDelegateForTest(task_runner)); | 18 new SchedulerTaskRunnerDelegateForTest(task_runner)); |
| 19 } | 19 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 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 } // namespace scheduler | 58 } // namespace scheduler |
| OLD | NEW |