| 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT
E_FOR_TEST_H_ |
| 6 #define CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT
E_FOR_TEST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/test/simple_test_tick_clock.h" | 11 #include "base/test/simple_test_tick_clock.h" |
| 12 #include "components/scheduler/child/scheduler_tqm_delegate.h" | 12 #include "platform/scheduler/child/scheduler_tqm_delegate.h" |
| 13 | 13 |
| 14 namespace blink { |
| 14 namespace scheduler { | 15 namespace scheduler { |
| 15 | 16 |
| 16 class TaskQueueManagerDelegateForTest; | 17 class TaskQueueManagerDelegateForTest; |
| 17 | 18 |
| 18 class SchedulerTqmDelegateForTest : public SchedulerTqmDelegate { | 19 class SchedulerTqmDelegateForTest : public SchedulerTqmDelegate { |
| 19 public: | 20 public: |
| 20 static scoped_refptr<SchedulerTqmDelegateForTest> Create( | 21 static scoped_refptr<SchedulerTqmDelegateForTest> Create( |
| 21 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 22 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 22 std::unique_ptr<base::TickClock> time_source); | 23 std::unique_ptr<base::TickClock> time_source); |
| 23 | 24 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 48 std::unique_ptr<base::TickClock> time_source); | 49 std::unique_ptr<base::TickClock> time_source); |
| 49 | 50 |
| 50 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; | 51 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; |
| 51 | 52 |
| 52 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_; | 53 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest); | 55 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace scheduler | 58 } // namespace scheduler |
| 59 } // namespace blink |
| 58 | 60 |
| 59 #endif // CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ | 61 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELE
GATE_FOR_TEST_H_ |
| OLD | NEW |