aboutsummaryrefslogtreecommitdiff
path: root/pc/peerconnection_ice_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pc/peerconnection_ice_unittest.cc')
-rw-r--r--pc/peerconnection_ice_unittest.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/pc/peerconnection_ice_unittest.cc b/pc/peerconnection_ice_unittest.cc
index c19e31d0a1..e8f450fe9f 100644
--- a/pc/peerconnection_ice_unittest.cc
+++ b/pc/peerconnection_ice_unittest.cc
@@ -398,25 +398,6 @@ TEST_P(PeerConnectionIceTest, CannotAddCandidateWhenRemoteDescriptionNotSet) {
EXPECT_FALSE(caller->pc()->AddIceCandidate(&jsep_candidate));
}
-// Should be able to add a candidate immediately after setting a remote offer,
-// even if an answer hasn't been created yet.
-TEST_P(PeerConnectionIceTest, CanAddCandidateWhenLocalDescriptionNotSet) {
- const SocketAddress kCallerAddress("1.1.1.1", 0);
-
- auto caller = CreatePeerConnectionWithAudioVideo();
- auto callee = CreatePeerConnectionWithAudioVideo();
- caller->network()->AddInterface(kCallerAddress);
-
- // Apply offer, but not answer.
- ASSERT_TRUE(callee->SetRemoteDescription(caller->CreateOfferAndSetAsLocal()));
-
- // Wait for gathering to finish and try adding a candidate from the caller.
- EXPECT_TRUE_WAIT(caller->IsIceGatheringDone(), kIceCandidatesTimeout);
- ASSERT_LT(0u, caller->observer()->GetCandidatesByMline(0).size());
- EXPECT_TRUE(callee->pc()->AddIceCandidate(
- caller->observer()->GetCandidatesByMline(0)[0]));
-}
-
TEST_P(PeerConnectionIceTest, DuplicateIceCandidateIgnoredWhenAdded) {
const SocketAddress kCalleeAddress("1.1.1.1", 1111);