Index: base/task_scheduler/test_utils.h |
diff --git a/base/task_scheduler/test_utils.h b/base/task_scheduler/test_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f2fe33b83c303039b2698081890d7c4140ddba23 |
--- /dev/null |
+++ b/base/task_scheduler/test_utils.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef BASE_TASK_SCHEDULER_TEST_UTILS_H_ |
+#define BASE_TASK_SCHEDULER_TEST_UTILS_H_ |
+ |
+namespace base { |
+namespace internal { |
+namespace test { |
+ |
+// Type of TaskRunner to which a task was posted. |
gab
2016/10/31 19:10:11
Change for something like:
// An enumeration of p
fdoray
2016/10/31 19:44:52
Done.
|
+enum class ExecutionMode { |
+ // Task posted to a TaskRunner. |
+ PARALLEL, |
+ |
+ // Task posted to a SequencedTaskRunner. |
+ SEQUENCED, |
+ |
+ // Task posted to a SingleThreadTaskRunner. |
+ SINGLE_THREADED |
+}; |
+ |
+} // namespace test |
+} // namespace internal |
+} // namespace base |
+ |
+#endif // BASE_TASK_SCHEDULER_TEST_UTILS_H_ |