Add an almost complete rfc complaint RTCConfiguration

This commit is contained in:
Konstantin Itskov
2018-08-24 01:27:22 -04:00
committed by Sean DuBois
parent 26e0fb8423
commit 20191a4974
26 changed files with 738 additions and 570 deletions

View File

@@ -1,27 +0,0 @@
package webrtc
import (
"testing"
"time"
)
func TestRTCCertificate(t *testing.T) {
t.Run("Equals", func(t *testing.T) {
now := time.Now()
testCases := []struct {
first RTCCertificate
second RTCCertificate
expected bool
}{
{RTCCertificate{expires: now}, RTCCertificate{expires: now}, true},
{RTCCertificate{expires: now}, RTCCertificate{}, false},
}
for i, testCase := range testCases {
equal := testCase.first.Equals(testCase.second)
if equal != testCase.expected {
t.Errorf("Case %d: expected %t got %t", i, testCase.expected, equal)
}
}
})
}