Remove RTCDataChannel priority

This has been removed from webrtc-pc[0]

Relates to #748

[0] https://github.com/w3c/webrtc-pc/issues/2258
This commit is contained in:
Sean DuBois
2019-09-26 01:07:42 -07:00
committed by Sean DuBois
parent c12ebcf0e2
commit d54b494292
8 changed files with 6 additions and 161 deletions

View File

@@ -8,8 +8,8 @@ import (
func TestNewRTPTransceiverDirection(t *testing.T) {
testCases := []struct {
priorityString string
expectedPriority RTPTransceiverDirection
directionString string
expectedDirection RTPTransceiverDirection
}{
{unknownStr, RTPTransceiverDirection(Unknown)},
{"sendrecv", RTPTransceiverDirectionSendrecv},
@@ -20,8 +20,8 @@ func TestNewRTPTransceiverDirection(t *testing.T) {
for i, testCase := range testCases {
assert.Equal(t,
NewRTPTransceiverDirection(testCase.priorityString),
testCase.expectedPriority,
NewRTPTransceiverDirection(testCase.directionString),
testCase.expectedDirection,
"testCase: %d %v", i, testCase,
)
}
@@ -29,7 +29,7 @@ func TestNewRTPTransceiverDirection(t *testing.T) {
func TestRTPTransceiverDirection_String(t *testing.T) {
testCases := []struct {
priority RTPTransceiverDirection
direction RTPTransceiverDirection
expectedString string
}{
{RTPTransceiverDirection(Unknown), unknownStr},
@@ -41,7 +41,7 @@ func TestRTPTransceiverDirection_String(t *testing.T) {
for i, testCase := range testCases {
assert.Equal(t,
testCase.priority.String(),
testCase.direction.String(),
testCase.expectedString,
"testCase: %d %v", i, testCase,
)