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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 bool SendRtp(const uint8_t* /*data*/, | 204 bool SendRtp(const uint8_t* /*data*/, |
205 size_t /*len*/, | 205 size_t /*len*/, |
206 const PacketOptions& options) override { | 206 const PacketOptions& options) override { |
207 return false; | 207 return false; |
208 } | 208 } |
209 bool SendRtcp(const uint8_t* data, size_t len) override { | 209 bool SendRtcp(const uint8_t* data, size_t len) override { |
210 parser_.Parse(data, len); | 210 parser_.Parse(data, len); |
211 return true; | 211 return true; |
212 } | 212 } |
213 int OnReceivedPayloadData(const uint8_t* payload_data, | 213 int OnReceivedPayloadData(const uint8_t* payload_data, |
214 const size_t payload_size, | 214 size_t payload_size, |
215 const WebRtcRTPHeader* rtp_header) override { | 215 const WebRtcRTPHeader* rtp_header) override { |
216 return 0; | 216 return 0; |
217 } | 217 } |
218 test::RtcpPacketParser parser_; | 218 test::RtcpPacketParser parser_; |
219 }; | 219 }; |
220 | 220 |
221 namespace { | 221 namespace { |
222 static const uint32_t kSenderSsrc = 0x11111111; | 222 static const uint32_t kSenderSsrc = 0x11111111; |
223 static const uint32_t kRemoteSsrc = 0x22222222; | 223 static const uint32_t kRemoteSsrc = 0x22222222; |
224 static const uint32_t kStartRtpTimestamp = 0x34567; | 224 static const uint32_t kStartRtpTimestamp = 0x34567; |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 const rtcp::TargetBitrate::BitrateItem& item = bitrates[index]; | 836 const rtcp::TargetBitrate::BitrateItem& item = bitrates[index]; |
837 EXPECT_EQ(sl, item.spatial_layer); | 837 EXPECT_EQ(sl, item.spatial_layer); |
838 EXPECT_EQ(tl, item.temporal_layer); | 838 EXPECT_EQ(tl, item.temporal_layer); |
839 EXPECT_EQ(start_bitrate_bps + (tl * 20000), | 839 EXPECT_EQ(start_bitrate_bps + (tl * 20000), |
840 item.target_bitrate_kbps * 1000); | 840 item.target_bitrate_kbps * 1000); |
841 } | 841 } |
842 } | 842 } |
843 } | 843 } |
844 | 844 |
845 } // namespace webrtc | 845 } // namespace webrtc |
OLD | NEW |