Reland "Remove stopped transceivers at both local and remote SetDescription"
This is a reland of 6f4de80ddddcc05beaced31146ffb753258bc7be The blocking issue in Chromium is fixed. Original change's description: > Remove stopped transceivers at both local and remote SetDescription > > This should ensure that the correct number of senders and receivers > are shown. > > Bug: webtc:11840 > Change-Id: Id57f8f9b1ceb8900abb3f92bcae79e5f0341de15 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/184606 > Commit-Queue: Harald Alvestrand <hta@webrtc.org> > Reviewed-by: Henrik Boström <hbos@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#32158} Bug: webtc:11840 Change-Id: Iae8ca01e3f834694dacb36320858096b26f0996b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185120 Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32181}
This commit is contained in:
committed by
Commit Bot
parent
0ed7f1fab2
commit
936f1af3bb
@ -1555,6 +1555,24 @@ TEST_F(PeerConnectionRtpTestUnifiedPlan,
|
||||
ASSERT_TRUE(caller->ExchangeOfferAnswerWith(callee.get()));
|
||||
}
|
||||
|
||||
TEST_F(PeerConnectionRtpTestUnifiedPlan,
|
||||
StopAndNegotiateCausesTransceiverToDisappear) {
|
||||
auto caller = CreatePeerConnection();
|
||||
auto callee = CreatePeerConnection();
|
||||
auto transceiver = caller->AddTransceiver(cricket::MEDIA_TYPE_AUDIO);
|
||||
ASSERT_TRUE(caller->ExchangeOfferAnswerWith(callee.get()));
|
||||
callee->pc()->GetTransceivers()[0]->StopStandard();
|
||||
ASSERT_TRUE(callee->ExchangeOfferAnswerWith(caller.get()));
|
||||
EXPECT_EQ(RtpTransceiverDirection::kStopped,
|
||||
transceiver->current_direction());
|
||||
EXPECT_EQ(0U, caller->pc()->GetTransceivers().size());
|
||||
EXPECT_EQ(0U, callee->pc()->GetTransceivers().size());
|
||||
EXPECT_EQ(0U, caller->pc()->GetSenders().size());
|
||||
EXPECT_EQ(0U, callee->pc()->GetSenders().size());
|
||||
EXPECT_EQ(0U, caller->pc()->GetReceivers().size());
|
||||
EXPECT_EQ(0U, callee->pc()->GetReceivers().size());
|
||||
}
|
||||
|
||||
// Test that AddTransceiver fails if trying to use unimplemented RTP encoding
|
||||
// parameters with the send_encodings parameters.
|
||||
TEST_F(PeerConnectionRtpTestUnifiedPlan,
|
||||
|
||||
Reference in New Issue
Block a user