Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: base/task_scheduler/scheduler_thread_pool_impl_unittest.cc

Issue 1876363004: TaskScheduler [11] Support ExecutionMode::SINGLE_THREADED. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@8_delayed
Patch Set: add #include <algorithm> Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/task_scheduler/scheduler_thread_pool_impl.cc ('k') | base/task_scheduler/scheduler_worker_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698