| 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 #ifndef COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_MANAGER_DELEGATE_FOR_TEST_H_ | 5 #ifndef COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_MANAGER_DELEGATE_FOR_TEST_H_ |
| 6 #define COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_MANAGER_DELEGATE_FOR_TEST_H_ | 6 #define COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_MANAGER_DELEGATE_FOR_TEST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/time/tick_clock.h" | 10 #include "base/time/tick_clock.h" |
| 10 #include "components/scheduler/base/task_queue_manager_delegate.h" | 11 #include "components/scheduler/base/task_queue_manager_delegate.h" |
| 11 | 12 |
| 12 namespace scheduler { | 13 namespace scheduler { |
| 13 | 14 |
| 14 class TaskQueueManagerDelegateForTest : public TaskQueueManagerDelegate { | 15 class TaskQueueManagerDelegateForTest : public TaskQueueManagerDelegate { |
| 15 public: | 16 public: |
| 16 static scoped_refptr<TaskQueueManagerDelegateForTest> Create( | 17 static scoped_refptr<TaskQueueManagerDelegateForTest> Create( |
| 17 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 18 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 18 scoped_ptr<base::TickClock> time_source); | 19 scoped_ptr<base::TickClock> time_source); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 private: | 38 private: |
| 38 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 39 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 39 scoped_ptr<base::TickClock> time_source_; | 40 scoped_ptr<base::TickClock> time_source_; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(TaskQueueManagerDelegateForTest); | 42 DISALLOW_COPY_AND_ASSIGN(TaskQueueManagerDelegateForTest); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace scheduler | 45 } // namespace scheduler |
| 45 | 46 |
| 46 #endif // COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_MANAGER_DELEGATE_FOR_TEST_H_ | 47 #endif // COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_MANAGER_DELEGATE_FOR_TEST_H_ |
| OLD | NEW |