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

Unified Diff: Source/core/html/track/vtt/BufferedLineReaderTest.cpp

Issue 811863003: replace COMPILE_ASSERT with static_assert in core/html/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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 | « Source/core/html/parser/CompactHTMLToken.cpp ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/vtt/BufferedLineReaderTest.cpp
diff --git a/Source/core/html/track/vtt/BufferedLineReaderTest.cpp b/Source/core/html/track/vtt/BufferedLineReaderTest.cpp
index b265df9451ca1fb878f7189d9fdac0f773e1bc9c..d6b2b9c09238bed066bfb2b4ff746686247ce2f8 100644
--- a/Source/core/html/track/vtt/BufferedLineReaderTest.cpp
+++ b/Source/core/html/track/vtt/BufferedLineReaderTest.cpp
@@ -201,7 +201,7 @@ TEST(BufferedLineReader, BufferSizes)
};
const LineBreakType breaks[] = { Lf, Lf, Lf, Lf, Lf, Lf, Lf };
const size_t numTestLines = WTF_ARRAY_LENGTH(lines);
- COMPILE_ASSERT(numTestLines == WTF_ARRAY_LENGTH(breaks), DifferentLengths_lines_and_breaks);
+ static_assert(numTestLines == WTF_ARRAY_LENGTH(breaks), "number of test lines and breaks should be the same");
String data = MakeTestData(lines, breaks, numTestLines);
for (size_t k = 0; k < WTF_ARRAY_LENGTH(blockSizes); ++k) {
@@ -234,7 +234,7 @@ TEST(BufferedLineReader, BufferSizesMixedEndings)
};
const LineBreakType breaks[] = { Cr, Lf, CrLf, Cr, Lf, CrLf, Lf };
const size_t numTestLines = WTF_ARRAY_LENGTH(lines);
- COMPILE_ASSERT(numTestLines == WTF_ARRAY_LENGTH(breaks), DifferentLengths_lines_and_breaks);
+ static_assert(numTestLines == WTF_ARRAY_LENGTH(breaks), "number of test lines and breaks should be the same");
String data = MakeTestData(lines, breaks, numTestLines);
for (size_t k = 0; k < WTF_ARRAY_LENGTH(blockSizes); ++k) {
« no previous file with comments | « Source/core/html/parser/CompactHTMLToken.cpp ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698