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

Unified Diff: base/task_scheduler/task_scheduler_impl_unittest.cc

Issue 2873733003: Introduce SingleThreadTaskRunnerThreadMode (Closed)
Patch Set: Add missing "base" Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/task_scheduler/task_scheduler_impl.cc ('k') | base/test/scoped_task_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler_impl_unittest.cc
diff --git a/base/task_scheduler/task_scheduler_impl_unittest.cc b/base/task_scheduler/task_scheduler_impl_unittest.cc
index baa3baf5013efeac9741f57652fed250aa8a011c..3098bf3a9044d3d5b874e0eac4187ae6f95d5364 100644
--- a/base/task_scheduler/task_scheduler_impl_unittest.cc
+++ b/base/task_scheduler/task_scheduler_impl_unittest.cc
@@ -384,7 +384,8 @@ TEST_F(TaskSchedulerImplTest, GetMaxConcurrentTasksWithTraitsDeprecated) {
TEST_F(TaskSchedulerImplTest, SequencedRunsTasksOnCurrentThread) {
StartTaskScheduler();
auto single_thread_task_runner =
- scheduler_.CreateSingleThreadTaskRunnerWithTraits(TaskTraits());
+ scheduler_.CreateSingleThreadTaskRunnerWithTraits(
+ TaskTraits(), SingleThreadTaskRunnerThreadMode::SHARED);
auto sequenced_task_runner =
scheduler_.CreateSequencedTaskRunnerWithTraits(TaskTraits());
@@ -409,7 +410,8 @@ TEST_F(TaskSchedulerImplTest, SingleThreadRunsTasksOnCurrentThread) {
auto sequenced_task_runner =
scheduler_.CreateSequencedTaskRunnerWithTraits(TaskTraits());
auto single_thread_task_runner =
- scheduler_.CreateSingleThreadTaskRunnerWithTraits(TaskTraits());
+ scheduler_.CreateSingleThreadTaskRunnerWithTraits(
+ TaskTraits(), SingleThreadTaskRunnerThreadMode::SHARED);
WaitableEvent task_ran(WaitableEvent::ResetPolicy::MANUAL,
WaitableEvent::InitialState::NOT_SIGNALED);
@@ -428,8 +430,8 @@ TEST_F(TaskSchedulerImplTest, SingleThreadRunsTasksOnCurrentThread) {
#if defined(OS_WIN)
TEST_F(TaskSchedulerImplTest, COMSTATaskRunnersRunWithCOMSTA) {
StartTaskScheduler();
- auto com_sta_task_runner =
- scheduler_.CreateCOMSTATaskRunnerWithTraits(TaskTraits());
+ auto com_sta_task_runner = scheduler_.CreateCOMSTATaskRunnerWithTraits(
+ TaskTraits(), SingleThreadTaskRunnerThreadMode::SHARED);
WaitableEvent task_ran(WaitableEvent::ResetPolicy::MANUAL,
WaitableEvent::InitialState::NOT_SIGNALED);
« no previous file with comments | « base/task_scheduler/task_scheduler_impl.cc ('k') | base/test/scoped_task_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698