ACM test are modified to run with both ACM1 and ACM2.
Beside the changes in test files. acm2/acm_generic_codec.cc and acm2/audio_coding_module_impl.cc are modified to fix a bug.
Also, nack{.cc, .h, _unittest.cc} are removed form main/sourc as nack files in both ACM1 and ACM2 are essentially identical.
R=andrew@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/2192005
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4908 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -18,25 +18,25 @@
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include "common_types.h"
|
||||
#include "engine_configurations.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "PCMFile.h"
|
||||
#include "trace.h"
|
||||
#include "utility.h"
|
||||
#include "webrtc/engine_configurations.h"
|
||||
#include "webrtc/common.h"
|
||||
#include "webrtc/common_types.h"
|
||||
#include "webrtc/modules/audio_coding/main/test/PCMFile.h"
|
||||
#include "webrtc/modules/audio_coding/main/test/utility.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
#include "webrtc/test/testsupport/fileutils.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
#define MAX_FILE_NAME_LENGTH_BYTE 500
|
||||
|
||||
TwoWayCommunication::TwoWayCommunication(int testMode)
|
||||
: _acmA(AudioCodingModule::Create(1)),
|
||||
_acmB(AudioCodingModule::Create(2)),
|
||||
_acmRefA(AudioCodingModule::Create(3)),
|
||||
_acmRefB(AudioCodingModule::Create(4)),
|
||||
_testMode(testMode) {
|
||||
}
|
||||
TwoWayCommunication::TwoWayCommunication(int testMode, const Config& config)
|
||||
: _acmA(config.Get<AudioCodingModuleFactory>().Create(1)),
|
||||
_acmB(config.Get<AudioCodingModuleFactory>().Create(2)),
|
||||
_acmRefA(config.Get<AudioCodingModuleFactory>().Create(3)),
|
||||
_acmRefB(config.Get<AudioCodingModuleFactory>().Create(4)),
|
||||
_testMode(testMode) { }
|
||||
|
||||
TwoWayCommunication::~TwoWayCommunication() {
|
||||
delete _channel_A2B;
|
||||
|
||||
Reference in New Issue
Block a user