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

Unified Diff: webrtc/modules/audio_processing/BUILD.gn

Issue 2629923002: GN: Refactor modules_unittests to eliminate package boundary violations. (Closed)
Patch Set: Addressing comments. Created 3 years, 11 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/modules/audio_mixer/BUILD.gn ('k') | webrtc/modules/bitrate_controller/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/BUILD.gn
diff --git a/webrtc/modules/audio_processing/BUILD.gn b/webrtc/modules/audio_processing/BUILD.gn
index 4178a08a761a277bdbfd5d56006b8cdf48b45512..d7879976fdd46391b16ccb17b2d7e493ba20c0d7 100644
--- a/webrtc/modules/audio_processing/BUILD.gn
+++ b/webrtc/modules/audio_processing/BUILD.gn
@@ -415,6 +415,130 @@ if (rtc_include_tests) {
}
}
+ rtc_source_set("audio_processing_unittests") {
+ testonly = true
+ sources = [
+ "aec/echo_cancellation_unittest.cc",
+ "aec/system_delay_unittest.cc",
+ "agc/agc_manager_direct_unittest.cc",
+ "agc/loudness_histogram_unittest.cc",
+ "agc/mock_agc.h",
+ "audio_buffer_unittest.cc",
+ "beamformer/array_util_unittest.cc",
+ "beamformer/complex_matrix_unittest.cc",
+ "beamformer/covariance_matrix_generator_unittest.cc",
+ "beamformer/matrix_unittest.cc",
+ "beamformer/mock_nonlinear_beamformer.h",
+ "beamformer/nonlinear_beamformer_unittest.cc",
+ "config_unittest.cc",
+ "echo_cancellation_impl_unittest.cc",
+ "splitting_filter_unittest.cc",
+ "transient/dyadic_decimator_unittest.cc",
+ "transient/file_utils.cc",
+ "transient/file_utils.h",
+ "transient/file_utils_unittest.cc",
+ "transient/moving_moments_unittest.cc",
+ "transient/transient_detector_unittest.cc",
+ "transient/transient_suppressor_unittest.cc",
+ "transient/wpd_node_unittest.cc",
+ "transient/wpd_tree_unittest.cc",
+ "utility/block_mean_calculator_unittest.cc",
+ "utility/delay_estimator_unittest.cc",
+ "vad/gmm_unittest.cc",
+ "vad/pitch_based_vad_unittest.cc",
+ "vad/pitch_internal_unittest.cc",
+ "vad/pole_zero_filter_unittest.cc",
+ "vad/standalone_vad_unittest.cc",
+ "vad/vad_audio_proc_unittest.cc",
+ "vad/vad_circular_buffer_unittest.cc",
+ "vad/voice_activity_detector_unittest.cc",
+ ]
+
+ deps = [
+ ":audio_processing",
+ ":audioproc_debug_proto",
+ ":audioproc_test_utils",
+ "../..:webrtc_common",
+ "../../base:gtest_prod",
+ "../../base:rtc_base",
+ "../../base:rtc_base_approved",
+ "../../common_audio:common_audio",
+ "../../system_wrappers:system_wrappers",
+ "../../test:test_support",
+ "../audio_coding:neteq_unittest_tools",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+
+ defines = []
+
+ if (apm_debug_dump) {
+ defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
+ } else {
+ defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
+ }
+
+ if (rtc_enable_intelligibility_enhancer) {
+ defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
+ sources += [
+ "intelligibility/intelligibility_enhancer_unittest.cc",
+ "intelligibility/intelligibility_utils_unittest.cc",
+ ]
+ } else {
+ defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
+ }
+
+ if (rtc_prefer_fixed_point) {
+ defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ]
+ } else {
+ defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ]
+ }
+
+ if (rtc_enable_protobuf) {
+ defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
+ deps += [
+ ":audioproc_protobuf_utils",
+ ":audioproc_unittest_proto",
+ ]
+ sources += [
+ "aec3/block_framer_unittest.cc",
+ "aec3/block_processor_unittest.cc",
+ "aec3/cascaded_biquad_filter_unittest.cc",
+ "aec3/echo_canceller3_unittest.cc",
+ "aec3/frame_blocker_unittest.cc",
+ "aec3/mock/mock_block_processor.h",
+ "audio_processing_impl_locking_unittest.cc",
+ "audio_processing_impl_unittest.cc",
+ "audio_processing_unittest.cc",
+ "echo_cancellation_bit_exact_unittest.cc",
+ "echo_control_mobile_unittest.cc",
+ "echo_detector/circular_buffer_unittest.cc",
+ "echo_detector/mean_variance_estimator_unittest.cc",
+ "echo_detector/moving_max_unittest.cc",
+ "echo_detector/normalized_covariance_estimator_unittest.cc",
+ "gain_control_unittest.cc",
+ "level_controller/level_controller_unittest.cc",
+ "level_estimator_unittest.cc",
+ "low_cut_filter_unittest.cc",
+ "noise_suppression_unittest.cc",
+ "residual_echo_detector_unittest.cc",
+ "rms_level_unittest.cc",
+ "test/bitexactness_tools.cc",
+ "test/bitexactness_tools.h",
+ "test/debug_dump_replayer.cc",
+ "test/debug_dump_replayer.h",
+ "test/debug_dump_test.cc",
+ "test/test_utils.h",
+ "voice_detection_unittest.cc",
+ ]
+ }
+
+ if ((!build_with_chromium || is_win) && is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
+
rtc_source_set("audio_processing_perf_tests") {
# Has problems with autogenerated targets on Android and iOS
# Dependency chain (there may also be others):
« no previous file with comments | « webrtc/modules/audio_mixer/BUILD.gn ('k') | webrtc/modules/bitrate_controller/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698