blob: dff108769360b9f48283b2a75401b2a5dd0d523e [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef TEST_FEC_H
12#define TEST_FEC_H
13
14#include "ACMTest.h"
15#include "Channel.h"
16#include "PCMFile.h"
17
tina.legrand@webrtc.org554ae1a2011-12-16 10:09:04 +000018namespace webrtc {
19
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000020class TestFEC : public ACMTest {
21 public:
tina.legrand@webrtc.orgee92b662013-08-27 07:33:51 +000022 TestFEC();
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000023 ~TestFEC();
niklase@google.com470e71d2011-07-07 08:21:25 +000024
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000025 void Perform();
26 private:
27 // The default value of '-1' indicates that the registration is based only on
28 // codec name and a sampling frequency matching is not required. This is
29 // useful for codecs which support several sampling frequency.
30 int16_t RegisterSendCodec(char side, char* codecName,
31 int32_t sampFreqHz = -1);
32 void Run();
33 void OpenOutFile(int16_t testNumber);
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000034 int32_t SetVAD(bool enableDTX, bool enableVAD, ACMVADMode vadMode);
35 AudioCodingModule* _acmA;
36 AudioCodingModule* _acmB;
niklase@google.com470e71d2011-07-07 08:21:25 +000037
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000038 Channel* _channelA2B;
niklase@google.com470e71d2011-07-07 08:21:25 +000039
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000040 PCMFile _inFileA;
41 PCMFile _outFileB;
42 int16_t _testCntr;
niklase@google.com470e71d2011-07-07 08:21:25 +000043};
44
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000045} // namespace webrtc
niklase@google.com470e71d2011-07-07 08:21:25 +000046
47#endif