Chromium Code Reviews| Index: base/task_scheduler/task_traits.h |
| diff --git a/base/task_scheduler/task_traits.h b/base/task_scheduler/task_traits.h |
| index e3558b014b0c886a1f0cb2022bb1c3a7d3f09a98..5c5d6cab7a4743f2349d262d718dc15394f8b9e9 100644 |
| --- a/base/task_scheduler/task_traits.h |
| +++ b/base/task_scheduler/task_traits.h |
| @@ -135,6 +135,11 @@ enum class ExecutionMode { |
| // Pretty Printer for Google Test. |
| void BASE_EXPORT PrintTo(const TaskPriority& task_priority, std::ostream* os); |
| +// Stream operator so TaskPriority can be used in assertion statements. |
| +BASE_EXPORT std::ostream& operator<<( |
|
gab
2016/03/01 22:18:47
Doesn't PrintTo() also work for this type as above
fdoray
2016/03/02 00:38:41
Unfortunately no: doesn't compile if I implement P
|
| + std::ostream& os, |
| + const TaskShutdownBehavior& shutdown_behavior); |
| + |
| } // namespace base |
| #endif // BASE_TASK_SCHEDULER_TASK_TRAITS_H_ |