| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 TEST_F(RtcpFormatRembTest, TestRembStatus) { | 108 TEST_F(RtcpFormatRembTest, TestRembStatus) { |
| 109 EXPECT_FALSE(rtcp_sender_->REMB()); | 109 EXPECT_FALSE(rtcp_sender_->REMB()); |
| 110 rtcp_sender_->SetREMBStatus(true); | 110 rtcp_sender_->SetREMBStatus(true); |
| 111 EXPECT_TRUE(rtcp_sender_->REMB()); | 111 EXPECT_TRUE(rtcp_sender_->REMB()); |
| 112 rtcp_sender_->SetREMBStatus(false); | 112 rtcp_sender_->SetREMBStatus(false); |
| 113 EXPECT_FALSE(rtcp_sender_->REMB()); | 113 EXPECT_FALSE(rtcp_sender_->REMB()); |
| 114 } | 114 } |
| 115 | 115 |
| 116 TEST_F(RtcpFormatRembTest, TestNonCompund) { | 116 TEST_F(RtcpFormatRembTest, TestNonCompund) { |
| 117 uint32_t SSRC = 456789; | 117 uint32_t SSRC = 456789; |
| 118 rtcp_sender_->SetRTCPStatus(kRtcpNonCompound); | 118 rtcp_sender_->SetRTCPStatus(kRtcpReducedSize); |
| 119 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(1, SSRC)); | 119 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(1, SSRC)); |
| 120 RTCPSender::FeedbackState feedback_state = | 120 RTCPSender::FeedbackState feedback_state = |
| 121 dummy_rtp_rtcp_impl_->GetFeedbackState(); | 121 dummy_rtp_rtcp_impl_->GetFeedbackState(); |
| 122 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); | 122 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); |
| 123 } | 123 } |
| 124 | 124 |
| 125 TEST_F(RtcpFormatRembTest, TestCompund) { | 125 TEST_F(RtcpFormatRembTest, TestCompund) { |
| 126 uint32_t SSRCs[2] = {456789, 98765}; | 126 uint32_t SSRCs[2] = {456789, 98765}; |
| 127 rtcp_sender_->SetRTCPStatus(kRtcpCompound); | 127 rtcp_sender_->SetRTCPStatus(kRtcpCompound); |
| 128 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); | 128 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); |
| 129 RTCPSender::FeedbackState feedback_state = | 129 RTCPSender::FeedbackState feedback_state = |
| 130 dummy_rtp_rtcp_impl_->GetFeedbackState(); | 130 dummy_rtp_rtcp_impl_->GetFeedbackState(); |
| 131 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); | 131 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); |
| 132 } | 132 } |
| 133 } // namespace | 133 } // namespace |
| OLD | NEW |