mirror of
https://github.com/pion/webrtc.git
synced 2025-10-10 01:20:09 +08:00
Add an almost complete rfc complaint RTCConfiguration
This commit is contained in:

committed by
Sean DuBois

parent
26e0fb8423
commit
20191a4974
@@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user