Remove the enable flag from AEC2 and AECM
This CL removes the redundant enable flags from AEC2 and AECM Bug: webrtc:5298 Change-Id: Icc575abf1c368dda02ca77f057d166f1c921f662 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/135100 Commit-Queue: Per Åhgren <peah@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27848}
This commit is contained in:
@ -21,10 +21,6 @@ TEST(EchoControlMobileTest, InterfaceConfiguration) {
|
||||
EchoControlMobileImpl aecm;
|
||||
aecm.Initialize(AudioProcessing::kSampleRate16kHz, 2, 2);
|
||||
|
||||
// Turn AECM on
|
||||
EXPECT_EQ(0, aecm.Enable(true));
|
||||
EXPECT_TRUE(aecm.is_enabled());
|
||||
|
||||
// Toggle routing modes
|
||||
std::array<EchoControlMobileImpl::RoutingMode, 5> routing_modes = {
|
||||
EchoControlMobileImpl::kQuietEarpieceOrHeadset,
|
||||
@ -43,10 +39,6 @@ TEST(EchoControlMobileTest, InterfaceConfiguration) {
|
||||
EXPECT_FALSE(aecm.is_comfort_noise_enabled());
|
||||
EXPECT_EQ(0, aecm.enable_comfort_noise(true));
|
||||
EXPECT_TRUE(aecm.is_comfort_noise_enabled());
|
||||
|
||||
// Turn AECM off
|
||||
EXPECT_EQ(0, aecm.Enable(false));
|
||||
EXPECT_FALSE(aecm.is_enabled());
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user