Commit e95b5033 authored by watk's avatar watk Committed by Commit bot

Enable media browsertests on Android

These have been disabled for a long time. Now that the unified media
pipeline is enabled, they should be much more reliable.

BUG=582293

Review-Url: https://codereview.chromium.org/2346963004
Cr-Commit-Position: refs/heads/master@{#419912}
parent d57951df
# List of suppressions
# Timeouts
Http/MediaTest.*
File/MediaTest.*
MediaTest.*
MediaColorTest.*
DatabaseTest.*
# Crashes
......
......@@ -101,6 +101,8 @@ class MediaTest : public testing::WithParamInterface<bool>,
}
};
// Android doesn't support Theora.
#if !defined(OS_ANDROID)
IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearTheora) {
PlayVideo("bear.ogv", GetParam());
}
......@@ -108,6 +110,7 @@ IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearTheora) {
IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearSilentTheora) {
PlayVideo("bear_silent.ogv", GetParam());
}
#endif // !defined(OS_ANDROID)
IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearWebm) {
PlayVideo("bear.webm", GetParam());
......@@ -136,9 +139,12 @@ IN_PROC_BROWSER_TEST_P(MediaTest, MAYBE_VideoBearMp4) {
PlayVideo("bear.mp4", GetParam());
}
// Android devices usually only support baseline, main and high.
#if !defined(OS_ANDROID)
IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearHighBitDepthMp4) {
PlayVideo("bear-320x180-hi10p.mp4", GetParam());
}
#endif // !defined(OS_ANDROID)
// Crashes on Mac only. http://crbug.com/621857
#if defined(OS_MACOSX)
......@@ -237,7 +243,7 @@ IN_PROC_BROWSER_TEST_P(MediaTest, VideoTulipWebm) {
// Covers tear-down when navigating away as opposed to browser exiting.
IN_PROC_BROWSER_TEST_F(MediaTest, Navigate) {
PlayVideo("bear.ogv", false);
PlayVideo("bear.webm", false);
NavigateToURL(shell(), GURL(url::kAboutBlankURL));
EXPECT_FALSE(shell()->web_contents()->IsCrashed());
}
......
......@@ -19,6 +19,8 @@ class MediaColorTest : public MediaBrowserTest {
}
};
// Android doesn't support Theora.
#if !defined(OS_ANDROID)
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pTheora) {
RunColorTest("yuv420p.ogv");
}
......@@ -30,6 +32,7 @@ IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv422pTheora) {
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv444pTheora) {
RunColorTest("yuv444p.ogv");
}
#endif // !defined(OS_ANDROID)
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pVp8) {
RunColorTest("yuv420p.webm");
......@@ -66,6 +69,8 @@ IN_PROC_BROWSER_TEST_F(MediaColorTest, MAYBE_Yuv420pRec709H264) {
RunColorTest("yuv420p_rec709.mp4");
}
// Android devices usually only support baseline, main and high.
#if !defined(OS_ANDROID)
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pHighBitDepth) {
RunColorTest("yuv420p_hi10p.mp4");
}
......@@ -77,6 +82,7 @@ IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv422pH264) {
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv444pH264) {
RunColorTest("yuv444p.mp4");
}
#endif // !defined(OS_ANDROID)
#if defined(OS_CHROMEOS)
IN_PROC_BROWSER_TEST_F(MediaColorTest, Yuv420pMpeg4) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment