⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267401 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 1:03:38 AM (6 years ago)
Author:
youenn@apple.com
Message:

toRTCIceProtocol should handle ssltcp candidates
https://bugs.webkit.org/show_bug.cgi?id=216762

Reviewed by Darin Adler.

Source/WebCore:

Covered by mock WebRTC backend pushing ssltcp candidates.

  • Modules/mediastream/libwebrtc/LibWebRTCUtils.cpp:

(WebCore::toRTCIceProtocol):

  • testing/MockLibWebRTCPeerConnection.cpp:

LayoutTests:

  • fast/mediastream/RTCPeerConnection-icecandidate-event-expected.txt:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267396 r267401  
     12020-09-22  Youenn Fablet  <youenn@apple.com>
     2
     3        toRTCIceProtocol should handle ssltcp candidates
     4        https://bugs.webkit.org/show_bug.cgi?id=216762
     5
     6        Reviewed by Darin Adler.
     7
     8        * fast/mediastream/RTCPeerConnection-icecandidate-event-expected.txt:
     9
    1102020-09-21  Diego Pino Garcia  <dpino@igalia.com>
    211
  • trunk/LayoutTests/fast/mediastream/RTCPeerConnection-icecandidate-event-expected.txt

    r266698 r267401  
    2020PASS candidate.sdpMLineIndex is 0
    2121FAIL candidate.sdpMid should be null (of type object). Was 1 (of type string).
     22PASS candidate.candidate: candidate:1019216384 1 ssltcp 1019216385 192.168.0.100 49888 typ host generation 0
     23PASS Got candidate
     24PASS candidate instanceof RTCIceCandidate is true
     25PASS candidate.sdpMLineIndex is 0
     26FAIL candidate.sdpMid should be null (of type object). Was 1 (of type string).
    2227PASS candidate.candidate: candidate:1677722111 1 tcp 1677722112 172.18.0.1 47989 typ srflx raddr 192.168.0.100 rport 47989 generation 0
    2328PASS Got end of candidates
  • trunk/Source/WebCore/ChangeLog

    r267398 r267401  
     12020-09-22  Youenn Fablet  <youenn@apple.com>
     2
     3        toRTCIceProtocol should handle ssltcp candidates
     4        https://bugs.webkit.org/show_bug.cgi?id=216762
     5
     6        Reviewed by Darin Adler.
     7
     8        Covered by mock WebRTC backend pushing ssltcp candidates.
     9
     10        * Modules/mediastream/libwebrtc/LibWebRTCUtils.cpp:
     11        (WebCore::toRTCIceProtocol):
     12        * testing/MockLibWebRTCPeerConnection.cpp:
     13
    1142020-09-21  Adrian Perez de Castro  <aperez@igalia.com>
    215
  • trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCUtils.cpp

    r266698 r267401  
    267267    if (protocol == "udp")
    268268        return RTCIceProtocol::Udp;
    269     ASSERT(protocol == "tcp");
     269    ASSERT(protocol == "tcp" || protocol == "ssltcp");
    270270    return RTCIceProtocol::Tcp;
    271271}
  • trunk/Source/WebCore/testing/MockLibWebRTCPeerConnection.cpp

    r266698 r267401  
    129129        MockLibWebRTCIceCandidate candidate("candidate:1019216383 1 tcp 1019216384 192.168.0.100 9 typ host tcptype passive generation 0", "1");
    130130        m_observer.OnIceCandidate(&candidate);
     131        MockLibWebRTCIceCandidate candidateSSLTcp("candidate:1019216384 1 ssltcp 1019216385 192.168.0.100 49888 typ host generation 0", "1");
     132        m_observer.OnIceCandidate(&candidateSSLTcp);
    131133    });
    132134
Note: See TracChangeset for help on using the changeset viewer.