| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 std::set<uint32_t> ssrcs; | 407 std::set<uint32_t> ssrcs; |
| 408 ssrcs.insert(kSourceSsrc); | 408 ssrcs.insert(kSourceSsrc); |
| 409 rtcp_receiver_->SetSsrcs(kSourceSsrc, ssrcs); | 409 rtcp_receiver_->SetSsrcs(kSourceSsrc, ssrcs); |
| 410 | 410 |
| 411 // No report block received. | 411 // No report block received. |
| 412 EXPECT_EQ( | 412 EXPECT_EQ( |
| 413 -1, rtcp_receiver_->RTT(kSenderSsrc, nullptr, nullptr, nullptr, nullptr)); | 413 -1, rtcp_receiver_->RTT(kSenderSsrc, nullptr, nullptr, nullptr, nullptr)); |
| 414 | 414 |
| 415 rtcp::ReportBlock rb; | 415 rtcp::ReportBlock rb; |
| 416 rb.To(kSourceSsrc); | 416 rb.To(kSourceSsrc); |
| 417 rb.WithLastSr(0x43211234); |
| 417 rtcp::ReceiverReport rr; | 418 rtcp::ReceiverReport rr; |
| 418 rr.From(kSenderSsrc); | 419 rr.From(kSenderSsrc); |
| 419 rr.WithReportBlock(rb); | 420 rr.WithReportBlock(rb); |
| 420 rtc::Buffer packet = rr.Build(); | 421 rtc::Buffer packet = rr.Build(); |
| 421 EXPECT_EQ(0, InjectRtcpPacket(packet.data(), packet.size())); | 422 EXPECT_EQ(0, InjectRtcpPacket(packet.data(), packet.size())); |
| 422 EXPECT_EQ(kSenderSsrc, rtcp_packet_info_.remoteSSRC); | 423 EXPECT_EQ(kSenderSsrc, rtcp_packet_info_.remoteSSRC); |
| 423 EXPECT_EQ(kRtcpRr, rtcp_packet_info_.rtcpPacketTypeFlags); | 424 EXPECT_EQ(kRtcpRr, rtcp_packet_info_.rtcpPacketTypeFlags); |
| 424 EXPECT_EQ(1u, rtcp_packet_info_.report_blocks.size()); | 425 EXPECT_EQ(1u, rtcp_packet_info_.report_blocks.size()); |
| 425 EXPECT_EQ( | 426 EXPECT_EQ( |
| 426 0, rtcp_receiver_->RTT(kSenderSsrc, nullptr, nullptr, nullptr, nullptr)); | 427 0, rtcp_receiver_->RTT(kSenderSsrc, nullptr, nullptr, nullptr, nullptr)); |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 | 1152 |
| 1152 // Transport feedback should be ignored, but next packet should work. | 1153 // Transport feedback should be ignored, but next packet should work. |
| 1153 EXPECT_EQ(0u, rtcp_packet_info_.rtcpPacketTypeFlags & kRtcpTransportFeedback); | 1154 EXPECT_EQ(0u, rtcp_packet_info_.rtcpPacketTypeFlags & kRtcpTransportFeedback); |
| 1154 EXPECT_NE(0u, rtcp_packet_info_.rtcpPacketTypeFlags & kRtcpRemb); | 1155 EXPECT_NE(0u, rtcp_packet_info_.rtcpPacketTypeFlags & kRtcpRemb); |
| 1155 EXPECT_EQ(kBitrateBps, rtcp_packet_info_.receiverEstimatedMaxBitrate); | 1156 EXPECT_EQ(kBitrateBps, rtcp_packet_info_.receiverEstimatedMaxBitrate); |
| 1156 } | 1157 } |
| 1157 | 1158 |
| 1158 } // Anonymous namespace | 1159 } // Anonymous namespace |
| 1159 | 1160 |
| 1160 } // namespace webrtc | 1161 } // namespace webrtc |
| OLD | NEW |