summaryrefslogtreecommitdiff
path: root/chromium/base/tuple_unittest.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-07-12 14:07:37 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-07-17 10:29:26 +0000
commitec02ee4181c49b61fce1c8fb99292dbb8139cc90 (patch)
tree25cde714b2b71eb639d1cd53f5a22e9ba76e14ef /chromium/base/tuple_unittest.cc
parentbb09965444b5bb20b096a291445170876225268d (diff)
downloadqtwebengine-chromium-ec02ee4181c49b61fce1c8fb99292dbb8139cc90.tar.gz
BASELINE: Update Chromium to 59.0.3071.134
Change-Id: Id02ef6fb2204c5fd21668a1c3e6911c83b17585a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/base/tuple_unittest.cc')
-rw-r--r--chromium/base/tuple_unittest.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/chromium/base/tuple_unittest.cc b/chromium/base/tuple_unittest.cc
index 6f90c292206..815b43bb1b3 100644
--- a/chromium/base/tuple_unittest.cc
+++ b/chromium/base/tuple_unittest.cc
@@ -114,30 +114,4 @@ TEST(TupleTest, Copying) {
EXPECT_EQ(2, CopyLogger::TimesCopied);
}
-TEST(TupleTest, Get) {
- int i = 1;
- int j = 2;
- std::tuple<int, int&, int&&> t(3, i, std::move(j));
- EXPECT_TRUE((std::is_same<int&, decltype(base::get<0>(t))>::value));
- EXPECT_EQ(3, base::get<0>(t));
-
- EXPECT_TRUE((std::is_same<int&, decltype(base::get<1>(t))>::value));
- EXPECT_EQ(1, base::get<1>(t));
-
- EXPECT_TRUE((std::is_same<int&, decltype(base::get<2>(t))>::value));
- EXPECT_EQ(2, base::get<2>(t));
-
- EXPECT_TRUE((std::is_same<int&&,
- decltype(base::get<0>(std::move(t)))>::value));
- EXPECT_EQ(3, base::get<0>(std::move(t)));
-
- EXPECT_TRUE((std::is_same<int&,
- decltype(base::get<1>(std::move(t)))>::value));
- EXPECT_EQ(1, base::get<1>(std::move(t)));
-
- EXPECT_TRUE((std::is_same<int&&,
- decltype(base::get<2>(std::move(t)))>::value));
- EXPECT_EQ(2, base::get<2>(std::move(t)));
-}
-
} // namespace base