| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 RtcpCallback* myRTCPFeedback2; | 184 RtcpCallback* myRTCPFeedback2; |
| 185 | 185 |
| 186 uint32_t test_ssrc; | 186 uint32_t test_ssrc; |
| 187 uint32_t test_timestamp; | 187 uint32_t test_timestamp; |
| 188 uint16_t test_sequence_number; | 188 uint16_t test_sequence_number; |
| 189 std::vector<uint32_t> test_csrcs; | 189 std::vector<uint32_t> test_csrcs; |
| 190 SimulatedClock fake_clock; | 190 SimulatedClock fake_clock; |
| 191 RateLimiter retransmission_rate_limiter_; | 191 RateLimiter retransmission_rate_limiter_; |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 TEST_F(RtpRtcpRtcpTest, RTCP_PLI_RPSI) { | |
| 195 EXPECT_EQ(0, module1->SendRTCPReferencePictureSelection(kTestPictureId)); | |
| 196 EXPECT_EQ(0, module1->SendRTCPSliceLossIndication(kSliPictureId)); | |
| 197 } | |
| 198 | |
| 199 TEST_F(RtpRtcpRtcpTest, RTCP_CNAME) { | 194 TEST_F(RtpRtcpRtcpTest, RTCP_CNAME) { |
| 200 uint32_t testOfCSRC[webrtc::kRtpCsrcSize]; | 195 uint32_t testOfCSRC[webrtc::kRtpCsrcSize]; |
| 201 EXPECT_EQ(2, rtp_receiver2_->CSRCs(testOfCSRC)); | 196 EXPECT_EQ(2, rtp_receiver2_->CSRCs(testOfCSRC)); |
| 202 EXPECT_EQ(test_csrcs[0], testOfCSRC[0]); | 197 EXPECT_EQ(test_csrcs[0], testOfCSRC[0]); |
| 203 EXPECT_EQ(test_csrcs[1], testOfCSRC[1]); | 198 EXPECT_EQ(test_csrcs[1], testOfCSRC[1]); |
| 204 | 199 |
| 205 // Set cname of mixed. | 200 // Set cname of mixed. |
| 206 EXPECT_EQ(0, module1->AddMixedCNAME(test_csrcs[0], "john@192.168.0.1")); | 201 EXPECT_EQ(0, module1->AddMixedCNAME(test_csrcs[0], "john@192.168.0.1")); |
| 207 EXPECT_EQ(0, module1->AddMixedCNAME(test_csrcs[1], "jane@192.168.0.2")); | 202 EXPECT_EQ(0, module1->AddMixedCNAME(test_csrcs[1], "jane@192.168.0.2")); |
| 208 | 203 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); | 250 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); |
| 256 | 251 |
| 257 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); | 252 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); |
| 258 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); | 253 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); |
| 259 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); | 254 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); |
| 260 EXPECT_EQ(0u, report_blocks[0].fractionLost); | 255 EXPECT_EQ(0u, report_blocks[0].fractionLost); |
| 261 } | 256 } |
| 262 | 257 |
| 263 } // namespace | 258 } // namespace |
| 264 } // namespace webrtc | 259 } // namespace webrtc |
| OLD | NEW |