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

Unified Diff: media/filters/decrypting_audio_decoder_unittest.cc

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: media/filters/decrypting_audio_decoder_unittest.cc
diff --git a/media/filters/decrypting_audio_decoder_unittest.cc b/media/filters/decrypting_audio_decoder_unittest.cc
index fe7f976cc8d977965fb0665a49ec0a7c3a79e00a..bd12003503fb6eddf0ea896d095d277ced33f959 100644
--- a/media/filters/decrypting_audio_decoder_unittest.cc
+++ b/media/filters/decrypting_audio_decoder_unittest.cc
@@ -90,11 +90,9 @@ class DecryptingAudioDecoderTest : public testing::Test {
int channels = ChannelLayoutToChannelCount(config.channel_layout());
if (channels < 0)
channels = 0;
- decoded_frame_ = AudioBuffer::CreateEmptyBuffer(config.channel_layout(),
- channels,
- kSampleRate,
- kFakeAudioFrameSize,
- kNoTimestamp());
+ decoded_frame_ = AudioBuffer::CreateEmptyBuffer(
+ config.channel_layout(), channels, kSampleRate, kFakeAudioFrameSize,
+ kNoTimestamp);
decoded_frame_list_.push_back(decoded_frame_);
decoder_->Initialize(config, cdm_context_.get(), NewExpectedBoolCB(success),
@@ -345,16 +343,12 @@ TEST_F(DecryptingAudioDecoderTest, DecryptAndDecode_MultipleFrames) {
scoped_refptr<AudioBuffer> frame_a = AudioBuffer::CreateEmptyBuffer(
config_.channel_layout(),
- ChannelLayoutToChannelCount(config_.channel_layout()),
- kSampleRate,
- kFakeAudioFrameSize,
- kNoTimestamp());
+ ChannelLayoutToChannelCount(config_.channel_layout()), kSampleRate,
+ kFakeAudioFrameSize, kNoTimestamp);
scoped_refptr<AudioBuffer> frame_b = AudioBuffer::CreateEmptyBuffer(
config_.channel_layout(),
- ChannelLayoutToChannelCount(config_.channel_layout()),
- kSampleRate,
- kFakeAudioFrameSize,
- kNoTimestamp());
+ ChannelLayoutToChannelCount(config_.channel_layout()), kSampleRate,
+ kFakeAudioFrameSize, kNoTimestamp);
decoded_frame_list_.push_back(frame_a);
decoded_frame_list_.push_back(frame_b);

Powered by Google App Engine
This is Rietveld 408576698