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

Unified Diff: test/cctest/test-utils.cc

Issue 2741573003: Allow C++11 in unittests. (Closed)
Patch Set: Created 3 years, 9 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 | test/unittests/unittests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-utils.cc
diff --git a/test/cctest/test-utils.cc b/test/cctest/test-utils.cc
index b38bae5ba6ee3c58e7b5500033fd1970aab8272a..a4d59cac5ef60c86552f91d2d2b3ba9f971434ca 100644
--- a/test/cctest/test-utils.cc
+++ b/test/cctest/test-utils.cc
@@ -275,16 +275,7 @@ TEST(CPlusPlus11Features) {
S s{true, {3.1415, {1, 2, 3}}};
CHECK_EQ(2, s.t.z[1]);
-// TODO(svenpanne) Remove the old-skool code when we ship the new C++ headers.
-#if 0
std::vector<int> vec{11, 22, 33, 44};
-#else
- std::vector<int> vec;
- vec.push_back(11);
- vec.push_back(22);
- vec.push_back(33);
- vec.push_back(44);
-#endif
vec.push_back(55);
vec.push_back(66);
for (auto& i : vec) {
« no previous file with comments | « no previous file | test/unittests/unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698