OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_helper.h" | 5 #include "components/scheduler/child/scheduler_helper.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/test/simple_test_tick_clock.h" | 8 #include "base/test/simple_test_tick_clock.h" |
9 #include "cc/test/ordered_simple_task_runner.h" | 9 #include "cc/test/ordered_simple_task_runner.h" |
| 10 #include "components/scheduler/base/task_queue.h" |
| 11 #include "components/scheduler/base/test_time_source.h" |
10 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h" | 12 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h" |
11 #include "components/scheduler/child/task_queue.h" | |
12 #include "components/scheduler/child/test_time_source.h" | |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 using testing::_; | 16 using testing::_; |
17 using testing::AnyNumber; | 17 using testing::AnyNumber; |
18 using testing::Invoke; | 18 using testing::Invoke; |
19 using testing::Return; | 19 using testing::Return; |
20 | 20 |
21 namespace scheduler { | 21 namespace scheduler { |
22 | 22 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 scoped_refptr<TaskQueue> task_queue = | 200 scoped_refptr<TaskQueue> task_queue = |
201 scheduler_helper_->NewTaskQueue(TaskQueue::Spec("test_queue")); | 201 scheduler_helper_->NewTaskQueue(TaskQueue::Spec("test_queue")); |
202 | 202 |
203 EXPECT_CALL(observer, OnUnregisterTaskQueue(_)).Times(1); | 203 EXPECT_CALL(observer, OnUnregisterTaskQueue(_)).Times(1); |
204 task_queue->UnregisterTaskQueue(); | 204 task_queue->UnregisterTaskQueue(); |
205 | 205 |
206 scheduler_helper_->SetObserver(nullptr); | 206 scheduler_helper_->SetObserver(nullptr); |
207 } | 207 } |
208 | 208 |
209 } // namespace scheduler | 209 } // namespace scheduler |
OLD | NEW |