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

Unified Diff: content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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
Index: content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc
diff --git a/content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc b/content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc
index 26b05ed5aac303fd9bb7a62bb97e6d7f739c3fb9..d958c2b5595bfa85309f88f334c4587b94e7b1dd 100644
--- a/content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc
+++ b/content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc
@@ -34,8 +34,8 @@ const int bits_per_sample = 16;
// Faked ring buffer. Must be aligned.
#define DATA_ALIGNMENT 16
-COMPILE_ASSERT(AudioBus::kChannelAlignment == DATA_ALIGNMENT,
- Data_alignment_not_same_as_AudioBus);
+static_assert(AudioBus::kChannelAlignment == DATA_ALIGNMENT,
+ "Data alignment not same as AudioBus");
ALIGNAS(DATA_ALIGNMENT) uint8 data[kSegments *
(sizeof(media::AudioInputBufferParameters) + frames * channels *
sizeof(float))];

Powered by Google App Engine
This is Rietveld 408576698