Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: webrtc/p2p/client/basicportallocator_unittest.cc

Issue 2011593003: Disabled BasicPortAllocatorTest.TestDisableUdpTurn (flaky) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 ResetWithStunServerAndNat(kStunAddr); 765 ResetWithStunServerAndNat(kStunAddr);
766 EXPECT_TRUE(CreateSession(ICE_CANDIDATE_COMPONENT_RTP)); 766 EXPECT_TRUE(CreateSession(ICE_CANDIDATE_COMPONENT_RTP));
767 session_->set_flags(PORTALLOCATOR_DISABLE_DEFAULT_LOCAL_CANDIDATE); 767 session_->set_flags(PORTALLOCATOR_DISABLE_DEFAULT_LOCAL_CANDIDATE);
768 // Expect to see 2 ports: STUN and TCP ports, and single STUN candidate. 768 // Expect to see 2 ports: STUN and TCP ports, and single STUN candidate.
769 CheckDisableAdapterEnumeration(2U, rtc::IPAddress(), kNatUdpAddr.ipaddr(), 769 CheckDisableAdapterEnumeration(2U, rtc::IPAddress(), kNatUdpAddr.ipaddr(),
770 rtc::IPAddress(), rtc::IPAddress()); 770 rtc::IPAddress(), rtc::IPAddress());
771 } 771 }
772 772
773 // Test that we disable relay over UDP, and only TCP is used when connecting to 773 // Test that we disable relay over UDP, and only TCP is used when connecting to
774 // the relay server. 774 // the relay server.
775 TEST_F(BasicPortAllocatorTest, TestDisableUdpTurn) { 775 TEST_F(BasicPortAllocatorTest, DISABLED_TestDisableUdpTurn) {
776 turn_server_.AddInternalSocket(kTurnTcpIntAddr, PROTO_TCP); 776 turn_server_.AddInternalSocket(kTurnTcpIntAddr, PROTO_TCP);
777 AddInterface(kClientAddr); 777 AddInterface(kClientAddr);
778 ResetWithStunServerAndNat(kStunAddr); 778 ResetWithStunServerAndNat(kStunAddr);
779 AddTurnServers(kTurnUdpIntAddr, kTurnTcpIntAddr); 779 AddTurnServers(kTurnUdpIntAddr, kTurnTcpIntAddr);
780 EXPECT_TRUE(CreateSession(ICE_CANDIDATE_COMPONENT_RTP)); 780 EXPECT_TRUE(CreateSession(ICE_CANDIDATE_COMPONENT_RTP));
781 session_->set_flags(PORTALLOCATOR_DISABLE_UDP_RELAY | 781 session_->set_flags(PORTALLOCATOR_DISABLE_UDP_RELAY |
782 PORTALLOCATOR_DISABLE_UDP | PORTALLOCATOR_DISABLE_STUN | 782 PORTALLOCATOR_DISABLE_UDP | PORTALLOCATOR_DISABLE_STUN |
783 PORTALLOCATOR_ENABLE_SHARED_SOCKET); 783 PORTALLOCATOR_ENABLE_SHARED_SOCKET);
784 784
785 session_->StartGettingPorts(); 785 session_->StartGettingPorts();
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 for (const Candidate& candidate : candidates) { 1473 for (const Candidate& candidate : candidates) {
1474 // Expect only relay candidates now that the filter is applied. 1474 // Expect only relay candidates now that the filter is applied.
1475 EXPECT_EQ(std::string(RELAY_PORT_TYPE), candidate.type()); 1475 EXPECT_EQ(std::string(RELAY_PORT_TYPE), candidate.type());
1476 // Expect that the raddr is emptied due to the CF_RELAY filter. 1476 // Expect that the raddr is emptied due to the CF_RELAY filter.
1477 EXPECT_EQ(candidate.related_address(), 1477 EXPECT_EQ(candidate.related_address(),
1478 rtc::EmptySocketAddressWithFamily(candidate.address().family())); 1478 rtc::EmptySocketAddressWithFamily(candidate.address().family()));
1479 } 1479 }
1480 } 1480 }
1481 1481
1482 } // namespace cricket 1482 } // namespace cricket
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698