OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/task_scheduler/scheduler_thread_pool_impl.h" | 5 #include "base/task_scheduler/scheduler_thread_pool_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <unordered_set> | 10 #include <unordered_set> |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 // The task should run. | 307 // The task should run. |
308 task_ran.Wait(); | 308 task_ran.Wait(); |
309 } | 309 } |
310 | 310 |
311 INSTANTIATE_TEST_CASE_P(Parallel, | 311 INSTANTIATE_TEST_CASE_P(Parallel, |
312 TaskSchedulerThreadPoolImplTest, | 312 TaskSchedulerThreadPoolImplTest, |
313 ::testing::Values(ExecutionMode::PARALLEL)); | 313 ::testing::Values(ExecutionMode::PARALLEL)); |
314 INSTANTIATE_TEST_CASE_P(Sequenced, | 314 INSTANTIATE_TEST_CASE_P(Sequenced, |
315 TaskSchedulerThreadPoolImplTest, | 315 TaskSchedulerThreadPoolImplTest, |
316 ::testing::Values(ExecutionMode::SEQUENCED)); | 316 ::testing::Values(ExecutionMode::SEQUENCED)); |
| 317 INSTANTIATE_TEST_CASE_P(SingleThreaded, |
| 318 TaskSchedulerThreadPoolImplTest, |
| 319 ::testing::Values(ExecutionMode::SINGLE_THREADED)); |
317 | 320 |
318 } // namespace internal | 321 } // namespace internal |
319 } // namespace base | 322 } // namespace base |
OLD | NEW |