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

Unified Diff: base/task_scheduler/priority_queue_unittest.cc

Issue 2859053006: Use constexpr TaskTraits constructor in base (part 2). (Closed)
Patch Set: self-review 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/post_task.h ('k') | base/task_scheduler/scheduler_single_thread_task_runner_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/priority_queue_unittest.cc
diff --git a/base/task_scheduler/priority_queue_unittest.cc b/base/task_scheduler/priority_queue_unittest.cc
index afaeafb644ed6bee80db97768c0d918cccb3cc5a..43db550595064779ee3f0bfb66c8d670daf50cba 100644
--- a/base/task_scheduler/priority_queue_unittest.cc
+++ b/base/task_scheduler/priority_queue_unittest.cc
@@ -60,27 +60,27 @@ class ThreadBeginningTransaction : public SimpleThread {
TEST(TaskSchedulerPriorityQueueTest, PushPopPeek) {
// Create test sequences.
scoped_refptr<Sequence> sequence_a(new Sequence);
- sequence_a->PushTask(MakeUnique<Task>(
- FROM_HERE, Bind(&DoNothing),
- TaskTraits().WithPriority(TaskPriority::USER_VISIBLE), TimeDelta()));
+ sequence_a->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing),
+ TaskTraits(TaskPriority::USER_VISIBLE),
+ TimeDelta()));
SequenceSortKey sort_key_a = sequence_a->GetSortKey();
scoped_refptr<Sequence> sequence_b(new Sequence);
- sequence_b->PushTask(MakeUnique<Task>(
- FROM_HERE, Bind(&DoNothing),
- TaskTraits().WithPriority(TaskPriority::USER_BLOCKING), TimeDelta()));
+ sequence_b->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing),
+ TaskTraits(TaskPriority::USER_BLOCKING),
+ TimeDelta()));
SequenceSortKey sort_key_b = sequence_b->GetSortKey();
scoped_refptr<Sequence> sequence_c(new Sequence);
- sequence_c->PushTask(MakeUnique<Task>(
- FROM_HERE, Bind(&DoNothing),
- TaskTraits().WithPriority(TaskPriority::USER_BLOCKING), TimeDelta()));
+ sequence_c->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing),
+ TaskTraits(TaskPriority::USER_BLOCKING),
+ TimeDelta()));
SequenceSortKey sort_key_c = sequence_c->GetSortKey();
scoped_refptr<Sequence> sequence_d(new Sequence);
- sequence_d->PushTask(MakeUnique<Task>(
- FROM_HERE, Bind(&DoNothing),
- TaskTraits().WithPriority(TaskPriority::BACKGROUND), TimeDelta()));
+ sequence_d->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing),
+ TaskTraits(TaskPriority::BACKGROUND),
+ TimeDelta()));
SequenceSortKey sort_key_d = sequence_d->GetSortKey();
// Create a PriorityQueue and a Transaction.
« no previous file with comments | « base/task_scheduler/post_task.h ('k') | base/task_scheduler/scheduler_single_thread_task_runner_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698