2 * Copyright (c) 2012 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_TEST_TWOWAYCOMMUNICATION_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_TWOWAYCOMMUNICATION_H_
14 #include "webrtc/modules/audio_coding/main/interface/audio_coding_module.h"
15 #include "webrtc/modules/audio_coding/main/test/ACMTest.h"
16 #include "webrtc/modules/audio_coding/main/test/Channel.h"
17 #include "webrtc/modules/audio_coding/main/test/PCMFile.h"
18 #include "webrtc/modules/audio_coding/main/test/utility.h"
19 #include "webrtc/system_wrappers/interface/scoped_ptr.h"
23 class TwoWayCommunication : public ACMTest {
25 explicit TwoWayCommunication(int testMode);
26 ~TwoWayCommunication();
30 void ChooseCodec(uint8_t* codecID_A, uint8_t* codecID_B);
34 scoped_ptr<AudioCodingModule> _acmA;
35 scoped_ptr<AudioCodingModule> _acmB;
37 scoped_ptr<AudioCodingModule> _acmRefA;
38 scoped_ptr<AudioCodingModule> _acmRefB;
40 Channel* _channel_A2B;
41 Channel* _channel_B2A;
43 Channel* _channelRef_A2B;
44 Channel* _channelRef_B2A;
60 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_TWOWAYCOMMUNICATION_H_