OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_TASK_SCHEDULER_TASK_TRAITS_H_ | 5 #ifndef BASE_TASK_SCHEDULER_TASK_TRAITS_H_ |
6 #define BASE_TASK_SCHEDULER_TASK_TRAITS_H_ | 6 #define BASE_TASK_SCHEDULER_TASK_TRAITS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <iosfwd> | 10 #include <iosfwd> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 // equivalent to the highest priority pending task in the sequence. | 129 // equivalent to the highest priority pending task in the sequence. |
130 SEQUENCED, | 130 SEQUENCED, |
131 | 131 |
132 // Executes one task at a time on a single thread in posting order. | 132 // Executes one task at a time on a single thread in posting order. |
133 SINGLE_THREADED, | 133 SINGLE_THREADED, |
134 }; | 134 }; |
135 | 135 |
136 // Pretty Printer for Google Test. | 136 // Pretty Printer for Google Test. |
137 void BASE_EXPORT PrintTo(const TaskPriority& task_priority, std::ostream* os); | 137 void BASE_EXPORT PrintTo(const TaskPriority& task_priority, std::ostream* os); |
138 | 138 |
139 // 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
| |
140 BASE_EXPORT std::ostream& operator<<( | |
141 std::ostream& os, | |
142 const TaskShutdownBehavior& shutdown_behavior); | |
143 | |
139 } // namespace base | 144 } // namespace base |
140 | 145 |
141 #endif // BASE_TASK_SCHEDULER_TASK_TRAITS_H_ | 146 #endif // BASE_TASK_SCHEDULER_TASK_TRAITS_H_ |
OLD | NEW |