| Index: webrtc/p2p/base/turnport_unittest.cc
|
| diff --git a/webrtc/p2p/base/turnport_unittest.cc b/webrtc/p2p/base/turnport_unittest.cc
|
| index a90ea032b7498758269e724e58c358ddb67dfbc8..b5fab3993edd8933a7a89c7f1e1aa6243b07d069 100644
|
| --- a/webrtc/p2p/base/turnport_unittest.cc
|
| +++ b/webrtc/p2p/base/turnport_unittest.cc
|
| @@ -201,7 +201,11 @@ class TurnPortTest : public testing::Test,
|
| kIceUfrag1, kIcePwd1,
|
| server_address, credentials, 0,
|
| std::string()));
|
| + // Set ICE protocol type to ICEPROTO_RFC5245, as port by default will be
|
| + // in Hybrid mode. Protocol type is necessary to send correct type STUN ping
|
| + // messages.
|
| // This TURN port will be the controlling.
|
| + turn_port_->SetIceProtocolType(cricket::ICEPROTO_RFC5245);
|
| turn_port_->SetIceRole(cricket::ICEROLE_CONTROLLING);
|
| ConnectSignals();
|
| }
|
| @@ -219,7 +223,11 @@ class TurnPortTest : public testing::Test,
|
| kIceUfrag1, kIcePwd1,
|
| server_address, credentials, 0,
|
| origin));
|
| + // Set ICE protocol type to ICEPROTO_RFC5245, as port by default will be
|
| + // in Hybrid mode. Protocol type is necessary to send correct type STUN ping
|
| + // messages.
|
| // This TURN port will be the controlling.
|
| + turn_port_->SetIceProtocolType(cricket::ICEPROTO_RFC5245);
|
| turn_port_->SetIceRole(cricket::ICEROLE_CONTROLLING);
|
| ConnectSignals();
|
| }
|
| @@ -241,7 +249,11 @@ class TurnPortTest : public testing::Test,
|
| turn_port_.reset(cricket::TurnPort::Create(
|
| main_, &socket_factory_, &network_, socket_.get(),
|
| kIceUfrag1, kIcePwd1, server_address, credentials, 0, std::string()));
|
| + // Set ICE protocol type to ICEPROTO_RFC5245, as port by default will be
|
| + // in Hybrid mode. Protocol type is necessary to send correct type STUN ping
|
| + // messages.
|
| // This TURN port will be the controlling.
|
| + turn_port_->SetIceProtocolType(cricket::ICEPROTO_RFC5245);
|
| turn_port_->SetIceRole(cricket::ICEROLE_CONTROLLING);
|
| ConnectSignals();
|
| }
|
| @@ -261,7 +273,9 @@ class TurnPortTest : public testing::Test,
|
| kLocalAddr2.ipaddr(), 0, 0,
|
| kIceUfrag2, kIcePwd2,
|
| std::string(), false));
|
| + // Set protocol type to RFC5245, as turn port is also in same mode.
|
| // UDP port will be controlled.
|
| + udp_port_->SetIceProtocolType(cricket::ICEPROTO_RFC5245);
|
| udp_port_->SetIceRole(cricket::ICEROLE_CONTROLLED);
|
| udp_port_->SignalPortComplete.connect(
|
| this, &TurnPortTest::OnUdpPortComplete);
|
|
|