diff --git a/talk/app/webrtc/webrtcsdp.cc b/talk/app/webrtc/webrtcsdp.cc index 2eb5fb32bd..09e5cbd9c3 100644 --- a/talk/app/webrtc/webrtcsdp.cc +++ b/talk/app/webrtc/webrtcsdp.cc @@ -1720,14 +1720,7 @@ void BuildCandidate(const std::vector& candidates, } if (it->protocol() == cricket::TCP_PROTOCOL_NAME) { - // In case of WebRTC, candidate must be always "active" only. That means - // it should have port number either 0 or 9. - ASSERT(it->address().port() == 0 || - it->address().port() == cricket::DISCARD_PORT); - ASSERT(it->tcptype() == cricket::TCPTYPE_ACTIVE_STR); - // TODO(mallinath) : Uncomment below line once WebRTCSdp capable of - // parsing RFC 6544. - // os << kTcpCandidateType << " " << it->tcptype() << " "; + os << kTcpCandidateType << " " << it->tcptype() << " "; } // Extensions diff --git a/talk/app/webrtc/webrtcsdp_unittest.cc b/talk/app/webrtc/webrtcsdp_unittest.cc index 9f5e1eba6e..3629347d4c 100644 --- a/talk/app/webrtc/webrtcsdp_unittest.cc +++ b/talk/app/webrtc/webrtcsdp_unittest.cc @@ -1631,7 +1631,7 @@ TEST_F(WebRtcSdpTest, SerializeCandidates) { // TODO(mallinath) : Enable this test once WebRTCSdp capable of parsing // RFC 6544. -TEST_F(WebRtcSdpTest, DISABLED_SerializeTcpCandidates) { +TEST_F(WebRtcSdpTest, SerializeTcpCandidates) { Candidate candidate( "", ICE_CANDIDATE_COMPONENT_RTP, "tcp", rtc::SocketAddress("192.168.1.5", 9), kCandidatePriority,