| Index: webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc
|
| index 3ad333c6b9575270141d65c9813777228ec4aba3..d42a74e6a10d41ddd9b6cb418e7c531c521d8488 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc
|
| @@ -1225,6 +1225,15 @@ TEST_F(RtcpReceiverTest, ReceivesTargetBitrate) {
|
| rtcp::ExtendedReports xr;
|
| xr.SetTargetBitrate(bitrate);
|
|
|
| + // Wrong sender ssrc, target bitrate should be discarded.
|
| + xr.SetSenderSsrc(kSenderSsrc + 1);
|
| + EXPECT_CALL(bitrate_allocation_observer_,
|
| + OnBitrateAllocationUpdated(expected_allocation))
|
| + .Times(0);
|
| + InjectRtcpPacket(xr);
|
| +
|
| + // Set correct ssrc, callback should be called once.
|
| + xr.SetSenderSsrc(kSenderSsrc);
|
| EXPECT_CALL(bitrate_allocation_observer_,
|
| OnBitrateAllocationUpdated(expected_allocation));
|
| InjectRtcpPacket(xr);
|
| @@ -1241,6 +1250,7 @@ TEST_F(RtcpReceiverTest, HandlesIncorrectTargetBitrate) {
|
|
|
| rtcp::ExtendedReports xr;
|
| xr.SetTargetBitrate(bitrate);
|
| + xr.SetSenderSsrc(kSenderSsrc);
|
|
|
| EXPECT_CALL(bitrate_allocation_observer_,
|
| OnBitrateAllocationUpdated(expected_allocation));
|
|
|