Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1595)

Side by Side Diff: webrtc/modules/audio_coding/test/PacketLossTest.h

Issue 1481493004: audio_coding: remove "main" directory (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_PACKETLOSSTEST_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_TEST_PACKETLOSSTEST_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_PACKETLOSSTEST_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_TEST_PACKETLOSSTEST_H_
13 13
14 #include <string> 14 #include <string>
15 #include "webrtc/base/scoped_ptr.h" 15 #include "webrtc/base/scoped_ptr.h"
16 #include "webrtc/modules/audio_coding/main/test/EncodeDecodeTest.h" 16 #include "webrtc/modules/audio_coding/test/EncodeDecodeTest.h"
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 class ReceiverWithPacketLoss : public Receiver { 20 class ReceiverWithPacketLoss : public Receiver {
21 public: 21 public:
22 ReceiverWithPacketLoss(); 22 ReceiverWithPacketLoss();
23 void Setup(AudioCodingModule *acm, RTPStream *rtpStream, 23 void Setup(AudioCodingModule *acm, RTPStream *rtpStream,
24 std::string out_file_name, int channels, int loss_rate, 24 std::string out_file_name, int channels, int loss_rate,
25 int burst_length); 25 int burst_length);
26 bool IncomingPacket() override; 26 bool IncomingPacket() override;
(...skipping 30 matching lines...) Expand all
57 int sample_rate_hz_; 57 int sample_rate_hz_;
58 rtc::scoped_ptr<SenderWithFEC> sender_; 58 rtc::scoped_ptr<SenderWithFEC> sender_;
59 rtc::scoped_ptr<ReceiverWithPacketLoss> receiver_; 59 rtc::scoped_ptr<ReceiverWithPacketLoss> receiver_;
60 int expected_loss_rate_; 60 int expected_loss_rate_;
61 int actual_loss_rate_; 61 int actual_loss_rate_;
62 int burst_length_; 62 int burst_length_;
63 }; 63 };
64 64
65 } // namespace webrtc 65 } // namespace webrtc
66 66
67 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_PACKETLOSSTEST_H_ 67 #endif // WEBRTC_MODULES_AUDIO_CODING_TEST_PACKETLOSSTEST_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/test/PCMFile.cc ('k') | webrtc/modules/audio_coding/test/PacketLossTest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698