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/base/task_queue_selector.h" | 5 #include "components/scheduler/base/task_queue_selector.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "base/pending_task.h" | 12 #include "base/pending_task.h" |
10 #include "components/scheduler/base/task_queue_impl.h" | 13 #include "components/scheduler/base/task_queue_impl.h" |
11 #include "components/scheduler/base/virtual_time_domain.h" | 14 #include "components/scheduler/base/virtual_time_domain.h" |
12 #include "components/scheduler/base/work_queue.h" | 15 #include "components/scheduler/base/work_queue.h" |
13 #include "components/scheduler/base/work_queue_sets.h" | 16 #include "components/scheduler/base/work_queue_sets.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
16 | 19 |
17 using testing::_; | 20 using testing::_; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 EXPECT_EQ(chose_delayed_over_immediate, | 375 EXPECT_EQ(chose_delayed_over_immediate, |
373 GetParam().expected_did_starve_immediate_queue); | 376 GetParam().expected_did_starve_immediate_queue); |
374 } | 377 } |
375 | 378 |
376 INSTANTIATE_TEST_CASE_P(ChooseOldestWithPriorityTest, | 379 INSTANTIATE_TEST_CASE_P(ChooseOldestWithPriorityTest, |
377 ChooseOldestWithPriorityTest, | 380 ChooseOldestWithPriorityTest, |
378 testing::ValuesIn(kChooseOldestWithPriorityTestCases)); | 381 testing::ValuesIn(kChooseOldestWithPriorityTestCases)); |
379 | 382 |
380 } // namespace internal | 383 } // namespace internal |
381 } // namespace scheduler | 384 } // namespace scheduler |
OLD | NEW |