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

Unified Diff: base/task_scheduler/task_traits_unittest.cc

Issue 2847113002: TaskTraits and tuple. (Closed)
Patch Set: used 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_traits_unittest.cc
diff --git a/base/task_scheduler/task_traits_unittest.cc b/base/task_scheduler/task_traits_unittest.cc
index ed9065f7144ac0d20f6906879f991213f7d2b3be..ffd0c741eb7cd866e784031e8415f4fc99b82d95 100644
--- a/base/task_scheduler/task_traits_unittest.cc
+++ b/base/task_scheduler/task_traits_unittest.cc
@@ -4,10 +4,18 @@
#include "base/task_scheduler/task_traits.h"
+#include <tuple>
+
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
+TEST(TaskSchedulerTaskTraitsTest, Tuple) {
+ std::tuple<TaskTraits> tuple;
+ std::tuple<TaskTraits> other_tuple = tuple;
+ EXPECT_FALSE(std::get<0>(other_tuple).priority_set_explicitly());
+}
+
TEST(TaskSchedulerTaskTraitsTest, Default) {
constexpr TaskTraits traits = {};
EXPECT_FALSE(traits.priority_set_explicitly());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698