Reland "Implement transceiver.stop()"
This is a reland of 11dc6571cb4ff3e71dee1557dfff8d9076e108d3 One fix that makes Web Platform Tests pass in debug mode is applied. Original change's description: > Implement transceiver.stop() > > This adds RtpTransceiver.StopStandard(), which behaves according to > the specification at > https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver-stop > > It modifies RTCPeerConnection.getTransceivers() to return only > transceivers that have not been stopped. > > Rebase of armax' https://webrtc-review.googlesource.com/c/src/+/172762 > > Bug: chromium:980879 > Change-Id: I7d383ee874ccc0a006fdcf280496b5d4235425ce > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/180580 > Reviewed-by: Kári Helgason <kthelgason@webrtc.org> > Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> > Reviewed-by: Guido Urdaneta <guidou@webrtc.org> > Commit-Queue: Harald Alvestrand <hta@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#31893} Bug: chromium:980879 Change-Id: Ide31d929ac5ea118d83fdf6a35a592af23f7dfa7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/181263 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Guido Urdaneta <guidou@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31907}
This commit is contained in:
committed by
Commit Bot
parent
f867ba8b5d
commit
6060df5948
@ -45,7 +45,7 @@ TEST(RtpTransceiverTest, CannotSetChannelOnStoppedTransceiver) {
|
||||
EXPECT_EQ(&channel1, transceiver.channel());
|
||||
|
||||
// Stop the transceiver.
|
||||
transceiver.Stop();
|
||||
transceiver.StopInternal();
|
||||
EXPECT_EQ(&channel1, transceiver.channel());
|
||||
|
||||
cricket::MockChannelInterface channel2;
|
||||
@ -71,7 +71,7 @@ TEST(RtpTransceiverTest, CanUnsetChannelOnStoppedTransceiver) {
|
||||
EXPECT_EQ(&channel, transceiver.channel());
|
||||
|
||||
// Stop the transceiver.
|
||||
transceiver.Stop();
|
||||
transceiver.StopInternal();
|
||||
EXPECT_EQ(&channel, transceiver.channel());
|
||||
|
||||
// Set the channel to |nullptr|.
|
||||
|
||||
Reference in New Issue
Block a user