diff options
author | deadbeef <deadbeef@chromium.org> | 2015-11-12 15:27:17 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-12 23:28:11 +0000 |
commit | 4e956e25590dd29948add0df5d6dcadf5c0c7399 (patch) | |
tree | 85bf8f40da881a09de356228cdba7809e12fd917 /content | |
parent | 9bfaa98aa6af4078ee4b8090890372e1ac8078d9 (diff) | |
download | chromium_src-4e956e25590dd29948add0df5d6dcadf5c0c7399.zip chromium_src-4e956e25590dd29948add0df5d6dcadf5c0c7399.tar.gz chromium_src-4e956e25590dd29948add0df5d6dcadf5c0c7399.tar.bz2 |
Fixing WebRtcBrowserTest.CallAndModifyStream, for new addStream behavior.
Soon, the peer connection will stop keeping track of modifications to an
added stream. So to add/remove tracks from a peer connection, you *must*
explicitly call addStream/removeStream.
Review URL: https://codereview.chromium.org/1435713002
Cr-Commit-Position: refs/heads/master@{#359433}
Diffstat (limited to 'content')
-rw-r--r-- | content/test/data/media/peerconnection-call.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html index 836f14d..f84ded5 100644 --- a/content/test/data/media/peerconnection-call.html +++ b/content/test/data/media/peerconnection-call.html @@ -544,8 +544,10 @@ // When all the above events have occurred- the test pass. setAllEventsOccuredHandler(reportTestSuccess); + gFirstConnection.removeStream(localStream); localStream.addTrack(gLocalStream.getAudioTracks()[0]); localStream.removeTrack(localStream.getVideoTracks()[0]); + gFirstConnection.addStream(localStream); negotiate(); }); } |