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

Unified Diff: base/task_scheduler/task_traits.h

Issue 1705943002: TaskScheduler [5/9] Task Tracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_3_pq
Patch Set: fix PostTask comment Created 4 years, 10 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
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_

Powered by Google App Engine
This is Rietveld 408576698