Adding IceConfig option to assume TURN/TURN candidate pairs will work.

This will allow media to be sent on these pairs before a binding
response is received, shortening call setup time. However, this is only
possible if the TURN servers don't require CreatePermission when
communicating with each other.

R=honghaiz@webrtc.org, pthatcher@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2063823008
Cr-Commit-Position: refs/heads/master@{#13268}
This commit is contained in:
deadbeef
2016-06-22 17:14:15 -07:00
committed by Commit bot
parent e7edea9759
commit 14f97f5bc6
6 changed files with 786 additions and 673 deletions

View File

@ -2247,7 +2247,7 @@ TEST_F(WebRtcSessionTest,
candidates = local_desc->candidates(kMediaContentIndex0);
size_t num_local_candidates = candidates->count();
// Enable Continual Gathering
session_->SetIceConfig(cricket::IceConfig(-1, -1, true, false, -1));
session_->SetIceConfig(cricket::IceConfig(-1, -1, true, false, -1, true));
// Bring down the network interface to trigger candidate removals.
RemoveInterface(rtc::SocketAddress(kClientAddrHost1, kClientAddrPort));
// Verify that all local candidates are removed.