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

Unified Diff: base/task_scheduler/task_scheduler_impl_unittest.cc

Issue 2885513002: Expose SingleThreadTaskRunnerThreadMode in post_task.h (Closed)
Patch Set: Move Default Argument to post_task.h 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.h ('k') | no next file » | 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 3098bf3a9044d3d5b874e0eac4187ae6f95d5364..69bd9f977d9944252d47bd27977113d93695c452 100644
--- a/base/task_scheduler/task_scheduler_impl_unittest.cc
+++ b/base/task_scheduler/task_scheduler_impl_unittest.cc
@@ -121,8 +121,10 @@ scoped_refptr<TaskRunner> CreateTaskRunnerWithTraitsAndExecutionMode(
return scheduler->CreateTaskRunnerWithTraits(traits);
case test::ExecutionMode::SEQUENCED:
return scheduler->CreateSequencedTaskRunnerWithTraits(traits);
- case test::ExecutionMode::SINGLE_THREADED:
- return scheduler->CreateSingleThreadTaskRunnerWithTraits(traits);
+ case test::ExecutionMode::SINGLE_THREADED: {
gab 2017/05/15 21:02:26 In CL which will introduce real sharding we should
robliao 2017/05/15 21:19:10 Agreed.
+ return scheduler->CreateSingleThreadTaskRunnerWithTraits(
+ traits, SingleThreadTaskRunnerThreadMode::SHARED);
+ }
}
ADD_FAILURE() << "Unknown ExecutionMode";
return nullptr;
« no previous file with comments | « base/task_scheduler/task_scheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698