Chromium Code Reviews| Index: webrtc/modules/audio_processing/audio_processing_performance_unittest.cc |
| diff --git a/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc b/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc |
| index 5309a6a42fc0b1389b53856966ec8f80148c0c95..ef6e8a7103bd729f329526b706f53e8e1d9ab61a 100644 |
| --- a/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc |
| +++ b/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc |
| @@ -29,6 +29,14 @@ |
| #include "webrtc/system_wrappers/include/sleep.h" |
| #include "webrtc/test/testsupport/perf_test.h" |
| +// Check to verify that the define for the intelligibility enhancer is properly |
| +// set. |
| +#if !defined(WEBRTC_INTELLIGIBILITY_ENHANCER) || \ |
| + (WEBRTC_INTELLIGIBILITY_ENHANCER != 0 && \ |
| + WEBRTC_INTELLIGIBILITY_ENHANCER != 1) |
| +#error "Set WEBRTC_INTELLIGIBILITY_ENHANCER to either 0 or 1" |
| +#endif |
| + |
| namespace webrtc { |
| namespace { |
| @@ -96,6 +104,7 @@ struct SimulationConfig { |
| } |
| } |
| +#if (WEBRTC_INTELLIGIBILITY_ENHANCER == 1) |
|
kwiberg-webrtc
2016/09/13 10:09:43
No parentheses needed.
peah-webrtc
2016/09/13 12:46:49
Done.
|
| const SettingsType intelligibility_enhancer_settings[] = { |
| SettingsType::kDefaultApmDesktopAndIntelligibilityEnhancer}; |
| @@ -107,6 +116,7 @@ struct SimulationConfig { |
| simulation_configs.push_back(SimulationConfig(sample_rate, settings)); |
| } |
| } |
| +#endif |
| const SettingsType beamformer_settings[] = { |
| SettingsType::kDefaultApmDesktopAndBeamformer}; |