| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2114 channel->selected_connection(); | 2114 channel->selected_connection(); |
| 2115 for (cricket::Connection* conn : channel->connections()) { | 2115 for (cricket::Connection* conn : channel->connections()) { |
| 2116 if (conn != selected_connection) { | 2116 if (conn != selected_connection) { |
| 2117 conn->Destroy(); | 2117 conn->Destroy(); |
| 2118 } | 2118 } |
| 2119 } | 2119 } |
| 2120 } | 2120 } |
| 2121 }; | 2121 }; |
| 2122 | 2122 |
| 2123 // Test that we can establish connectivity when both peers are multihomed. | 2123 // Test that we can establish connectivity when both peers are multihomed. |
| 2124 TEST_F(P2PTransportChannelMultihomedTest, DISABLED_TestBasic) { | 2124 TEST_F(P2PTransportChannelMultihomedTest, TestBasic) { |
| 2125 AddAddress(0, kPublicAddrs[0]); | 2125 AddAddress(0, kPublicAddrs[0]); |
| 2126 AddAddress(0, kAlternateAddrs[0]); | 2126 AddAddress(0, kAlternateAddrs[0]); |
| 2127 AddAddress(1, kPublicAddrs[1]); | 2127 AddAddress(1, kPublicAddrs[1]); |
| 2128 AddAddress(1, kAlternateAddrs[1]); | 2128 AddAddress(1, kAlternateAddrs[1]); |
| 2129 Test(kLocalUdpToLocalUdp); | 2129 Test(kLocalUdpToLocalUdp); |
| 2130 } | 2130 } |
| 2131 | 2131 |
| 2132 // Test that we can quickly switch links if an interface goes down. | 2132 // Test that we can quickly switch links if an interface goes down. |
| 2133 // The controlled side has two interfaces and one will die. | 2133 // The controlled side has two interfaces and one will die. |
| 2134 TEST_F(P2PTransportChannelMultihomedTest, TestFailoverControlledSide) { | 2134 TEST_F(P2PTransportChannelMultihomedTest, TestFailoverControlledSide) { |
| (...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4274 | 4274 |
| 4275 // TCP Relay/Relay is the next. | 4275 // TCP Relay/Relay is the next. |
| 4276 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, | 4276 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, |
| 4277 TCP_PROTOCOL_NAME); | 4277 TCP_PROTOCOL_NAME); |
| 4278 | 4278 |
| 4279 // Finally, Local/Relay will be pinged. | 4279 // Finally, Local/Relay will be pinged. |
| 4280 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); | 4280 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); |
| 4281 } | 4281 } |
| 4282 | 4282 |
| 4283 } // namespace cricket { | 4283 } // namespace cricket { |
| OLD | NEW |