Cleanup RtcpSender from legacy functionality
Reduce amount of dynamic memory used to generate rtcp message Remove option to request several types of rtcp message as unused Deduplicated PacketContainer and PacketSender as constructs to create packets Bug: None Change-Id: Ib2e20a72a9bd73a441ae6b72a13e18ab5885f5c8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/203261 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33068}
This commit is contained in:
committed by
Commit Bot
parent
54fb32a15e
commit
ded6636cf4
@ -648,21 +648,6 @@ TEST_F(RtcpSenderTest, SendsTmmbnIfSetAndEmpty) {
|
||||
EXPECT_EQ(0U, parser()->tmmbn()->items().size());
|
||||
}
|
||||
|
||||
TEST_F(RtcpSenderTest, SendCompoundPliRemb) {
|
||||
const int kBitrate = 261011;
|
||||
auto rtcp_sender = CreateRtcpSender(GetDefaultConfig());
|
||||
std::vector<uint32_t> ssrcs;
|
||||
ssrcs.push_back(kRemoteSsrc);
|
||||
rtcp_sender->SetRTCPStatus(RtcpMode::kCompound);
|
||||
rtcp_sender->SetRemb(kBitrate, ssrcs);
|
||||
std::set<RTCPPacketType> packet_types;
|
||||
packet_types.insert(kRtcpRemb);
|
||||
packet_types.insert(kRtcpPli);
|
||||
EXPECT_EQ(0, rtcp_sender->SendCompoundRTCP(feedback_state(), packet_types));
|
||||
EXPECT_EQ(1, parser()->remb()->num_packets());
|
||||
EXPECT_EQ(1, parser()->pli()->num_packets());
|
||||
}
|
||||
|
||||
// This test is written to verify that BYE is always the last packet
|
||||
// type in a RTCP compoud packet. The rtcp_sender is recreated with
|
||||
// mock_transport, which is used to check for whether BYE at the end
|
||||
|
||||
Reference in New Issue
Block a user