Simpliy RtcpTransceiver::SendImmediateFeedback signature
and add implementation comment Bug: webrtc:8239 Change-Id: Id24937018d386e386b8241aca8f5d686e7cc527a Reviewed-on: https://webrtc-review.googlesource.com/26600 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20925}
This commit is contained in:

committed by
Commit Bot

parent
2723fb162c
commit
8d19e03e95
@ -476,7 +476,7 @@ TEST(RtcpTransceiverImplTest, SendsNack) {
|
||||
|
||||
TEST(RtcpTransceiverImplTest, RequestKeyFrameWithPictureLossIndication) {
|
||||
const uint32_t kSenderSsrc = 1234;
|
||||
const uint32_t kRemoteSsrcs[] = {4321, 5321};
|
||||
const uint32_t kRemoteSsrc = 4321;
|
||||
RtcpTransceiverConfig config;
|
||||
config.feedback_ssrc = kSenderSsrc;
|
||||
config.schedule_periodic_compound_packets = false;
|
||||
@ -485,14 +485,12 @@ TEST(RtcpTransceiverImplTest, RequestKeyFrameWithPictureLossIndication) {
|
||||
config.outgoing_transport = &transport;
|
||||
RtcpTransceiverImpl rtcp_transceiver(config);
|
||||
|
||||
rtcp_transceiver.SendPictureLossIndication(kRemoteSsrcs);
|
||||
rtcp_transceiver.SendPictureLossIndication(kRemoteSsrc);
|
||||
|
||||
// Expect a pli packet per ssrc in the sent single compound packet.
|
||||
EXPECT_EQ(transport.num_packets(), 1);
|
||||
EXPECT_EQ(rtcp_parser.pli()->num_packets(), 2);
|
||||
EXPECT_EQ(rtcp_parser.pli()->num_packets(), 1);
|
||||
EXPECT_EQ(rtcp_parser.pli()->sender_ssrc(), kSenderSsrc);
|
||||
// test::RtcpPacketParser overwrites first pli packet with second one.
|
||||
EXPECT_EQ(rtcp_parser.pli()->media_ssrc(), kRemoteSsrcs[1]);
|
||||
EXPECT_EQ(rtcp_parser.pli()->media_ssrc(), kRemoteSsrc);
|
||||
}
|
||||
|
||||
TEST(RtcpTransceiverImplTest, RequestKeyFrameWithFullIntraRequest) {
|
||||
|
Reference in New Issue
Block a user