2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
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.
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_
14 #include "webrtc/base/constructormagic.h"
15 #include "webrtc/system_wrappers/interface/clock.h"
16 #include "webrtc/system_wrappers/interface/scoped_ptr.h"
19 class AudioCodingModule;
26 class AcmReceiveTest {
28 AcmReceiveTest(PacketSource* packet_source,
29 AudioSink* audio_sink,
31 virtual ~AcmReceiveTest() {}
33 // Registers the codecs with default parameters from ACM.
34 void RegisterDefaultCodecs();
36 // Registers codecs with payload types matching the pre-encoded NetEq test
38 void RegisterNetEqTestCodecs();
40 // Runs the test and returns true if successful.
44 SimulatedClock clock_;
45 scoped_ptr<AudioCodingModule> acm_;
46 PacketSource* packet_source_;
47 AudioSink* audio_sink_;
48 const int output_freq_hz_;
50 DISALLOW_COPY_AND_ASSIGN(AcmReceiveTest);
55 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_