Allow extracting the linear AEC output
This CL enables extracting the linear AEC output,
allowing for more straightforward
testing/development.
Bug: b/140823178
Change-Id: I14f7934008d87066b35500466cb6e6d96f811688
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/153672
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29789}
diff --git a/modules/audio_processing/audio_processing_impl_unittest.cc b/modules/audio_processing/audio_processing_impl_unittest.cc
index 5707f47..c7e25a9 100644
--- a/modules/audio_processing/audio_processing_impl_unittest.cc
+++ b/modules/audio_processing/audio_processing_impl_unittest.cc
@@ -242,13 +242,13 @@
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
EXPECT_CALL(*echo_control_mock,
- ProcessCapture(NotNull(), /*echo_path_change=*/false))
+ ProcessCapture(NotNull(), testing::_, /*echo_path_change=*/false))
.Times(1);
apm->ProcessStream(&frame);
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
EXPECT_CALL(*echo_control_mock,
- ProcessCapture(NotNull(), /*echo_path_change=*/true))
+ ProcessCapture(NotNull(), testing::_, /*echo_path_change=*/true))
.Times(1);
apm->SetRuntimeSetting(
AudioProcessing::RuntimeSetting::CreateCapturePreGain(2.f));
@@ -286,7 +286,8 @@
const int initial_analog_gain = apm->recommended_stream_analog_level();
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
- EXPECT_CALL(*echo_control_mock, ProcessCapture(NotNull(), false)).Times(1);
+ EXPECT_CALL(*echo_control_mock, ProcessCapture(NotNull(), testing::_, false))
+ .Times(1);
apm->ProcessStream(&frame);
// Force an analog gain change if it did not happen.
@@ -295,7 +296,8 @@
}
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
- EXPECT_CALL(*echo_control_mock, ProcessCapture(NotNull(), true)).Times(1);
+ EXPECT_CALL(*echo_control_mock, ProcessCapture(NotNull(), testing::_, true))
+ .Times(1);
apm->ProcessStream(&frame);
}
@@ -326,13 +328,13 @@
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
EXPECT_CALL(*echo_control_mock,
- ProcessCapture(NotNull(), /*echo_path_change=*/false))
+ ProcessCapture(NotNull(), testing::_, /*echo_path_change=*/false))
.Times(1);
apm->ProcessStream(&frame);
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
EXPECT_CALL(*echo_control_mock,
- ProcessCapture(NotNull(), /*echo_path_change=*/false))
+ ProcessCapture(NotNull(), testing::_, /*echo_path_change=*/false))
.Times(1);
apm->SetRuntimeSetting(
AudioProcessing::RuntimeSetting::CreatePlayoutVolumeChange(50));
@@ -340,7 +342,7 @@
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
EXPECT_CALL(*echo_control_mock,
- ProcessCapture(NotNull(), /*echo_path_change=*/false))
+ ProcessCapture(NotNull(), testing::_, /*echo_path_change=*/false))
.Times(1);
apm->SetRuntimeSetting(
AudioProcessing::RuntimeSetting::CreatePlayoutVolumeChange(50));
@@ -348,7 +350,7 @@
EXPECT_CALL(*echo_control_mock, AnalyzeCapture(testing::_)).Times(1);
EXPECT_CALL(*echo_control_mock,
- ProcessCapture(NotNull(), /*echo_path_change=*/true))
+ ProcessCapture(NotNull(), testing::_, /*echo_path_change=*/true))
.Times(1);
apm->SetRuntimeSetting(
AudioProcessing::RuntimeSetting::CreatePlayoutVolumeChange(100));