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

Unified Diff: base/task_scheduler/test_task_factory.h

Issue 1911023002: TaskScheduler: Add TaskRunnerHandle support to TaskScheduler tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@c1_1876363004_STTR
Patch Set: review:danakj#28 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_tracker_unittest.cc ('k') | base/task_scheduler/test_task_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/test_task_factory.h
diff --git a/base/task_scheduler/test_task_factory.h b/base/task_scheduler/test_task_factory.h
index 9102c7c59b9ef6116b588bee792693ede59a41e0..9ed15a1bac20ab683cb3488bffc1c80bf94ef697 100644
--- a/base/task_scheduler/test_task_factory.h
+++ b/base/task_scheduler/test_task_factory.h
@@ -29,10 +29,12 @@ namespace test {
// expected. Generates a test failure when:
// - The RunsTasksOnCurrentThread() method of the TaskRunner returns false on a
// thread on which a Task is run.
+// - The TaskRunnerHandles set in the context of the task don't match what's
+// expected for the tested ExecutionMode.
// - The ExecutionMode of the TaskRunner is SEQUENCED or SINGLE_THREADED and
// Tasks don't run in posting order.
-// - The ExecutionMode of the TaskRunner is SINGLE_THREADED and Tasks don't
-// run on the same thread.
+// - The ExecutionMode of the TaskRunner is SINGLE_THREADED and Tasks don't run
+// on the same thread.
// - A Task runs more than once.
class TestTaskFactory {
public:
« no previous file with comments | « base/task_scheduler/task_tracker_unittest.cc ('k') | base/task_scheduler/test_task_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698