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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 void SetUp() override { SetUpRtpSender(true); } | 143 void SetUp() override { SetUpRtpSender(true); } |
144 | 144 |
145 void SetUpRtpSender(bool pacer) { | 145 void SetUpRtpSender(bool pacer) { |
146 rtp_sender_.reset(new RTPSender( | 146 rtp_sender_.reset(new RTPSender( |
147 false, &fake_clock_, &transport_, pacer ? &mock_paced_sender_ : nullptr, | 147 false, &fake_clock_, &transport_, pacer ? &mock_paced_sender_ : nullptr, |
148 &seq_num_allocator_, nullptr, nullptr, nullptr, nullptr, | 148 &seq_num_allocator_, nullptr, nullptr, nullptr, nullptr, |
149 &mock_rtc_event_log_, &send_packet_observer_, | 149 &mock_rtc_event_log_, &send_packet_observer_, |
150 &retransmission_rate_limiter_)); | 150 &retransmission_rate_limiter_)); |
151 rtp_sender_->SetSequenceNumber(kSeqNum); | 151 rtp_sender_->SetSequenceNumber(kSeqNum); |
| 152 rtp_sender_->SetSendPayloadType(kPayload); |
152 } | 153 } |
153 | 154 |
154 SimulatedClock fake_clock_; | 155 SimulatedClock fake_clock_; |
155 testing::NiceMock<MockRtcEventLog> mock_rtc_event_log_; | 156 testing::NiceMock<MockRtcEventLog> mock_rtc_event_log_; |
156 MockRtpPacketSender mock_paced_sender_; | 157 MockRtpPacketSender mock_paced_sender_; |
157 testing::StrictMock<MockTransportSequenceNumberAllocator> seq_num_allocator_; | 158 testing::StrictMock<MockTransportSequenceNumberAllocator> seq_num_allocator_; |
158 testing::StrictMock<MockSendPacketObserver> send_packet_observer_; | 159 testing::StrictMock<MockSendPacketObserver> send_packet_observer_; |
159 RateLimiter retransmission_rate_limiter_; | 160 RateLimiter retransmission_rate_limiter_; |
160 std::unique_ptr<RTPSender> rtp_sender_; | 161 std::unique_ptr<RTPSender> rtp_sender_; |
161 int payload_; | 162 int payload_; |
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1621 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), | 1622 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), |
1622 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); | 1623 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); |
1623 | 1624 |
1624 // Verify that this packet does have CVO byte. | 1625 // Verify that this packet does have CVO byte. |
1625 VerifyCVOPacket( | 1626 VerifyCVOPacket( |
1626 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), | 1627 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), |
1627 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, | 1628 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, |
1628 hdr.rotation); | 1629 hdr.rotation); |
1629 } | 1630 } |
1630 } // namespace webrtc | 1631 } // namespace webrtc |
OLD | NEW |