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

Unified Diff: base/task_scheduler/scheduler_thread_pool_impl_unittest.cc

Issue 1951453002: Name TaskScheduler's worker threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b7_fdoray_fixtracing
Patch Set: explicit cast to int 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/task_scheduler/scheduler_thread_pool_impl.cc ('k') | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/scheduler_thread_pool_impl_unittest.cc
diff --git a/base/task_scheduler/scheduler_thread_pool_impl_unittest.cc b/base/task_scheduler/scheduler_thread_pool_impl_unittest.cc
index 8ab4e176bc3e94367d585004772afc70e74618c7..8af2c52ffeaffb4cf69ad8ac0d791d517f824bc5 100644
--- a/base/task_scheduler/scheduler_thread_pool_impl_unittest.cc
+++ b/base/task_scheduler/scheduler_thread_pool_impl_unittest.cc
@@ -63,7 +63,8 @@ class TaskSchedulerThreadPoolImplTest
void SetUp() override {
thread_pool_ = SchedulerThreadPoolImpl::Create(
- ThreadPriority::NORMAL, kNumThreadsInThreadPool, IORestriction::ALLOWED,
+ "TestThreadPoolWithFileIO", ThreadPriority::NORMAL,
+ kNumThreadsInThreadPool, IORestriction::ALLOWED,
Bind(&TaskSchedulerThreadPoolImplTest::ReEnqueueSequenceCallback,
Unretained(this)),
&task_tracker_, &delayed_task_manager_);
@@ -359,7 +360,7 @@ TEST_P(TaskSchedulerThreadPoolImplIORestrictionTest, IORestriction) {
DelayedTaskManager delayed_task_manager(Bind(&DoNothing));
auto thread_pool = SchedulerThreadPoolImpl::Create(
- ThreadPriority::NORMAL, 1U, GetParam(),
+ "TestThreadPoolWithParam", ThreadPriority::NORMAL, 1U, GetParam(),
Bind(&NotReachedReEnqueueSequenceCallback), &task_tracker,
&delayed_task_manager);
ASSERT_TRUE(thread_pool);
« no previous file with comments | « base/task_scheduler/scheduler_thread_pool_impl.cc ('k') | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698