| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 : receive_statistics_(ReceiveStatistics::Create(clock)) { | 96 : receive_statistics_(ReceiveStatistics::Create(clock)) { |
| 97 RtpRtcp::Configuration config; | 97 RtpRtcp::Configuration config; |
| 98 config.audio = false; | 98 config.audio = false; |
| 99 config.clock = clock; | 99 config.clock = clock; |
| 100 config.outgoing_transport = &transport_; | 100 config.outgoing_transport = &transport_; |
| 101 config.receive_statistics = receive_statistics_.get(); | 101 config.receive_statistics = receive_statistics_.get(); |
| 102 config.rtcp_packet_type_counter_observer = this; | 102 config.rtcp_packet_type_counter_observer = this; |
| 103 config.rtt_stats = &rtt_stats_; | 103 config.rtt_stats = &rtt_stats_; |
| 104 | 104 |
| 105 impl_.reset(new ModuleRtpRtcpImpl(config)); | 105 impl_.reset(new ModuleRtpRtcpImpl(config)); |
| 106 impl_->SetRTCPStatus(kRtcpCompound); | 106 impl_->SetRTCPStatus(RtcpMode::kCompound); |
| 107 | 107 |
| 108 transport_.SimulateNetworkDelay(kOneWayNetworkDelayMs, clock); | 108 transport_.SimulateNetworkDelay(kOneWayNetworkDelayMs, clock); |
| 109 } | 109 } |
| 110 | 110 |
| 111 RtcpPacketTypeCounter packets_sent_; | 111 RtcpPacketTypeCounter packets_sent_; |
| 112 RtcpPacketTypeCounter packets_received_; | 112 RtcpPacketTypeCounter packets_received_; |
| 113 rtc::scoped_ptr<ReceiveStatistics> receive_statistics_; | 113 rtc::scoped_ptr<ReceiveStatistics> receive_statistics_; |
| 114 SendTransport transport_; | 114 SendTransport transport_; |
| 115 RtcpRttStatsTestImpl rtt_stats_; | 115 RtcpRttStatsTestImpl rtt_stats_; |
| 116 rtc::scoped_ptr<ModuleRtpRtcpImpl> impl_; | 116 rtc::scoped_ptr<ModuleRtpRtcpImpl> impl_; |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 EXPECT_THAT(receiver_.LastNackListSent(), ElementsAre(11, 18, 20, 21)); | 515 EXPECT_THAT(receiver_.LastNackListSent(), ElementsAre(11, 18, 20, 21)); |
| 516 | 516 |
| 517 // Send module receives the request. | 517 // Send module receives the request. |
| 518 EXPECT_EQ(2U, sender_.RtcpReceived().nack_packets); | 518 EXPECT_EQ(2U, sender_.RtcpReceived().nack_packets); |
| 519 EXPECT_EQ(8U, sender_.RtcpReceived().nack_requests); | 519 EXPECT_EQ(8U, sender_.RtcpReceived().nack_requests); |
| 520 EXPECT_EQ(6U, sender_.RtcpReceived().unique_nack_requests); | 520 EXPECT_EQ(6U, sender_.RtcpReceived().unique_nack_requests); |
| 521 EXPECT_EQ(75, sender_.RtcpReceived().UniqueNackRequestsInPercent()); | 521 EXPECT_EQ(75, sender_.RtcpReceived().UniqueNackRequestsInPercent()); |
| 522 } | 522 } |
| 523 | 523 |
| 524 } // namespace webrtc | 524 } // namespace webrtc |
| OLD | NEW |