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 #include "components/scheduler/child/worker_scheduler_impl.h" | 5 #include "components/scheduler/child/worker_scheduler_impl.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/test/simple_test_tick_clock.h" | 9 #include "base/test/simple_test_tick_clock.h" |
10 #include "cc/test/ordered_simple_task_runner.h" | 10 #include "cc/test/ordered_simple_task_runner.h" |
| 11 #include "components/scheduler/base/test_time_source.h" |
11 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h" | 12 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.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::ElementsAreArray; | 16 using testing::ElementsAreArray; |
17 | 17 |
18 namespace scheduler { | 18 namespace scheduler { |
19 | 19 |
20 namespace { | 20 namespace { |
21 void NopTask() { | 21 void NopTask() { |
22 } | 22 } |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 "run RecordTimelineTask @ 55", | 379 "run RecordTimelineTask @ 55", |
380 "IsNotQuiescent @ 55", // NOTE we have to wait for quiescence. | 380 "IsNotQuiescent @ 55", // NOTE we have to wait for quiescence. |
381 "CanEnterLongIdlePeriod @ 355", | 381 "CanEnterLongIdlePeriod @ 355", |
382 "run TimelineIdleTestTask deadline 405", | 382 "run TimelineIdleTestTask deadline 405", |
383 "RunUntilIdle end @ 355"}; | 383 "RunUntilIdle end @ 355"}; |
384 | 384 |
385 EXPECT_THAT(timeline, ElementsAreArray(expected_timeline)); | 385 EXPECT_THAT(timeline, ElementsAreArray(expected_timeline)); |
386 } | 386 } |
387 | 387 |
388 } // namespace scheduler | 388 } // namespace scheduler |
OLD | NEW |