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

Unified Diff: base/task_scheduler/test_utils.cc

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 side-by-side diff with in-line comments
Download patch
« base/task_scheduler/test_utils.h ('K') | « base/task_scheduler/test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/test_utils.cc
diff --git a/base/task_scheduler/test_utils.cc b/base/task_scheduler/test_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fa1dded5dfd6c3a502ba89b1878414f1cb6185a5
--- /dev/null
+++ b/base/task_scheduler/test_utils.cc
@@ -0,0 +1,17 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/task_scheduler/test_utils.h"
+
+namespace base {
+namespace internal {
+namespace test {
+
+TaskTraits CreateTaskTraits() {
+ return TaskTraits().WithPriority(TaskPriority::USER_VISIBLE);
+}
+
+} // namespace test
+} // namespace internal
+} // namespace base
« base/task_scheduler/test_utils.h ('K') | « base/task_scheduler/test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698