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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 using namespace webrtc; | 26 using namespace webrtc; |
27 | 27 |
28 | 28 |
29 class TestTransport : public Transport { | 29 class TestTransport : public Transport { |
30 public: | 30 public: |
31 TestTransport(RTCPReceiver* rtcp_receiver) : | 31 TestTransport(RTCPReceiver* rtcp_receiver) : |
32 rtcp_receiver_(rtcp_receiver) { | 32 rtcp_receiver_(rtcp_receiver) { |
33 } | 33 } |
34 | 34 |
35 bool SendRtp(const uint8_t* /*data*/, size_t /*len*/) override { | 35 bool SendRtp(const uint8_t* /*data*/, |
| 36 size_t /*len*/, |
| 37 const PacketOptions& options) override { |
36 return false; | 38 return false; |
37 } | 39 } |
38 bool SendRtcp(const uint8_t* packet, size_t packetLength) override { | 40 bool SendRtcp(const uint8_t* packet, size_t packetLength) override { |
39 RTCPUtility::RTCPParserV2 rtcpParser((uint8_t*)packet, | 41 RTCPUtility::RTCPParserV2 rtcpParser((uint8_t*)packet, |
40 packetLength, | 42 packetLength, |
41 true); // Allow non-compound RTCP | 43 true); // Allow non-compound RTCP |
42 | 44 |
43 EXPECT_TRUE(rtcpParser.IsValid()); | 45 EXPECT_TRUE(rtcpParser.IsValid()); |
44 RTCPHelp::RTCPPacketInformation rtcpPacketInformation; | 46 RTCPHelp::RTCPPacketInformation rtcpPacketInformation; |
45 EXPECT_EQ(0, rtcp_receiver_->IncomingRTCPPacket(rtcpPacketInformation, | 47 EXPECT_EQ(0, rtcp_receiver_->IncomingRTCPPacket(rtcpPacketInformation, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 127 |
126 TEST_F(RtcpFormatRembTest, TestCompund) { | 128 TEST_F(RtcpFormatRembTest, TestCompund) { |
127 uint32_t SSRCs[2] = {456789, 98765}; | 129 uint32_t SSRCs[2] = {456789, 98765}; |
128 rtcp_sender_->SetRTCPStatus(kRtcpCompound); | 130 rtcp_sender_->SetRTCPStatus(kRtcpCompound); |
129 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); | 131 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); |
130 RTCPSender::FeedbackState feedback_state = | 132 RTCPSender::FeedbackState feedback_state = |
131 dummy_rtp_rtcp_impl_->GetFeedbackState(); | 133 dummy_rtp_rtcp_impl_->GetFeedbackState(); |
132 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); | 134 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); |
133 } | 135 } |
134 } // namespace | 136 } // namespace |
OLD | NEW |