| 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 CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ | 5 #ifndef CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ |
| 6 #define CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ | 6 #define CONTENT_RENDERER_SCHEDULER_TQM_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/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
| 10 #include "components/scheduler/child/scheduler_tqm_delegate.h" | 11 #include "components/scheduler/child/scheduler_tqm_delegate.h" |
| 11 | 12 |
| 12 namespace scheduler { | 13 namespace scheduler { |
| 13 | 14 |
| 14 class TaskQueueManagerDelegateForTest; | 15 class TaskQueueManagerDelegateForTest; |
| 15 | 16 |
| 16 class SchedulerTqmDelegateForTest : public SchedulerTqmDelegate { | 17 class SchedulerTqmDelegateForTest : public SchedulerTqmDelegate { |
| 17 public: | 18 public: |
| 18 static scoped_refptr<SchedulerTqmDelegateForTest> Create( | 19 static scoped_refptr<SchedulerTqmDelegateForTest> Create( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; | 49 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; |
| 49 | 50 |
| 50 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_; | 51 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest); | 53 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace scheduler | 56 } // namespace scheduler |
| 56 | 57 |
| 57 #endif // CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ | 58 #endif // CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ |
| OLD | NEW |