(t *testing.T)
| 533 | } |
| 534 | |
| 535 | func TestNoFingerprintInFirstMediaIfSetRemoteDescription(t *testing.T) { |
| 536 | const sdpNoFingerprintInFirstMedia = `v=0 |
| 537 | o=- 143087887 1561022767 IN IP4 192.168.84.254 |
| 538 | s=VideoRoom 404986692241682 |
| 539 | t=0 0 |
| 540 | a=group:BUNDLE audio |
| 541 | a=msid-semantic: WMS 2867270241552712 |
| 542 | m=video 0 UDP/TLS/RTP/SAVPF 0 |
| 543 | a=mid:video |
| 544 | c=IN IP4 192.168.84.254 |
| 545 | a=inactive |
| 546 | m=audio 9 UDP/TLS/RTP/SAVPF 111 |
| 547 | c=IN IP4 192.168.84.254 |
| 548 | a=recvonly |
| 549 | a=mid:audio |
| 550 | a=rtcp-mux |
| 551 | a=ice-ufrag:AS/w |
| 552 | a=ice-pwd:9NOgoAOMALYu/LOpA1iqg/ |
| 553 | a=ice-options:trickle |
| 554 | a=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 |
| 555 | a=setup:active |
| 556 | a=rtpmap:111 opus/48000/2 |
| 557 | a=candidate:1 1 udp 2013266431 192.168.84.254 46492 typ host |
| 558 | a=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 | |
| 577 | func TestNegotiationNeeded(t *testing.T) { |
| 578 | lim := test.TimeOut(time.Second * 30) |
nothing calls this directly
no test coverage detected
searching dependent graphs…