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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 TEST_F(RtcpFormatRembTest, TestRembStatus) { | 109 TEST_F(RtcpFormatRembTest, TestRembStatus) { |
110 EXPECT_FALSE(rtcp_sender_->REMB()); | 110 EXPECT_FALSE(rtcp_sender_->REMB()); |
111 rtcp_sender_->SetREMBStatus(true); | 111 rtcp_sender_->SetREMBStatus(true); |
112 EXPECT_TRUE(rtcp_sender_->REMB()); | 112 EXPECT_TRUE(rtcp_sender_->REMB()); |
113 rtcp_sender_->SetREMBStatus(false); | 113 rtcp_sender_->SetREMBStatus(false); |
114 EXPECT_FALSE(rtcp_sender_->REMB()); | 114 EXPECT_FALSE(rtcp_sender_->REMB()); |
115 } | 115 } |
116 | 116 |
117 TEST_F(RtcpFormatRembTest, TestNonCompund) { | 117 TEST_F(RtcpFormatRembTest, TestNonCompund) { |
118 uint32_t SSRC = 456789; | 118 uint32_t SSRC = 456789; |
119 rtcp_sender_->SetRTCPStatus(kRtcpNonCompound); | 119 rtcp_sender_->SetRTCPStatus(RtcpMode::kReducedSize); |
120 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(1, SSRC)); | 120 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(1, SSRC)); |
121 RTCPSender::FeedbackState feedback_state = | 121 RTCPSender::FeedbackState feedback_state = |
122 dummy_rtp_rtcp_impl_->GetFeedbackState(); | 122 dummy_rtp_rtcp_impl_->GetFeedbackState(); |
123 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); | 123 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); |
124 } | 124 } |
125 | 125 |
126 TEST_F(RtcpFormatRembTest, TestCompund) { | 126 TEST_F(RtcpFormatRembTest, TestCompund) { |
127 uint32_t SSRCs[2] = {456789, 98765}; | 127 uint32_t SSRCs[2] = {456789, 98765}; |
128 rtcp_sender_->SetRTCPStatus(kRtcpCompound); | 128 rtcp_sender_->SetRTCPStatus(RtcpMode::kCompound); |
129 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); | 129 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); |
130 RTCPSender::FeedbackState feedback_state = | 130 RTCPSender::FeedbackState feedback_state = |
131 dummy_rtp_rtcp_impl_->GetFeedbackState(); | 131 dummy_rtp_rtcp_impl_->GetFeedbackState(); |
132 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); | 132 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); |
133 } | 133 } |
134 } // namespace | 134 } // namespace |
OLD | NEW |