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

Unified Diff: content/test/data/media/peerconnection-call.html

Issue 442313002: Contentbrowsertest for verifying that a black frame is sent on a peerconnection if a track is disab… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nit. Created 6 years, 4 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/browser/media/webrtc_browsertest.cc ('k') | content/test/data/media/webrtc_test_utilities.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/peerconnection-call.html
diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html
index 511380dfe2ea2ef41f55f9e2a42013534c522f4f..22dcd8356c6ee07e8fb9ffac063f01950a06877e 100644
--- a/content/test/data/media/peerconnection-call.html
+++ b/content/test/data/media/peerconnection-call.html
@@ -58,6 +58,20 @@
waitForVideo('remote-view-2');
}
+ // Test that we can setup a call with a video track and that the remote peer
+ // receives black frames if the local video track is disabled.
+ function callAndDisableLocalVideo(constraints) {
+ createConnections(null);
+ navigator.webkitGetUserMedia(constraints,
+ addStreamToBothConnectionsAndNegotiate, printGetUserMediaError);
+ detectVideoPlaying('remote-view-1',
+ function () {
+ assertEquals(gLocalStream.getVideoTracks().length, 1);
+ gLocalStream.getVideoTracks()[0].enabled = false;
+ waitForBlackVideo('remote-view-1');
+ });
+ }
+
// Test that we can setup call with an audio and video track and check that
// the video resolution is as expected.
function callAndExpectResolution(constraints,
« no previous file with comments | « content/browser/media/webrtc_browsertest.cc ('k') | content/test/data/media/webrtc_test_utilities.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698