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

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: CR gab #19 Created 4 years, 9 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 5bdfd2c4501ae6a0a8eddf1c74fb042157b491d9..98a6a4c8365c71cb1c8751a217e6d53c92c1c735 100644
--- a/base/task_scheduler/task_traits.h
+++ b/base/task_scheduler/task_traits.h
@@ -136,6 +136,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.
gab 2016/03/17 01:42:13 s/TaskPriority/TaskShutdownBehavior/ (I still don
fdoray 2016/03/17 20:12:16 TaskPriority is used in Google Test (EXPECT_EQ) wh
gab 2016/03/18 18:48:17 Got it thanks, the now more consistent approach is
+BASE_EXPORT std::ostream& operator<<(
+ 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