| Index: media/test/pipeline_integration_test.cc
|
| diff --git a/media/test/pipeline_integration_test.cc b/media/test/pipeline_integration_test.cc
|
| index 1044f0f35309e2aa49078c2faa9c7b38873b9444..d254dfda6a6c82402e356673bc2aeaccb3cde595 100644
|
| --- a/media/test/pipeline_integration_test.cc
|
| +++ b/media/test/pipeline_integration_test.cc
|
| @@ -31,6 +31,7 @@
|
| #include "media/cdm/aes_decryptor.h"
|
| #include "media/cdm/json_web_key.h"
|
| #include "media/filters/chunk_demuxer.h"
|
| +#include "media/media_features.h"
|
| #include "media/renderers/renderer_impl.h"
|
| #include "media/test/pipeline_integration_test_base.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| @@ -100,7 +101,7 @@ const char kWebMVP9[] = "video/webm; codecs=\"vp9\"";
|
| const char kAudioOnlyWebM[] = "video/webm; codecs=\"vorbis\"";
|
| const char kOpusAudioOnlyWebM[] = "video/webm; codecs=\"opus\"";
|
| const char kVideoOnlyWebM[] = "video/webm; codecs=\"vp8\"";
|
| -#if defined(USE_PROPRIETARY_CODECS)
|
| +#if BUILDFLAG(USE_PROPRIETARY_CODECS)
|
| const char kADTS[] = "audio/aac";
|
| const char kMP4[] = "video/mp4; codecs=\"avc1.4D4041,mp4a.40.2\"";
|
| const char kMP4VideoAVC3[] = "video/mp4; codecs=\"avc3.64001f\"";
|
| @@ -111,7 +112,7 @@ const char kMP4Video[] = "video/mp4; codecs=\"avc1.4D4041\"";
|
| const char kMP4Audio[] = "audio/mp4; codecs=\"mp4a.40.2\"";
|
| const char kMP3[] = "audio/mpeg";
|
| const char kMP2AudioSBR[] = "video/mp2t; codecs=\"avc1.4D4041,mp4a.40.5\"";
|
| -#endif // defined(USE_PROPRIETARY_CODECS)
|
| +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| const size_t kAppendWholeFile = std::numeric_limits<size_t>::max();
|
|
|
| @@ -156,12 +157,12 @@ static const char kOpusSmallCodecDelayHash_2[] =
|
| #endif // defined(OPUS_FIXED_POINT)
|
| #endif // !defined(MOJO_RENDERER)
|
|
|
| -#if defined(USE_PROPRIETARY_CODECS)
|
| +#if BUILDFLAG(USE_PROPRIETARY_CODECS)
|
| const int k640IsoFileDurationMs = 2737;
|
| const int k640IsoCencFileDurationMs = 2736;
|
| const int k1280IsoFileDurationMs = 2736;
|
| const int k1280IsoAVC3FileDurationMs = 2736;
|
| -#endif // defined(USE_PROPRIETARY_CODECS)
|
| +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| // Return a timeline offset for bear-320x240-live.webm.
|
| static base::Time kLiveTimelineOffset() {
|
| @@ -863,7 +864,7 @@ TEST_P(BasicMSEPlaybackTest, PlayToEnd) {
|
| Stop();
|
| }
|
|
|
| -#if defined(USE_PROPRIETARY_CODECS)
|
| +#if BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| const PlaybackTestData kADTSTests[] = {
|
| {"bear-audio-main-aac.aac", 0, 2724},
|
| @@ -889,7 +890,7 @@ INSTANTIATE_TEST_CASE_P(PropritaryCodecs,
|
| BasicMSEPlaybackTest,
|
| testing::ValuesIn(kMediaSourceADTSTests));
|
|
|
| -#endif // defined(USE_PROPRIETARY_CODECS)
|
| +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| TEST_F(PipelineIntegrationTest, BasicPlayback) {
|
| ASSERT_EQ(PIPELINE_OK, Start("bear-320x240.webm"));
|
| @@ -1580,7 +1581,7 @@ TEST_F(PipelineIntegrationTest, BasicPlaybackHi12PVP9) {
|
| }
|
| #endif
|
|
|
| -#if defined(USE_PROPRIETARY_CODECS)
|
| +#if BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| TEST_F(PipelineIntegrationTest, BasicPlaybackHi10P) {
|
| ASSERT_EQ(PIPELINE_OK, Start("bear-320x180-hi10p.mp4", kClockless));
|
| @@ -1937,7 +1938,7 @@ TEST_F(PipelineIntegrationTest, MidStreamConfigChangesFail) {
|
| Play();
|
| ASSERT_EQ(WaitUntilEndedOrError(), PIPELINE_ERROR_DECODE);
|
| }
|
| -#endif // defined(USE_PROPRIETARY_CODECS)
|
| +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| TEST_F(PipelineIntegrationTest, BasicPlayback_16x9AspectRatio) {
|
| ASSERT_EQ(PIPELINE_OK, Start("bear-320x240-16x9-aspect.webm"));
|
| @@ -1996,7 +1997,7 @@ TEST_F(PipelineIntegrationTest,
|
| Stop();
|
| }
|
|
|
| -#if defined(USE_PROPRIETARY_CODECS)
|
| +#if BUILDFLAG(USE_PROPRIETARY_CODECS)
|
| TEST_F(PipelineIntegrationTest,
|
| MAYBE_EME(EncryptedPlayback_MP4_CENC_VideoOnly)) {
|
| MockMediaSource source("bear-1280x720-v_frag-cenc.mp4", kMP4Video,
|
| @@ -2257,7 +2258,7 @@ TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource_VideoOnly_MP4_HEVC2) {
|
| #endif
|
| }
|
|
|
| -#endif // defined(USE_PROPRIETARY_CODECS)
|
| +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| TEST_F(PipelineIntegrationTest, SeekWhilePaused) {
|
| ASSERT_EQ(PIPELINE_OK, Start("bear-320x240.webm"));
|
| @@ -2347,7 +2348,7 @@ TEST_F(PipelineIntegrationTest, SuspendWhilePlaying) {
|
| ASSERT_TRUE(WaitUntilOnEnded());
|
| }
|
|
|
| -#if defined(USE_PROPRIETARY_CODECS)
|
| +#if BUILDFLAG(USE_PROPRIETARY_CODECS)
|
| TEST_F(PipelineIntegrationTest, Rotated_Metadata_0) {
|
| ASSERT_EQ(PIPELINE_OK, Start("bear_rotate_0.mp4"));
|
| ASSERT_EQ(VIDEO_ROTATION_0, metadata_.video_rotation);
|
| @@ -2367,7 +2368,7 @@ TEST_F(PipelineIntegrationTest, Rotated_Metadata_270) {
|
| ASSERT_EQ(PIPELINE_OK, Start("bear_rotate_270.mp4"));
|
| ASSERT_EQ(VIDEO_ROTATION_270, metadata_.video_rotation);
|
| }
|
| -#endif // defined(USE_PROPRIETARY_CODECS)
|
| +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
|
|
|
| // Verify audio decoder & renderer can handle aborted demuxer reads.
|
| TEST_F(PipelineIntegrationTest, ChunkDemuxerAbortRead_AudioOnly) {
|
|
|