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

Unified Diff: webrtc/p2p/base/p2ptransportchannel_unittest.cc

Issue 2090833002: Revert of Do not delete a connection in the turn port with permission error or refresh error. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.cc ('k') | webrtc/p2p/base/port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/p2ptransportchannel_unittest.cc
diff --git a/webrtc/p2p/base/p2ptransportchannel_unittest.cc b/webrtc/p2p/base/p2ptransportchannel_unittest.cc
index 87be379ffbe22ba20addfdd18f13a5cde682456b..e5e63a3fa0c23d212a17eccb3c8dd7915c4fa49f 100644
--- a/webrtc/p2p/base/p2ptransportchannel_unittest.cc
+++ b/webrtc/p2p/base/p2ptransportchannel_unittest.cc
@@ -2278,24 +2278,6 @@
EXPECT_EQ(conn2, FindNextPingableConnectionAndPingIt(&ch));
}
-TEST_F(P2PTransportChannelPingTest, TestFailedConnectionNotPingable) {
- cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
- cricket::P2PTransportChannel ch("Do not ping failed connections", 1, &pa);
- PrepareChannel(&ch);
- ch.Connect();
- ch.MaybeStartGathering();
- ch.AddRemoteCandidate(CreateHostCandidate("1.1.1.1", 1, 1));
-
- cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
- ASSERT_TRUE(conn1 != nullptr);
-
- EXPECT_EQ(conn1, ch.FindNextPingableConnection());
- conn1->Prune(); // A pruned connection may still be pingable.
- EXPECT_EQ(conn1, ch.FindNextPingableConnection());
- conn1->FailAndPrune();
- EXPECT_TRUE(nullptr == ch.FindNextPingableConnection());
-}
-
TEST_F(P2PTransportChannelPingTest, TestSignalStateChanged) {
cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
cricket::P2PTransportChannel ch("state change", 1, &pa);
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.cc ('k') | webrtc/p2p/base/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698