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

Unified Diff: content/browser/media/webrtc_browsertest.cc

Issue 214663004: Add test for sending square resolution video on a PeerConnection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: content/browser/media/webrtc_browsertest.cc
diff --git a/content/browser/media/webrtc_browsertest.cc b/content/browser/media/webrtc_browsertest.cc
index 62b50da4677552f70da4ba50ce89c6e85a7abed9..c1b1f658cb4934ff86c50355dc94e40d4168f48c 100644
--- a/content/browser/media/webrtc_browsertest.cc
+++ b/content/browser/media/webrtc_browsertest.cc
@@ -72,7 +72,14 @@ INSTANTIATE_TEST_CASE_P(WebRtcBrowserTests,
// These tests will make a complete PeerConnection-based call and verify that
// video is playing for the call.
IN_PROC_BROWSER_TEST_P(WebRtcBrowserTest, MAYBE_CanSetupVideoCall) {
- MakeTypicalPeerConnectionCall("call({video: true});");
+ MakeTypicalPeerConnectionCall("call({video: true}, 640, 480);");
phoglund_chromium 2014/03/28 08:33:30 This is confusing - it looks like we're setting up
perkj_chrome 2014/03/28 09:14:23 Done.
+}
+
+IN_PROC_BROWSER_TEST_P(WebRtcBrowserTest, CanSetupVideoCallWith1To1AspecRatio) {
+ const std::string javascript =
+ "call({video: {mandatory: {minWidth: 320, maxWidth: 320, minHeight: 320, "
+ "maxHeight: 320}}}, 320, 320);";
+ MakeTypicalPeerConnectionCall(javascript);
}
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY)
@@ -83,7 +90,7 @@ IN_PROC_BROWSER_TEST_P(WebRtcBrowserTest, MAYBE_CanSetupVideoCall) {
#endif
IN_PROC_BROWSER_TEST_P(WebRtcBrowserTest, MAYBE_CanSetupAudioAndVideoCall) {
- MakeTypicalPeerConnectionCall("call({video: true, audio: true});");
+ MakeTypicalPeerConnectionCall("call({video: true, audio: true}, 640, 480);");
}
IN_PROC_BROWSER_TEST_P(WebRtcBrowserTest, MANUAL_CanSetupCallAndSendDtmf) {
@@ -355,7 +362,7 @@ IN_PROC_BROWSER_TEST_P(WebRtcBrowserTest, MAYBE_CallWithAecDump) {
GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html"));
NavigateToURL(shell(), url);
DisableOpusIfOnAndroid();
- ExecuteJavascriptAndWaitForOk("call({video: true, audio: true});");
+ ExecuteJavascriptAndWaitForOk("call({video: true, audio: true}, 640, 480);");
EXPECT_TRUE(base::PathExists(dump_file));
int64 file_size = 0;
@@ -392,7 +399,7 @@ IN_PROC_BROWSER_TEST_P(WebRtcBrowserTest,
GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html"));
NavigateToURL(shell(), url);
DisableOpusIfOnAndroid();
- ExecuteJavascriptAndWaitForOk("call({video: true, audio: true});");
+ ExecuteJavascriptAndWaitForOk("call({video: true, audio: true}, 640, 480);");
EXPECT_TRUE(base::PathExists(dump_file));
int64 file_size = 0;

Powered by Google App Engine
This is Rietveld 408576698