Index: webrtc/modules/audio_processing/level_controller/level_controller_unittest.cc |
diff --git a/webrtc/modules/audio_processing/level_controller/level_controller_unittest.cc b/webrtc/modules/audio_processing/level_controller/level_controller_unittest.cc |
index c470c2fad7b5bd4c2371bbf49e4e1322141d49a2..f5cea0dbccd9357717d634c9d4e1862b742ffc4d 100644 |
--- a/webrtc/modules/audio_processing/level_controller/level_controller_unittest.cc |
+++ b/webrtc/modules/audio_processing/level_controller/level_controller_unittest.cc |
@@ -68,6 +68,25 @@ void RunBitexactnessTest(int sample_rate_hz, |
} // namespace |
+TEST(LevelControlConfigTest, ToStringEnabled) { |
+ AudioProcessing::Config config; |
+ config.level_controller.enabled = true; |
+ EXPECT_EQ("{enabled: true}", |
+ LevelController::ToString(config.level_controller)); |
+} |
+ |
+TEST(LevelControlConfigTest, ToStringNotEnabled) { |
+ AudioProcessing::Config config; |
+ config.level_controller.enabled = false; |
+ EXPECT_EQ("{enabled: false}", |
+ LevelController::ToString(config.level_controller)); |
+} |
+ |
+TEST(LevelControlConfigTest, DefaultValue) { |
+ AudioProcessing::Config config; |
+ EXPECT_FALSE(config.level_controller.enabled); |
+} |
+ |
TEST(LevelControlBitExactnessTest, DISABLED_Mono8kHz) { |
const float kOutputReference[] = {-0.013939f, -0.012154f, -0.009054f}; |
RunBitexactnessTest(AudioProcessing::kSampleRate8kHz, 1, |