Index: base/task_scheduler/task_traits.h |
diff --git a/base/task_scheduler/task_traits.h b/base/task_scheduler/task_traits.h |
index fbd63c5f05b9eec1f026bfa6a12e3a1717a185b7..523fd137b66557e7146f1774b661b8b8e3cf6d5e 100644 |
--- a/base/task_scheduler/task_traits.h |
+++ b/base/task_scheduler/task_traits.h |
@@ -126,8 +126,14 @@ enum class ExecutionMode { |
SINGLE_THREADED, |
}; |
-// Pretty Printer for Google Test. |
-void BASE_EXPORT PrintTo(const TaskPriority& task_priority, std::ostream* os); |
+// Stream operators so TaskPriority and TaskShutdownBehavior can be used in |
+// DCHECK statements. |
+BASE_EXPORT std::ostream& operator<<(std::ostream& os, |
+ const TaskPriority& shutdown_behavior); |
+ |
+BASE_EXPORT std::ostream& operator<<( |
+ std::ostream& os, |
+ const TaskShutdownBehavior& shutdown_behavior); |
} // namespace base |