Index: media/filters/audio_decoder_unittest.cc |
diff --git a/media/filters/audio_decoder_unittest.cc b/media/filters/audio_decoder_unittest.cc |
index 12c86e35280830048ede16ea49643893e610bf70..875424e3744798035275f1b439e88c67b878e551 100644 |
--- a/media/filters/audio_decoder_unittest.cc |
+++ b/media/filters/audio_decoder_unittest.cc |
@@ -29,6 +29,7 @@ |
#include "media/filters/audio_file_reader.h" |
#include "media/filters/ffmpeg_audio_decoder.h" |
#include "media/filters/in_memory_url_protocol.h" |
+#include "media/media_features.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#if defined(OS_ANDROID) |
@@ -36,7 +37,7 @@ |
#include "media/base/android/media_codec_util.h" |
#include "media/filters/android/media_codec_audio_decoder.h" |
-#if defined(USE_PROPRIETARY_CODECS) |
+#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
#include "media/formats/mpeg/adts_stream_parser.h" |
#endif |
@@ -187,7 +188,7 @@ class AudioDecoderTest : public testing::TestWithParam<DecoderTestData> { |
ASSERT_TRUE(AVCodecContextToAudioDecoderConfig( |
reader_->codec_context_for_testing(), Unencrypted(), &config)); |
-#if defined(OS_ANDROID) && defined(USE_PROPRIETARY_CODECS) |
+#if defined(OS_ANDROID) && BUILDFLAG(USE_PROPRIETARY_CODECS) |
// MEDIA_CODEC type requires config->extra_data() for AAC codec. For ADTS |
// streams we need to extract it with a separate procedure. |
if (GetParam().decoder_type == MEDIA_CODEC && |
@@ -456,7 +457,7 @@ const DecodedBufferExpectations kBearOpusExpectations[] = { |
}; |
#if defined(OS_ANDROID) |
-#if defined(USE_PROPRIETARY_CODECS) |
+#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
const DecodedBufferExpectations kSfxAdtsMcExpectations[] = { |
{0, 23219, "-1.80,-1.49,-0.23,1.11,1.54,-0.11,"}, |
{23219, 23219, "-1.90,-1.53,-0.15,1.28,1.23,-0.33,"}, |
@@ -473,7 +474,7 @@ const DecodedBufferExpectations kHeAacMcExpectations[] = { |
const DecoderTestData kMediaCodecTests[] = { |
{MEDIA_CODEC, kCodecOpus, "bear-opus.ogg", kBearOpusExpectations, 24, 48000, |
CHANNEL_LAYOUT_STEREO}, |
-#if defined(USE_PROPRIETARY_CODECS) |
+#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
{MEDIA_CODEC, kCodecAAC, "sfx.adts", kSfxAdtsMcExpectations, 0, 44100, |
CHANNEL_LAYOUT_MONO}, |
{MEDIA_CODEC, kCodecAAC, "bear-audio-implicit-he-aac-v2.aac", |
@@ -486,7 +487,7 @@ INSTANTIATE_TEST_CASE_P(MediaCodec, |
testing::ValuesIn(kMediaCodecTests)); |
#endif // defined(OS_ANDROID) |
-#if defined(USE_PROPRIETARY_CODECS) |
+#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
const DecodedBufferExpectations kSfxMp3Expectations[] = { |
{0, 1065, "2.81,3.99,4.53,4.10,3.08,2.46,"}, |
{1065, 26122, "-3.81,-4.14,-3.90,-3.36,-3.03,-3.23,"}, |
@@ -545,7 +546,7 @@ const DecodedBufferExpectations kSfxOpusExpectations[] = { |
#endif |
const DecoderTestData kFFmpegTests[] = { |
-#if defined(USE_PROPRIETARY_CODECS) |
+#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
{FFMPEG, kCodecMP3, "sfx.mp3", kSfxMp3Expectations, 0, 44100, |
CHANNEL_LAYOUT_MONO}, |
{FFMPEG, kCodecAAC, "sfx.adts", kSfxAdtsExpectations, 0, 44100, |