| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 EXPECT_EQ(0, module_->SetTransportOverhead(false, false, 0)); | 132 EXPECT_EQ(0, module_->SetTransportOverhead(false, false, 0)); |
| 133 EXPECT_EQ(1234 - 20 - 8, module_->MaxPayloadLength()); | 133 EXPECT_EQ(1234 - 20 - 8, module_->MaxPayloadLength()); |
| 134 } | 134 } |
| 135 | 135 |
| 136 TEST_F(RtpRtcpAPITest, SSRC) { | 136 TEST_F(RtpRtcpAPITest, SSRC) { |
| 137 module_->SetSSRC(test_ssrc_); | 137 module_->SetSSRC(test_ssrc_); |
| 138 EXPECT_EQ(test_ssrc_, module_->SSRC()); | 138 EXPECT_EQ(test_ssrc_, module_->SSRC()); |
| 139 } | 139 } |
| 140 | 140 |
| 141 TEST_F(RtpRtcpAPITest, RTCP) { | 141 TEST_F(RtpRtcpAPITest, RTCP) { |
| 142 EXPECT_EQ(kRtcpOff, module_->RTCP()); | 142 EXPECT_EQ(RtcpMode::kOff, module_->RTCP()); |
| 143 module_->SetRTCPStatus(kRtcpCompound); | 143 module_->SetRTCPStatus(RtcpMode::kCompound); |
| 144 EXPECT_EQ(kRtcpCompound, module_->RTCP()); | 144 EXPECT_EQ(RtcpMode::kCompound, module_->RTCP()); |
| 145 | 145 |
| 146 EXPECT_EQ(0, module_->SetCNAME("john.doe@test.test")); | 146 EXPECT_EQ(0, module_->SetCNAME("john.doe@test.test")); |
| 147 | 147 |
| 148 EXPECT_FALSE(module_->TMMBR()); | 148 EXPECT_FALSE(module_->TMMBR()); |
| 149 module_->SetTMMBRStatus(true); | 149 module_->SetTMMBRStatus(true); |
| 150 EXPECT_TRUE(module_->TMMBR()); | 150 EXPECT_TRUE(module_->TMMBR()); |
| 151 module_->SetTMMBRStatus(false); | 151 module_->SetTMMBRStatus(false); |
| 152 EXPECT_FALSE(module_->TMMBR()); | 152 EXPECT_FALSE(module_->TMMBR()); |
| 153 | 153 |
| 154 EXPECT_EQ(kNackOff, rtp_receiver_->NACK()); | 154 EXPECT_EQ(kNackOff, rtp_receiver_->NACK()); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 178 RTPHeader rtx_header; | 178 RTPHeader rtx_header; |
| 179 rtx_header.ssrc = kRtxSsrc; | 179 rtx_header.ssrc = kRtxSsrc; |
| 180 rtx_header.payloadType = kRtxPayloadType; | 180 rtx_header.payloadType = kRtxPayloadType; |
| 181 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); | 181 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); |
| 182 rtx_header.ssrc = 0; | 182 rtx_header.ssrc = 0; |
| 183 EXPECT_FALSE(rtp_payload_registry_->IsRtx(rtx_header)); | 183 EXPECT_FALSE(rtp_payload_registry_->IsRtx(rtx_header)); |
| 184 rtx_header.ssrc = kRtxSsrc; | 184 rtx_header.ssrc = kRtxSsrc; |
| 185 rtx_header.payloadType = 0; | 185 rtx_header.payloadType = 0; |
| 186 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); | 186 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); |
| 187 } | 187 } |
| OLD | NEW |