#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "content/browser/media/media_browsertest.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "media/base/media_switches.h"
#include "media/base/test_data_util.h"
#include "media/media_buildflags.h"
namespace content {
class MediaColorTest : public MediaBrowserTest { … };
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pVp8) { … }
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv444pVp9) { … }
IN_PROC_BROWSER_TEST_F(MediaColorTest, GbrpVp9) { … }
#if !BUILDFLAG(IS_FUCHSIA)
IN_PROC_BROWSER_TEST_F(MediaColorTest, GbrpAv1) { … }
#endif
#if BUILDFLAG(USE_PROPRIETARY_CODECS) && BUILDFLAG(ENABLE_FFMPEG_VIDEO_DECODERS)
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pH264) {
RunBlackWhiteTest("yuv420p.mp4");
}
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuvj420pH264) {
RunBlackWhiteTest("yuvj420p.mp4");
}
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pRec709H264) {
RunBlackWhiteTest("yuv420p_rec709.mp4");
}
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pHighBitDepth) {
RunBlackWhiteTest("yuv420p_hi10p.mp4");
}
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv422pH264) {
RunBlackWhiteTest("yuv422p.mp4");
}
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv444pH264) {
RunBlackWhiteTest("yuv444p.mp4");
}
IN_PROC_BROWSER_TEST_F(MediaColorTest, GbrpH264) {
RunGBRPTest("h264.mp4");
}
#endif
}