MCPcopy
hub / github.com/pion/webrtc / TestNoFingerprintInFirstMediaIfSetRemoteDescription

Function TestNoFingerprintInFirstMediaIfSetRemoteDescription

peerconnection_test.go:535–575  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

533}
534
535func TestNoFingerprintInFirstMediaIfSetRemoteDescription(t *testing.T) {
536 const sdpNoFingerprintInFirstMedia = `v=0
537o=- 143087887 1561022767 IN IP4 192.168.84.254
538s=VideoRoom 404986692241682
539t=0 0
540a=group:BUNDLE audio
541a=msid-semantic: WMS 2867270241552712
542m=video 0 UDP/TLS/RTP/SAVPF 0
543a=mid:video
544c=IN IP4 192.168.84.254
545a=inactive
546m=audio 9 UDP/TLS/RTP/SAVPF 111
547c=IN IP4 192.168.84.254
548a=recvonly
549a=mid:audio
550a=rtcp-mux
551a=ice-ufrag:AS/w
552a=ice-pwd:9NOgoAOMALYu/LOpA1iqg/
553a=ice-options:trickle
554a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
555a=setup:active
556a=rtpmap:111 opus/48000/2
557a=candidate:1 1 udp 2013266431 192.168.84.254 46492 typ host
558a=end-of-candidates
559`
560
561 report := test.CheckRoutines(t)
562 defer report()
563
564 pc, err := NewPeerConnection(Configuration{})
565 assert.NoError(t, err)
566
567 desc := SessionDescription{
568 Type: SDPTypeOffer,
569 SDP: sdpNoFingerprintInFirstMedia,
570 }
571
572 assert.NoError(t, pc.SetRemoteDescription(desc))
573
574 assert.NoError(t, pc.Close())
575}
576
577func TestNegotiationNeeded(t *testing.T) {
578 lim := test.TimeOut(time.Second * 30)

Callers

nothing calls this directly

Calls 3

SetRemoteDescriptionMethod · 0.95
CloseMethod · 0.95
NewPeerConnectionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…