OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
11 #include "webrtc/modules/audio_coding/test/PacketLossTest.h" | 11 #include "webrtc/modules/audio_coding/test/PacketLossTest.h" |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "webrtc/common.h" | |
17 #include "webrtc/test/testsupport/fileutils.h" | 16 #include "webrtc/test/testsupport/fileutils.h" |
18 | 17 |
19 namespace webrtc { | 18 namespace webrtc { |
20 | 19 |
21 ReceiverWithPacketLoss::ReceiverWithPacketLoss() | 20 ReceiverWithPacketLoss::ReceiverWithPacketLoss() |
22 : loss_rate_(0), | 21 : loss_rate_(0), |
23 burst_length_(1), | 22 burst_length_(1), |
24 packet_counter_(0), | 23 packet_counter_(0), |
25 lost_packet_counter_(0), | 24 lost_packet_counter_(0), |
26 burst_lost_counter_(burst_length_) { | 25 burst_lost_counter_(burst_length_) { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 159 |
161 receiver_->Setup(acm.get(), &rtpFile, "packetLoss_out", channels_, | 160 receiver_->Setup(acm.get(), &rtpFile, "packetLoss_out", channels_, |
162 actual_loss_rate_, burst_length_); | 161 actual_loss_rate_, burst_length_); |
163 receiver_->Run(); | 162 receiver_->Run(); |
164 receiver_->Teardown(); | 163 receiver_->Teardown(); |
165 rtpFile.Close(); | 164 rtpFile.Close(); |
166 #endif | 165 #endif |
167 } | 166 } |
168 | 167 |
169 } // namespace webrtc | 168 } // namespace webrtc |
OLD | NEW |