| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 class MockSendPacketObserver : public SendPacketObserver { | 131 class MockSendPacketObserver : public SendPacketObserver { |
| 132 public: | 132 public: |
| 133 MOCK_METHOD3(OnSendPacket, void(uint16_t, int64_t, uint32_t)); | 133 MOCK_METHOD3(OnSendPacket, void(uint16_t, int64_t, uint32_t)); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 class MockTransportFeedbackObserver : public TransportFeedbackObserver { | 136 class MockTransportFeedbackObserver : public TransportFeedbackObserver { |
| 137 public: | 137 public: |
| 138 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, int)); | 138 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, int)); |
| 139 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); | 139 MOCK_METHOD1(OnTransportFeedback, |
| 140 std::vector<PacketInfo>(const rtcp::TransportFeedback&)); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 class RtpSenderTest : public ::testing::Test { | 143 class RtpSenderTest : public ::testing::Test { |
| 143 protected: | 144 protected: |
| 144 RtpSenderTest() | 145 RtpSenderTest() |
| 145 : fake_clock_(kStartTime), | 146 : fake_clock_(kStartTime), |
| 146 mock_rtc_event_log_(), | 147 mock_rtc_event_log_(), |
| 147 mock_paced_sender_(), | 148 mock_paced_sender_(), |
| 148 retransmission_rate_limiter_(&fake_clock_, 1000), | 149 retransmission_rate_limiter_(&fake_clock_, 1000), |
| 149 rtp_sender_(), | 150 rtp_sender_(), |
| (...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), | 1784 reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()), |
| 1784 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); | 1785 transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); |
| 1785 | 1786 |
| 1786 // Verify that this packet does have CVO byte. | 1787 // Verify that this packet does have CVO byte. |
| 1787 VerifyCVOPacket( | 1788 VerifyCVOPacket( |
| 1788 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), | 1789 reinterpret_cast<uint8_t*>(transport_.sent_packets_[1]->data()), |
| 1789 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, | 1790 transport_.sent_packets_[1]->size(), true, &map, kSeqNum + 1, |
| 1790 hdr.rotation); | 1791 hdr.rotation); |
| 1791 } | 1792 } |
| 1792 } // namespace webrtc | 1793 } // namespace webrtc |
| OLD | NEW |