ACM: Adding unittests for the remixing functionality

On top of adding unittests for the remixing, the CL
moves the code tested to a separate file in order
to allow it to be tested.

Bug: webrtc:11007
Change-Id: I531736517bbcc715b3c1bf3a4256c42208c5b778
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/155740
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29839}
This commit is contained in:
Per Åhgren
2019-11-19 21:00:59 +01:00
committed by Commit Bot
parent 0e3198e434
commit 4dd56a3830
6 changed files with 354 additions and 112 deletions

View File

@ -29,6 +29,8 @@ rtc_library("audio_coding") {
sources = [
"acm2/acm_receiver.cc",
"acm2/acm_receiver.h",
"acm2/acm_remixing.cc",
"acm2/acm_remixing.h",
"acm2/acm_resampler.cc",
"acm2/acm_resampler.h",
"acm2/audio_coding_module.cc",
@ -1972,6 +1974,7 @@ if (rtc_include_tests) {
sources = [
"acm2/acm_receiver_unittest.cc",
"acm2/acm_remixing_unittest.cc",
"acm2/audio_coding_module_unittest.cc",
"acm2/call_statistics_unittest.cc",
"audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",