| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 void SetUp() override { | 97 void SetUp() override { |
| 98 RtpRtcp::Configuration configuration; | 98 RtpRtcp::Configuration configuration; |
| 99 configuration.audio = true; | 99 configuration.audio = true; |
| 100 configuration.clock = &fake_clock_; | 100 configuration.clock = &fake_clock_; |
| 101 configuration.outgoing_transport = &null_transport_; | 101 configuration.outgoing_transport = &null_transport_; |
| 102 configuration.retransmission_rate_limiter = &retransmission_rate_limiter_; | 102 configuration.retransmission_rate_limiter = &retransmission_rate_limiter_; |
| 103 module_.reset(RtpRtcp::CreateRtpRtcp(configuration)); | 103 module_.reset(RtpRtcp::CreateRtpRtcp(configuration)); |
| 104 rtp_payload_registry_.reset(new RTPPayloadRegistry()); | 104 rtp_payload_registry_.reset(new RTPPayloadRegistry()); |
| 105 rtp_receiver_.reset(RtpReceiver::CreateAudioReceiver( | 105 rtp_receiver_.reset(RtpReceiver::CreateAudioReceiver( |
| 106 &fake_clock_, NULL, NULL, rtp_payload_registry_.get())); | 106 &fake_clock_, nullptr, nullptr, rtp_payload_registry_.get())); |
| 107 } | 107 } |
| 108 | 108 |
| 109 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry_; | 109 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry_; |
| 110 std::unique_ptr<RtpReceiver> rtp_receiver_; | 110 std::unique_ptr<RtpReceiver> rtp_receiver_; |
| 111 std::unique_ptr<RtpRtcp> module_; | 111 std::unique_ptr<RtpRtcp> module_; |
| 112 uint32_t test_ssrc_; | 112 uint32_t test_ssrc_; |
| 113 uint32_t test_timestamp_; | 113 uint32_t test_timestamp_; |
| 114 uint16_t test_sequence_number_; | 114 uint16_t test_sequence_number_; |
| 115 std::vector<uint32_t> test_csrcs_; | 115 std::vector<uint32_t> test_csrcs_; |
| 116 SimulatedClock fake_clock_; | 116 SimulatedClock fake_clock_; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 rtx_header.payloadType = kRtxPayloadType; | 179 rtx_header.payloadType = kRtxPayloadType; |
| 180 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); | 180 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); |
| 181 rtx_header.ssrc = 0; | 181 rtx_header.ssrc = 0; |
| 182 EXPECT_FALSE(rtp_payload_registry_->IsRtx(rtx_header)); | 182 EXPECT_FALSE(rtp_payload_registry_->IsRtx(rtx_header)); |
| 183 rtx_header.ssrc = kRtxSsrc; | 183 rtx_header.ssrc = kRtxSsrc; |
| 184 rtx_header.payloadType = 0; | 184 rtx_header.payloadType = 0; |
| 185 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); | 185 EXPECT_TRUE(rtp_payload_registry_->IsRtx(rtx_header)); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace webrtc | 188 } // namespace webrtc |
| OLD | NEW |