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

Unified Diff: chrome/tools/profile_reset/jtl_parser_unittest.cc

Issue 810283003: replace COMPILE_ASSERT with static_assert in chrome/[r-z]*/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « chrome/test/logging/win/file_logger.cc ('k') | chrome/utility/media_galleries/pmp_column_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/profile_reset/jtl_parser_unittest.cc
diff --git a/chrome/tools/profile_reset/jtl_parser_unittest.cc b/chrome/tools/profile_reset/jtl_parser_unittest.cc
index fd43d8edef9f6828e45c6908629c6a9c266b3012..76f6171b7d9493574b8dc13e16e2e0030107f815 100644
--- a/chrome/tools/profile_reset/jtl_parser_unittest.cc
+++ b/chrome/tools/profile_reset/jtl_parser_unittest.cc
@@ -89,8 +89,8 @@ TEST(JtlParser, CompactingMultipleLines) {
const char kSourceCode[] = "a\nbb\n \nccc \n\n d( \n e \n )";
const char kCompactedSourceCode[] = "abbcccd(e)";
const size_t kLineNumbers[] = {0u, 1u, 1u, 3u, 3u, 3u, 5u, 5u, 6u, 7u};
- COMPILE_ASSERT(arraysize(kCompactedSourceCode) == arraysize(kLineNumbers) + 1,
- mismatched_test_data);
+ static_assert(arraysize(kCompactedSourceCode) == arraysize(kLineNumbers) + 1,
+ "mismatched test data");
scoped_ptr<JtlParser> parser(CreateParserFromVerboseText(kSourceCode));
EXPECT_EQ(kCompactedSourceCode, parser->compacted_source());
@@ -108,8 +108,8 @@ TEST(JtlParser, CompactingMultipleLinesWithComments) {
" cd //";
const char kCompactedSourceCode[] = "a//bcd";
const size_t kLineNumbers[] = {0u, 0u, 0u, 0u, 3u, 3u};
- COMPILE_ASSERT(arraysize(kCompactedSourceCode) == arraysize(kLineNumbers) + 1,
- mismatched_test_data);
+ static_assert(arraysize(kCompactedSourceCode) == arraysize(kLineNumbers) + 1,
+ "mismatched test data");
scoped_ptr<JtlParser> parser(CreateParserFromVerboseText(kSourceCode));
EXPECT_EQ(kCompactedSourceCode, parser->compacted_source());
« no previous file with comments | « chrome/test/logging/win/file_logger.cc ('k') | chrome/utility/media_galleries/pmp_column_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698