Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: webrtc/modules/audio_processing/audio_processing_performance_unittest.cc

Issue 2294093004: Added build flag around the Intelligibility enhancer performance test code (Closed)
Patch Set: Corrected build file Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/webrtc_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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};
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/webrtc_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698