Add pruneTurnPorts to the IOS RTCConfiguration.

BUG=
R=pthatcher@webrtc.org
TBR=tkchin@webrt.org

Review URL: https://codereview.webrtc.org/2120553002 .

Cr-Commit-Position: refs/heads/master@{#13368}
This commit is contained in:
Honghai Zhang
2016-07-01 14:22:17 -07:00
parent 5622c5eae5
commit e2e35ca55d
3 changed files with 10 additions and 1 deletions

View File

@ -44,6 +44,7 @@
config.iceBackupCandidatePairPingInterval = interval;
config.continualGatheringPolicy =
RTCContinualGatheringPolicyGatherContinually;
config.pruneTurnPorts = true;
std::unique_ptr<webrtc::PeerConnectionInterface::RTCConfiguration>
nativeConfig([config createNativeConfiguration]);
@ -68,6 +69,7 @@
EXPECT_EQ(interval, nativeConfig->ice_backup_candidate_pair_ping_interval);
EXPECT_EQ(webrtc::PeerConnectionInterface::GATHER_CONTINUALLY,
nativeConfig->continual_gathering_policy);
EXPECT_EQ(true, nativeConfig->prune_turn_ports);
}
@end