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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 // |candidates_|, although |ready_candidates| only includes the candidates | 1279 // |candidates_|, although |ready_candidates| only includes the candidates |
1280 // in |ready_ports|. | 1280 // in |ready_ports|. |
1281 EXPECT_LE(3U, candidates_.size()); | 1281 EXPECT_LE(3U, candidates_.size()); |
1282 const std::vector<Candidate>& ready_candidates = session_->ReadyCandidates(); | 1282 const std::vector<Candidate>& ready_candidates = session_->ReadyCandidates(); |
1283 EXPECT_EQ(3U, ready_candidates.size()); | 1283 EXPECT_EQ(3U, ready_candidates.size()); |
1284 EXPECT_PRED4(HasCandidate, ready_candidates, "local", "udp", kClientAddr); | 1284 EXPECT_PRED4(HasCandidate, ready_candidates, "local", "udp", kClientAddr); |
1285 EXPECT_PRED4(HasCandidate, ready_candidates, "relay", "udp", | 1285 EXPECT_PRED4(HasCandidate, ready_candidates, "relay", "udp", |
1286 rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); | 1286 rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); |
1287 } | 1287 } |
1288 | 1288 |
1289 // Test has an assert error on win_x64_dbg and win_dbg. See: webrtc:6068 | |
1290 #if defined(WEBRTC_WIN) | |
1291 #define MAYBE_TestEachInterfaceHasItsOwnTurnPorts \ | |
1292 DISABLED_TestEachInterfaceHasItsOwnTurnPort | |
1293 #else | |
1294 #define MAYBE_TestEachInterfaceHasItsOwnTurnPorts \ | |
1295 TestEachInterfaceHasItsOwnTurnPorts | |
1296 #endif | |
1297 // Tests that if prune_turn_ports is set, each network interface | 1289 // Tests that if prune_turn_ports is set, each network interface |
1298 // will has its own set of TurnPorts based on their priorities. | 1290 // will has its own set of TurnPorts based on their priorities. |
1299 TEST_F(BasicPortAllocatorTest, MAYBE_TestEachInterfaceHasItsOwnTurnPorts) { | 1291 TEST_F(BasicPortAllocatorTest, TestEachInterfaceHasItsOwnTurnPorts) { |
1300 turn_server_.AddInternalSocket(kTurnTcpIntAddr, PROTO_TCP); | 1292 turn_server_.AddInternalSocket(kTurnTcpIntAddr, PROTO_TCP); |
1301 turn_server_.AddInternalSocket(kTurnUdpIntIPv6Addr, PROTO_UDP); | 1293 turn_server_.AddInternalSocket(kTurnUdpIntIPv6Addr, PROTO_UDP); |
1302 turn_server_.AddInternalSocket(kTurnTcpIntIPv6Addr, PROTO_TCP); | 1294 turn_server_.AddInternalSocket(kTurnTcpIntIPv6Addr, PROTO_TCP); |
1303 // Add two interfaces both having IPv4 and IPv6 addresses. | 1295 // Add two interfaces both having IPv4 and IPv6 addresses. |
1304 AddInterface(kClientAddr, "net1", rtc::ADAPTER_TYPE_WIFI); | 1296 AddInterface(kClientAddr, "net1", rtc::ADAPTER_TYPE_WIFI); |
1305 AddInterface(kClientIPv6Addr, "net1", rtc::ADAPTER_TYPE_WIFI); | 1297 AddInterface(kClientIPv6Addr, "net1", rtc::ADAPTER_TYPE_WIFI); |
1306 AddInterface(kClientAddr2, "net2", rtc::ADAPTER_TYPE_CELLULAR); | 1298 AddInterface(kClientAddr2, "net2", rtc::ADAPTER_TYPE_CELLULAR); |
1307 AddInterface(kClientIPv6Addr2, "net2", rtc::ADAPTER_TYPE_CELLULAR); | 1299 AddInterface(kClientIPv6Addr2, "net2", rtc::ADAPTER_TYPE_CELLULAR); |
1308 allocator_.reset(new BasicPortAllocator(&network_manager_)); | 1300 allocator_.reset(new BasicPortAllocator(&network_manager_)); |
1309 allocator_->SetConfiguration(allocator_->stun_servers(), | 1301 allocator_->SetConfiguration(allocator_->stun_servers(), |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1708 for (const Candidate& candidate : candidates) { | 1700 for (const Candidate& candidate : candidates) { |
1709 // Expect only relay candidates now that the filter is applied. | 1701 // Expect only relay candidates now that the filter is applied. |
1710 EXPECT_EQ(std::string(RELAY_PORT_TYPE), candidate.type()); | 1702 EXPECT_EQ(std::string(RELAY_PORT_TYPE), candidate.type()); |
1711 // Expect that the raddr is emptied due to the CF_RELAY filter. | 1703 // Expect that the raddr is emptied due to the CF_RELAY filter. |
1712 EXPECT_EQ(candidate.related_address(), | 1704 EXPECT_EQ(candidate.related_address(), |
1713 rtc::EmptySocketAddressWithFamily(candidate.address().family())); | 1705 rtc::EmptySocketAddressWithFamily(candidate.address().family())); |
1714 } | 1706 } |
1715 } | 1707 } |
1716 | 1708 |
1717 } // namespace cricket | 1709 } // namespace cricket |
OLD | NEW |