| Index: webrtc/p2p/base/transportcontroller_unittest.cc
|
| diff --git a/webrtc/p2p/base/transportcontroller_unittest.cc b/webrtc/p2p/base/transportcontroller_unittest.cc
|
| index c78352591b09ca49ce4ed39582bd538a010a4093..5e100cbee89d88d30733f78c2c456467369e1297 100644
|
| --- a/webrtc/p2p/base/transportcontroller_unittest.cc
|
| +++ b/webrtc/p2p/base/transportcontroller_unittest.cc
|
| @@ -134,6 +134,14 @@ class TransportControllerTest : public testing::Test,
|
| channel2->SetConnectionCount(1);
|
| }
|
|
|
| + cricket::IceConfig CreateIceConfig(int receiving_timeout_ms,
|
| + bool continue_getting_ports) {
|
| + cricket::IceConfig config;
|
| + config.receiving_timeout_ms = receiving_timeout_ms;
|
| + config.continue_getting_ports = continue_getting_ports;
|
| + return config;
|
| + }
|
| +
|
| protected:
|
| void OnConnectionState(IceConnectionState state) {
|
| if (!signaling_thread_->IsCurrent()) {
|
| @@ -189,17 +197,19 @@ class TransportControllerTest : public testing::Test,
|
| bool signaled_on_non_signaling_thread_ = false;
|
| };
|
|
|
| -TEST_F(TransportControllerTest, TestSetIceReceivingTimeout) {
|
| +TEST_F(TransportControllerTest, TestSetIceConfig) {
|
| FakeTransportChannel* channel1 = CreateChannel("audio", 1);
|
| ASSERT_NE(nullptr, channel1);
|
|
|
| - transport_controller_->SetIceConnectionReceivingTimeout(1000);
|
| + transport_controller_->SetIceConfig(CreateIceConfig(1000, true));
|
| EXPECT_EQ(1000, channel1->receiving_timeout());
|
| + EXPECT_TRUE(channel1->continue_getting_ports());
|
|
|
| // Test that value stored in controller is applied to new channels.
|
| FakeTransportChannel* channel2 = CreateChannel("video", 1);
|
| ASSERT_NE(nullptr, channel2);
|
| EXPECT_EQ(1000, channel2->receiving_timeout());
|
| + EXPECT_TRUE(channel2->continue_getting_ports());
|
| }
|
|
|
| TEST_F(TransportControllerTest, TestSetSslMaxProtocolVersion) {
|
|
|