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

Unified Diff: media/filters/chunk_demuxer_unittest.cc

Issue 826953002: replace COMPILE_ASSERT with static_assert in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 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 | « media/filters/audio_renderer_algorithm.cc ('k') | media/filters/fake_demuxer_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer_unittest.cc
diff --git a/media/filters/chunk_demuxer_unittest.cc b/media/filters/chunk_demuxer_unittest.cc
index 71e2e786bf9fd1482f744a125110b9e65b76155c..ca19076404b96a235ddc3df2998f2eed05704a74 100644
--- a/media/filters/chunk_demuxer_unittest.cc
+++ b/media/filters/chunk_demuxer_unittest.cc
@@ -3151,9 +3151,10 @@ TEST_F(ChunkDemuxerTest, WebMIsParsingMediaSegmentDetection) {
true, true, true, true, false,
};
- COMPILE_ASSERT(arraysize(kBuffer) == arraysize(kExpectedReturnValues),
- test_arrays_out_of_sync);
- COMPILE_ASSERT(arraysize(kBuffer) == sizeof(kBuffer), not_one_byte_per_index);
+ static_assert(arraysize(kBuffer) == arraysize(kExpectedReturnValues),
+ "test arrays out of sync");
+ static_assert(arraysize(kBuffer) == sizeof(kBuffer),
+ "there should be one byte per index");
ASSERT_TRUE(InitDemuxer(HAS_AUDIO | HAS_VIDEO));
« no previous file with comments | « media/filters/audio_renderer_algorithm.cc ('k') | media/filters/fake_demuxer_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698