OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 std::vector<PacketFeedback> sent_packets; | 243 std::vector<PacketFeedback> sent_packets; |
244 const int64_t kSmallDeltaUs = | 244 const int64_t kSmallDeltaUs = |
245 rtcp::TransportFeedback::kDeltaScaleFactor * ((1 << 8) - 1); | 245 rtcp::TransportFeedback::kDeltaScaleFactor * ((1 << 8) - 1); |
246 const int64_t kLargePositiveDeltaUs = | 246 const int64_t kLargePositiveDeltaUs = |
247 rtcp::TransportFeedback::kDeltaScaleFactor * | 247 rtcp::TransportFeedback::kDeltaScaleFactor * |
248 std::numeric_limits<int16_t>::max(); | 248 std::numeric_limits<int16_t>::max(); |
249 const int64_t kLargeNegativeDeltaUs = | 249 const int64_t kLargeNegativeDeltaUs = |
250 rtcp::TransportFeedback::kDeltaScaleFactor * | 250 rtcp::TransportFeedback::kDeltaScaleFactor * |
251 std::numeric_limits<int16_t>::min(); | 251 std::numeric_limits<int16_t>::min(); |
252 | 252 |
253 PacketFeedback packet_feedback(100, 200, 0, 1500, true, PacedPacketInfo()); | 253 PacketFeedback packet_feedback(100, 200, 0, 1500, true, 0, 0, |
| 254 PacedPacketInfo()); |
254 sent_packets.push_back(packet_feedback); | 255 sent_packets.push_back(packet_feedback); |
255 | 256 |
256 packet_feedback.send_time_ms += kSmallDeltaUs / 1000; | 257 packet_feedback.send_time_ms += kSmallDeltaUs / 1000; |
257 packet_feedback.arrival_time_ms += kSmallDeltaUs / 1000; | 258 packet_feedback.arrival_time_ms += kSmallDeltaUs / 1000; |
258 ++packet_feedback.sequence_number; | 259 ++packet_feedback.sequence_number; |
259 sent_packets.push_back(packet_feedback); | 260 sent_packets.push_back(packet_feedback); |
260 | 261 |
261 packet_feedback.send_time_ms += kLargePositiveDeltaUs / 1000; | 262 packet_feedback.send_time_ms += kLargePositiveDeltaUs / 1000; |
262 packet_feedback.arrival_time_ms += kLargePositiveDeltaUs / 1000; | 263 packet_feedback.arrival_time_ms += kLargePositiveDeltaUs / 1000; |
263 ++packet_feedback.sequence_number; | 264 ++packet_feedback.sequence_number; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 adapter_->OnTransportFeedback(*feedback.get()); | 317 adapter_->OnTransportFeedback(*feedback.get()); |
317 { | 318 { |
318 std::vector<PacketFeedback> expected_packets; | 319 std::vector<PacketFeedback> expected_packets; |
319 expected_packets.push_back(packet_feedback); | 320 expected_packets.push_back(packet_feedback); |
320 ComparePacketFeedbackVectors(expected_packets, | 321 ComparePacketFeedbackVectors(expected_packets, |
321 adapter_->GetTransportFeedbackVector()); | 322 adapter_->GetTransportFeedbackVector()); |
322 } | 323 } |
323 } | 324 } |
324 } // namespace test | 325 } // namespace test |
325 } // namespace webrtc | 326 } // namespace webrtc |
OLD | NEW |