Add missing files to audio_processing.
Bug: webrtc:7621
Change-Id: I2cab764232fc4e084ed8a489f4cf3a3ac562c894
Reviewed-on: https://webrtc-review.googlesource.com/34658
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21461}
diff --git a/audio/BUILD.gn b/audio/BUILD.gn
index 8459385..afebe93 100644
--- a/audio/BUILD.gn
+++ b/audio/BUILD.gn
@@ -108,6 +108,7 @@
"../modules/audio_device:mock_audio_device",
"../modules/audio_mixer:audio_mixer_impl",
"../modules/audio_processing:audio_processing_statistics",
+ "../modules/audio_processing:mocks",
"../modules/congestion_controller:congestion_controller",
"../modules/congestion_controller:mock_congestion_controller",
"../modules/pacing:mock_paced_sender",
diff --git a/call/BUILD.gn b/call/BUILD.gn
index 903df3b..7d1c443 100644
--- a/call/BUILD.gn
+++ b/call/BUILD.gn
@@ -214,6 +214,7 @@
"../modules/audio_device:mock_audio_device",
"../modules/audio_mixer",
"../modules/audio_mixer:audio_mixer_impl",
+ "../modules/audio_processing:mocks",
"../modules/bitrate_controller",
"../modules/congestion_controller",
"../modules/congestion_controller:mock_congestion_controller",
diff --git a/media/BUILD.gn b/media/BUILD.gn
index 2271339..a2a7bb28 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -438,6 +438,7 @@
defines = []
deps = [
"../api:video_frame_api_i420",
+ "../modules/audio_processing:mocks",
"../pc:rtc_pc",
"../pc:rtc_pc_base",
"../rtc_base:checks",
diff --git a/modules/audio_processing/BUILD.gn b/modules/audio_processing/BUILD.gn
index 49db002..24658f2 100644
--- a/modules/audio_processing/BUILD.gn
+++ b/modules/audio_processing/BUILD.gn
@@ -404,11 +404,13 @@
rtc_source_set("aec_core") {
configs += [ ":apm_debug_dump" ]
sources = [
+ "aec/aec_common.h",
"aec/aec_core.cc",
"aec/aec_core.h",
"aec/aec_core_optimized_methods.h",
"aecm/aecm_core.cc",
"aecm/aecm_core.h",
+ "aecm/aecm_defines.h",
"aecm/echo_control_mobile.cc",
"aecm/echo_control_mobile.h",
"utility/block_mean_calculator.cc",
@@ -493,6 +495,19 @@
}
if (rtc_include_tests) {
+ rtc_source_set("mocks") {
+ testonly = true
+ sources = [
+ "include/mock_audio_processing.h",
+ ]
+ deps = [
+ ":aec_dump_interface",
+ ":audio_processing",
+ ":audio_processing_statistics",
+ "../../test:test_support",
+ ]
+ }
+
group("audio_processing_tests") {
testonly = true
deps = [
@@ -524,6 +539,10 @@
sources = [
"aec/echo_cancellation_unittest.cc",
"aec/system_delay_unittest.cc",
+ "aec3/mock/mock_block_processor.h",
+ "aec3/mock/mock_echo_remover.h",
+ "aec3/mock/mock_render_delay_buffer.h",
+ "aec3/mock/mock_render_delay_controller.h",
"agc/agc_manager_direct_unittest.cc",
"agc/loudness_histogram_unittest.cc",
"agc/mock_agc.h",
@@ -531,6 +550,7 @@
"beamformer/array_util_unittest.cc",
"beamformer/complex_matrix_unittest.cc",
"beamformer/covariance_matrix_generator_unittest.cc",
+ "beamformer/matrix_test_helpers.h",
"beamformer/matrix_unittest.cc",
"beamformer/mock_nonlinear_beamformer.h",
"config_unittest.cc",
@@ -564,6 +584,7 @@
":apm_logging",
":audio_processing",
":audioproc_test_utils",
+ ":mocks",
"..:module_api",
"../..:webrtc_common",
"../../:typedefs",