Index: media/filters/ffmpeg_audio_decoder_unittest.cc |
diff --git a/media/filters/ffmpeg_audio_decoder_unittest.cc b/media/filters/ffmpeg_audio_decoder_unittest.cc |
index ead293dbaffc2220813643dc74974d71df0e4004..6c3a2e02653fa9c679c9ba4e248650791a0bed81 100644 |
--- a/media/filters/ffmpeg_audio_decoder_unittest.cc |
+++ b/media/filters/ffmpeg_audio_decoder_unittest.cc |
@@ -54,7 +54,7 @@ class FFmpegAudioDecoderTest : public testing::Test { |
encoded_audio_.push_back(DecoderBuffer::CreateEOSBuffer()); |
config_.Initialize(kCodecVorbis, |
- 16, |
+ kSampleFormatPlanarF32, |
CHANNEL_LAYOUT_STEREO, |
44100, |
vorbis_extradata_->GetData(), |
@@ -128,9 +128,9 @@ class FFmpegAudioDecoderTest : public testing::Test { |
TEST_F(FFmpegAudioDecoderTest, Initialize) { |
Initialize(); |
- EXPECT_EQ(16, decoder_->bits_per_channel()); |
- EXPECT_EQ(CHANNEL_LAYOUT_STEREO, decoder_->channel_layout()); |
- EXPECT_EQ(44100, decoder_->samples_per_second()); |
+ EXPECT_EQ(config_.bits_per_channel(), decoder_->bits_per_channel()); |
+ EXPECT_EQ(config_.channel_layout(), decoder_->channel_layout()); |
+ EXPECT_EQ(config_.samples_per_second(), decoder_->samples_per_second()); |
} |
TEST_F(FFmpegAudioDecoderTest, ProduceAudioSamples) { |