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 "platform/scheduler/child/scheduler_helper.h" | 5 #include "platform/scheduler/child/scheduler_helper.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "base/test/simple_test_tick_clock.h" | 12 #include "base/test/simple_test_tick_clock.h" |
12 #include "cc/test/ordered_simple_task_runner.h" | 13 #include "cc/test/ordered_simple_task_runner.h" |
13 #include "platform/scheduler/base/lazy_now.h" | 14 #include "platform/scheduler/base/lazy_now.h" |
14 #include "platform/scheduler/base/task_queue.h" | 15 #include "platform/scheduler/base/task_queue.h" |
15 #include "platform/scheduler/base/test_time_source.h" | 16 #include "platform/scheduler/base/test_time_source.h" |
16 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h" | 17 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 | 20 |
20 using testing::_; | 21 using testing::_; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 voter->SetQueueEnabled(false); | 225 voter->SetQueueEnabled(false); |
225 | 226 |
226 EXPECT_CALL(observer, OnTriedToExecuteBlockedTask(_, _)).Times(1); | 227 EXPECT_CALL(observer, OnTriedToExecuteBlockedTask(_, _)).Times(1); |
227 RunUntilIdle(); | 228 RunUntilIdle(); |
228 | 229 |
229 scheduler_helper_->SetObserver(nullptr); | 230 scheduler_helper_->SetObserver(nullptr); |
230 } | 231 } |
231 | 232 |
232 } // namespace scheduler | 233 } // namespace scheduler |
233 } // namespace blink | 234 } // namespace blink |
OLD | NEW |