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

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

Issue 396193005: Converts RTCOfferOptions to constriants in the glue code for createOffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix sync Created 6 years, 5 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/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc ('k') | no next file » | 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 cb12d34791ac5065e41f63107bb05d168ca7efe7..d0a87070a21c1a9c1c6cd8c40f27b3f5ef894f61 100644
--- a/content/test/data/media/peerconnection-call.html
+++ b/content/test/data/media/peerconnection-call.html
@@ -283,6 +283,24 @@
detectVideoPlaying('remote-view-2', onCallEstablished);
}
+ function testCreateOfferOptions() {
+ createConnections(null);
+ var offerOptions = {
+ 'offerToReceiveAudio': false,
+ 'offerToReceiveVideo': true
+ };
+
+ gFirstConnection.createOffer(
+ function(offer) {
+ assertEquals(-1, offer.sdp.search('m=audio'));
+ assertNotEquals(-1, offer.sdp.search('m=video'));
+
+ reportTestSuccess();
+ },
+ function(error) { failTest(error); },
+ offerOptions);
+ }
+
function enableRemoteVideo(peerConnection, enabled) {
remoteStream = peerConnection.getRemoteStreams()[0];
remoteVideoTrack = remoteStream.getVideoTracks()[0];
« no previous file with comments | « content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698