Remove CodecInst pt.1
Update audio_coding tests to not use CodecInst. Bug: webrtc:7626 Change-Id: I880fb8d72d7d0a915d274e67feb6106f023697c2 Reviewed-on: https://webrtc-review.googlesource.com/c/112594 Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25879}
This commit is contained in:
committed by
Commit Bot
parent
450b548cad
commit
056f9738bf
@ -23,8 +23,8 @@
|
||||
#include "api/audio_codecs/opus/audio_encoder_opus.h"
|
||||
#include "modules/audio_coding/codecs/cng/audio_encoder_cng.h"
|
||||
#include "modules/audio_coding/test/PCMFile.h"
|
||||
#include "modules/audio_coding/test/utility.h"
|
||||
#include "rtc_base/strings/string_builder.h"
|
||||
#include "test/gtest.h"
|
||||
#include "test/testsupport/fileutils.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -94,8 +94,9 @@ bool TestVadDtx::RegisterCodec(const SdpAudioFormat& codec_format,
|
||||
channel_->SetIsStereo(encoder->NumChannels() > 1);
|
||||
acm_send_->SetEncoder(std::move(encoder));
|
||||
|
||||
EXPECT_EQ(true,
|
||||
acm_receive_->RegisterReceiveCodec(payload_type, codec_format));
|
||||
std::map<int, SdpAudioFormat> receive_codecs = {{payload_type, codec_format}};
|
||||
acm_receive_->SetReceiveCodecs(receive_codecs);
|
||||
|
||||
return added_comfort_noise;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user