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

Unified Diff: media/formats/webm/webm_cluster_parser_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/h264_parser.cc ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/webm/webm_cluster_parser_unittest.cc
diff --git a/media/formats/webm/webm_cluster_parser_unittest.cc b/media/formats/webm/webm_cluster_parser_unittest.cc
index 55dc791c2ce5bc7e75916ad458f6aeb292abd023..bf19bee1c14db41fde44ef47d6c47b4a7329fb75 100644
--- a/media/formats/webm/webm_cluster_parser_unittest.cc
+++ b/media/formats/webm/webm_cluster_parser_unittest.cc
@@ -31,14 +31,14 @@ enum {
kTestVideoFrameDefaultDurationInMs = 17
};
-COMPILE_ASSERT(
+static_assert(
static_cast<int>(kTestAudioFrameDefaultDurationInMs) !=
static_cast<int>(WebMClusterParser::kDefaultAudioBufferDurationInMs),
- test_default_is_same_as_estimation_fallback_audio_duration);
-COMPILE_ASSERT(
+ "test default is the same as estimation fallback audio duration");
+static_assert(
static_cast<int>(kTestVideoFrameDefaultDurationInMs) !=
static_cast<int>(WebMClusterParser::kDefaultVideoBufferDurationInMs),
- test_default_is_same_as_estimation_fallback_video_duration);
+ "test default is the same as estimation fallback video duration");
struct BlockInfo {
int track_num;
« no previous file with comments | « media/filters/h264_parser.cc ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698