AcmReceiver: Ask NetEq to delete all decoders at once instead of one by one
It requires a new NetEq method, but it can no longer fail. And we no longer need to use AcmReceiver::decoders_, which we're trying to eliminate. (This is a re-land of https://codereview.webrtc.org/2342313002.) BUG=webrtc:5801 Review-Url: https://codereview.webrtc.org/2348233002 Cr-Commit-Position: refs/heads/master@{#14304}
This commit is contained in:
@ -230,6 +230,12 @@ TEST_F(NetEqImplTest, RemovePayloadType) {
|
||||
EXPECT_EQ(NetEq::kFail, neteq_->RemovePayloadType(rtp_payload_type));
|
||||
}
|
||||
|
||||
TEST_F(NetEqImplTest, RemoveAllPayloadTypes) {
|
||||
CreateInstance();
|
||||
EXPECT_CALL(*mock_decoder_database_, RemoveAll()).WillOnce(Return());
|
||||
neteq_->RemoveAllPayloadTypes();
|
||||
}
|
||||
|
||||
TEST_F(NetEqImplTest, InsertPacket) {
|
||||
CreateInstance();
|
||||
const size_t kPayloadLength = 100;
|
||||
|
||||
Reference in New Issue
Block a user