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

Unified Diff: base/task_scheduler/task_tracker_unittest.cc

Issue 1890163003: TaskScheduler: Add delayed run time to the constructor of Task. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@7_sequenced
Patch Set: self review Created 4 years, 8 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.cc ('k') | base/task_scheduler/utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_tracker_unittest.cc
diff --git a/base/task_scheduler/task_tracker_unittest.cc b/base/task_scheduler/task_tracker_unittest.cc
index a490fce2b5f6e58a6001ab205af540e954726c32..3403caa7848c1f4acd1a1223aa3ed847df20fcfd 100644
--- a/base/task_scheduler/task_tracker_unittest.cc
+++ b/base/task_scheduler/task_tracker_unittest.cc
@@ -71,7 +71,7 @@ class TaskSchedulerTaskTrackerTest
return WrapUnique(new Task(
FROM_HERE,
Bind(&TaskSchedulerTaskTrackerTest::RunTaskCallback, Unretained(this)),
- TaskTraits().WithShutdownBehavior(shutdown_behavior)));
+ TaskTraits().WithShutdownBehavior(shutdown_behavior), TimeTicks()));
}
// Calls tracker_->Shutdown() on a new thread. When this returns, Shutdown()
@@ -146,7 +146,7 @@ TEST_P(TaskSchedulerTaskTrackerTest, WillPostAndRunLongTaskBeforeShutdown) {
WaitableEvent event(false, false);
std::unique_ptr<Task> blocked_task(
new Task(FROM_HERE, Bind(&WaitableEvent::Wait, Unretained(&event)),
- TaskTraits().WithShutdownBehavior(GetParam())));
+ TaskTraits().WithShutdownBehavior(GetParam()), TimeTicks()));
// Inform |task_tracker_| that |blocked_task| will be posted.
EXPECT_TRUE(tracker_.WillPostTask(blocked_task.get()));
« no previous file with comments | « base/task_scheduler/task.cc ('k') | base/task_scheduler/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698