Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Unified Diff: content/test/webrtc_content_browsertest_base.cc

Issue 663793003: Relanding WebRTC real webcam browsertest for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/data/media/webrtc_test_utilities.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/webrtc_content_browsertest_base.cc
diff --git a/content/test/webrtc_content_browsertest_base.cc b/content/test/webrtc_content_browsertest_base.cc
index e6c3b4600815849a6eb3ca9e5635179dc845fe63..f37eb900894c7efe51b49fb96e4ec33b1e9d207d 100644
--- a/content/test/webrtc_content_browsertest_base.cc
+++ b/content/test/webrtc_content_browsertest_base.cc
@@ -24,12 +24,11 @@
namespace content {
void WebRtcContentBrowserTest::SetUpCommandLine(CommandLine* command_line) {
- // We need fake devices in this test since we want to run on naked VMs. We
- // assume these switches are set by default in content_browsertests.
- ASSERT_TRUE(CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kUseFakeDeviceForMediaStream));
+ // Assume this is set by the content test launcher.
ASSERT_TRUE(CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseFakeUIForMediaStream));
+ ASSERT_TRUE(CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kUseFakeDeviceForMediaStream));
// Always include loopback interface in network list, in case the test device
// doesn't have other interfaces available.
@@ -38,6 +37,7 @@ void WebRtcContentBrowserTest::SetUpCommandLine(CommandLine* command_line) {
}
void WebRtcContentBrowserTest::SetUp() {
+ // We need pixel output when we dig pixels out of video tags for verification.
EnablePixelOutput();
#if defined(OS_CHROMEOS)
chromeos::CrasAudioHandler::InitializeForTesting();
« no previous file with comments | « content/test/data/media/webrtc_test_utilities.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698