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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 receive_statistics2_.reset(ReceiveStatistics::Create(&fake_clock)); | 87 receive_statistics2_.reset(ReceiveStatistics::Create(&fake_clock)); |
88 | 88 |
89 RtpRtcp::Configuration configuration; | 89 RtpRtcp::Configuration configuration; |
90 configuration.audio = true; | 90 configuration.audio = true; |
91 configuration.clock = &fake_clock; | 91 configuration.clock = &fake_clock; |
92 configuration.receive_statistics = receive_statistics1_.get(); | 92 configuration.receive_statistics = receive_statistics1_.get(); |
93 configuration.outgoing_transport = transport1; | 93 configuration.outgoing_transport = transport1; |
94 configuration.intra_frame_callback = myRTCPFeedback1; | 94 configuration.intra_frame_callback = myRTCPFeedback1; |
95 configuration.retransmission_rate_limiter = &retransmission_rate_limiter_; | 95 configuration.retransmission_rate_limiter = &retransmission_rate_limiter_; |
96 | 96 |
97 rtp_payload_registry1_.reset(new RTPPayloadRegistry( | 97 rtp_payload_registry1_.reset(new RTPPayloadRegistry()); |
98 RTPPayloadStrategy::CreateStrategy(true))); | 98 rtp_payload_registry2_.reset(new RTPPayloadRegistry()); |
99 rtp_payload_registry2_.reset(new RTPPayloadRegistry( | |
100 RTPPayloadStrategy::CreateStrategy(true))); | |
101 | 99 |
102 module1 = RtpRtcp::CreateRtpRtcp(configuration); | 100 module1 = RtpRtcp::CreateRtpRtcp(configuration); |
103 | 101 |
104 rtp_feedback1_.reset(new TestRtpFeedback(module1)); | 102 rtp_feedback1_.reset(new TestRtpFeedback(module1)); |
105 | 103 |
106 rtp_receiver1_.reset(RtpReceiver::CreateAudioReceiver( | 104 rtp_receiver1_.reset(RtpReceiver::CreateAudioReceiver( |
107 &fake_clock, receiver, rtp_feedback1_.get(), | 105 &fake_clock, receiver, rtp_feedback1_.get(), |
108 rtp_payload_registry1_.get())); | 106 rtp_payload_registry1_.get())); |
109 | 107 |
110 configuration.receive_statistics = receive_statistics2_.get(); | 108 configuration.receive_statistics = receive_statistics2_.get(); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); | 255 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); |
258 | 256 |
259 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); | 257 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); |
260 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); | 258 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); |
261 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); | 259 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); |
262 EXPECT_EQ(0u, report_blocks[0].fractionLost); | 260 EXPECT_EQ(0u, report_blocks[0].fractionLost); |
263 } | 261 } |
264 | 262 |
265 } // namespace | 263 } // namespace |
266 } // namespace webrtc | 264 } // namespace webrtc |
OLD | NEW |