WebRTC: Add media setup test where media is set up in one direction at a time
authoradam.bergkvist@ericsson.com <adam.bergkvist@ericsson.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jun 2016 15:13:20 +0000 (15:13 +0000)
committeradam.bergkvist@ericsson.com <adam.bergkvist@ericsson.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jun 2016 15:13:20 +0000 (15:13 +0000)
commitb844403899fed2f58104cf1523355066d5934ccc
treeae0f265a9e69f81abba9f200878f32a87a177d86
parent6bec391095c7a4e23ec2026a3ed48e14adf8c4c7
WebRTC: Add media setup test where media is set up in one direction at a time
https://bugs.webkit.org/show_bug.cgi?id=158691

Reviewed by Eric Carlson.

Source/WebCore:

Add test for setting up media in one direction at a time. This requires a change in sdp.js
to allow an SDP that doesn't contain a stream id or track id (representing
a track being sent). In this test, the first answer doesn't contain any sending media.

Test: fast/mediastream/RTCPeerConnection-media-setup-two-dialogs.html

* Modules/mediastream/sdp.js:

LayoutTests:

Test setting up media in one direction at a time. This is achieved by first negotiating
media in one direction. In a second step, an updated offer is sent to add bi-directional
media.

* fast/mediastream/RTCPeerConnection-media-setup-two-dialogs-expected.txt: Added.
* fast/mediastream/RTCPeerConnection-media-setup-two-dialogs.html: Added.
* platform/mac/TestExpectations:
The mac port is not building with WEB_RTC yet.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/mediastream/RTCPeerConnection-media-setup-two-dialogs-expected.txt [new file with mode: 0644]
LayoutTests/fast/mediastream/RTCPeerConnection-media-setup-two-dialogs.html [new file with mode: 0644]
LayoutTests/platform/mac/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/sdp.js