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

Side by Side Diff: base/task_scheduler/test_utils.h

Issue 2831883003: Do not inherit TaskPriority in TaskTraits. (Closed)
Patch Set: self-review Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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_TEST_UTILS_H_ 5 #ifndef BASE_TASK_SCHEDULER_TEST_UTILS_H_
6 #define BASE_TASK_SCHEDULER_TEST_UTILS_H_ 6 #define BASE_TASK_SCHEDULER_TEST_UTILS_H_
7 7
8 #include "base/task_scheduler/task_traits.h"
9
8 namespace base { 10 namespace base {
9 namespace internal { 11 namespace internal {
10 namespace test { 12 namespace test {
11 13
12 // An enumeration of possible task scheduler TaskRunner types. Used to 14 // An enumeration of possible task scheduler TaskRunner types. Used to
13 // parametrize relevant task_scheduler tests. 15 // parametrize relevant task_scheduler tests.
14 enum class ExecutionMode { PARALLEL, SEQUENCED, SINGLE_THREADED }; 16 enum class ExecutionMode { PARALLEL, SEQUENCED, SINGLE_THREADED };
15 17
18 // Returns TaskTraits with a non-INHERITED priority. This is useful because it
19 // is invalid to initialize a Task with TaskTraits whose priority is INHERITED.
20 TaskTraits CreateTaskTraits();
gab 2017/04/25 14:19:16 Can we instead hold a const bitfield in TaskTraits
fdoray 2017/04/25 15:21:19 Done.
21
16 } // namespace test 22 } // namespace test
17 } // namespace internal 23 } // namespace internal
18 } // namespace base 24 } // namespace base
19 25
20 #endif // BASE_TASK_SCHEDULER_TEST_UTILS_H_ 26 #endif // BASE_TASK_SCHEDULER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698