summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalliwell <halliwell@chromium.org>2015-12-01 11:27:29 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-01 19:35:34 +0000
commitad47faa4a05eadbd898f67535eb590a8c9ce9e73 (patch)
treedcbdf9f551289cc8480b8de68f932a6356a0014f
parent6516805e8c69ac65bcb7d52a2a208be97a7d2a50 (diff)
downloadchromium_src-ad47faa4a05eadbd898f67535eb590a8c9ce9e73.zip
chromium_src-ad47faa4a05eadbd898f67535eb590a8c9ce9e73.tar.gz
chromium_src-ad47faa4a05eadbd898f67535eb590a8c9ce9e73.tar.bz2
[Chromecast] Add media playback browser test for audio builds
Also rename video playback test to be clear, and filter it out on audio-only builds. BUG= Review URL: https://codereview.chromium.org/1475863004 Cr-Commit-Position: refs/heads/master@{#362473}
-rw-r--r--chromecast/browser/test/chromecast_shell_browser_test.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/chromecast/browser/test/chromecast_shell_browser_test.cc b/chromecast/browser/test/chromecast_shell_browser_test.cc
index d617f25..6f0b6e5 100644
--- a/chromecast/browser/test/chromecast_shell_browser_test.cc
+++ b/chromecast/browser/test/chromecast_shell_browser_test.cc
@@ -28,6 +28,9 @@ class ChromecastShellBrowserTest : public ChromecastBrowserTest {
NavigateToURL(web_contents(), url_);
}
+ void PlayAudio(const std::string& media_file) {
+ PlayMedia("audio", media_file);
+ }
void PlayVideo(const std::string& media_file) {
PlayMedia("video", media_file);
}
@@ -77,9 +80,15 @@ IN_PROC_BROWSER_TEST_F(ChromecastShellBrowserTest, EmptyTest) {
EXPECT_TRUE(true);
}
-IN_PROC_BROWSER_TEST_F(ChromecastShellBrowserTest, MediaPlayback) {
+IN_PROC_BROWSER_TEST_F(ChromecastShellBrowserTest, AudioPlaybackWavPcm) {
+ PlayAudio("bear_pcm.wav");
+}
+
+#if !defined(DISABLE_DISPLAY)
+IN_PROC_BROWSER_TEST_F(ChromecastShellBrowserTest, VideoPlaybackMp4) {
PlayVideo("bear.mp4");
}
+#endif
} // namespace shell
} // namespace chromecast