EXPECT_FALSE(command_line->HasSwitch(
switches::kUseFakeUIForMediaStream));
+#if defined(OS_MACOSX)
+ // TODO(mcasas): Remove this switch when ManyCam virtual video capture
+ // device starts supporting AVFoundation, see http://crbug.com/327618.
+ command_line->AppendSwitch(switches::kDisableAVFoundation);
+#endif
+
// Flag used by TestWebAudioMediaStream to force garbage collection.
command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc");
}
"active", to_tab));
}
- void StartDetectingVideo(content::WebContents* tab_contents,
- const std::string& video_element) {
- std::string javascript = base::StringPrintf(
- "startDetection('%s', 'frame-buffer', 320, 240)",
- video_element.c_str());
- EXPECT_EQ("ok-started", ExecuteJavascript(javascript, tab_contents));
- }
-
- void WaitForVideoToPlay(content::WebContents* tab_contents) {
- EXPECT_TRUE(PollingWaitUntil("isVideoPlaying()", "video-playing",
- tab_contents));
- }
-
void HangUp(content::WebContents* from_tab) {
EXPECT_EQ("ok-call-hung-up", ExecuteJavascript("hangUp()", from_tab));
}