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

Side by Side Diff: webrtc/modules/audio_coding/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 unified diff | Download patch
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/audio_conference_mixer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../../build/webrtc.gni") 9 import("../../build/webrtc.gni")
10 import("audio_coding.gni") 10 import("audio_coding.gni")
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 "neteq/tools/audio_loop.h", 1450 "neteq/tools/audio_loop.h",
1451 "neteq/tools/audio_sink.cc", 1451 "neteq/tools/audio_sink.cc",
1452 "neteq/tools/audio_sink.h", 1452 "neteq/tools/audio_sink.h",
1453 "neteq/tools/constant_pcm_packet_source.cc", 1453 "neteq/tools/constant_pcm_packet_source.cc",
1454 "neteq/tools/constant_pcm_packet_source.h", 1454 "neteq/tools/constant_pcm_packet_source.h",
1455 "neteq/tools/fake_decode_from_file.cc", 1455 "neteq/tools/fake_decode_from_file.cc",
1456 "neteq/tools/fake_decode_from_file.h", 1456 "neteq/tools/fake_decode_from_file.h",
1457 "neteq/tools/input_audio_file.cc", 1457 "neteq/tools/input_audio_file.cc",
1458 "neteq/tools/input_audio_file.h", 1458 "neteq/tools/input_audio_file.h",
1459 "neteq/tools/neteq_input.h", 1459 "neteq/tools/neteq_input.h",
1460 "neteq/tools/neteq_packet_source_input.cc",
1461 "neteq/tools/neteq_packet_source_input.h",
1462 "neteq/tools/neteq_replacement_input.cc", 1460 "neteq/tools/neteq_replacement_input.cc",
1463 "neteq/tools/neteq_replacement_input.h", 1461 "neteq/tools/neteq_replacement_input.h",
1464 "neteq/tools/output_audio_file.h", 1462 "neteq/tools/output_audio_file.h",
1465 "neteq/tools/output_wav_file.h", 1463 "neteq/tools/output_wav_file.h",
1466 "neteq/tools/packet.cc", 1464 "neteq/tools/packet.cc",
1467 "neteq/tools/packet.h", 1465 "neteq/tools/packet.h",
1468 "neteq/tools/packet_source.cc", 1466 "neteq/tools/packet_source.cc",
1469 "neteq/tools/packet_source.h", 1467 "neteq/tools/packet_source.h",
1470 "neteq/tools/resample_input_audio_file.cc", 1468 "neteq/tools/resample_input_audio_file.cc",
1471 "neteq/tools/resample_input_audio_file.h", 1469 "neteq/tools/resample_input_audio_file.h",
(...skipping 19 matching lines...) Expand all
1491 "../../common_audio", 1489 "../../common_audio",
1492 "../../test:rtp_test_utils", 1490 "../../test:rtp_test_utils",
1493 "../rtp_rtcp", 1491 "../rtp_rtcp",
1494 ] 1492 ]
1495 1493
1496 public_deps = [ 1494 public_deps = [
1497 ":neteq_test_minimal", 1495 ":neteq_test_minimal",
1498 ] 1496 ]
1499 1497
1500 if (rtc_enable_protobuf) { 1498 if (rtc_enable_protobuf) {
1499 sources += [
1500 "neteq/tools/neteq_packet_source_input.cc",
1501 "neteq/tools/neteq_packet_source_input.h",
1502 ]
1501 deps += [ ":rtc_event_log_source" ] 1503 deps += [ ":rtc_event_log_source" ]
1502 } 1504 }
1503 } 1505 }
1504 1506
1505 rtc_source_set("neteq_test_tools") { 1507 rtc_source_set("neteq_test_tools") {
1506 testonly = true 1508 testonly = true
1507 sources = [ 1509 sources = [
1508 "neteq/test/NETEQTEST_DummyRTPpacket.cc", 1510 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1509 "neteq/test/NETEQTEST_DummyRTPpacket.h", 1511 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1510 "neteq/test/NETEQTEST_RTPpacket.cc", 1512 "neteq/test/NETEQTEST_RTPpacket.cc",
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 "../../common_audio", 1913 "../../common_audio",
1912 "../../test:test_main", 1914 "../../test:test_main",
1913 "//testing/gtest", 1915 "//testing/gtest",
1914 ] 1916 ]
1915 1917
1916 if (!build_with_chromium && is_clang) { 1918 if (!build_with_chromium && is_clang) {
1917 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 1919 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1918 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 1920 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1919 } 1921 }
1920 } 1922 }
1923
1924 rtc_source_set("audio_coding_unittests") {
1925 testonly = true
1926
1927 sources = [
1928 "acm2/acm_receiver_unittest.cc",
1929 "acm2/audio_coding_module_unittest.cc",
1930 "acm2/call_statistics_unittest.cc",
1931 "acm2/codec_manager_unittest.cc",
1932 "acm2/rent_a_codec_unittest.cc",
1933 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
1934 "audio_network_adaptor/bitrate_controller_unittest.cc",
1935 "audio_network_adaptor/channel_controller_unittest.cc",
1936 "audio_network_adaptor/controller_manager_unittest.cc",
1937 "audio_network_adaptor/dtx_controller_unittest.cc",
1938 "audio_network_adaptor/fec_controller_unittest.cc",
1939 "audio_network_adaptor/frame_length_controller_unittest.cc",
1940 "audio_network_adaptor/mock/mock_controller.h",
1941 "audio_network_adaptor/mock/mock_controller_manager.h",
1942 "codecs/audio_decoder_factory_unittest.cc",
1943 "codecs/cng/audio_encoder_cng_unittest.cc",
1944 "codecs/cng/cng_unittest.cc",
1945 "codecs/ilbc/ilbc_unittest.cc",
1946 "codecs/isac/fix/source/filterbanks_unittest.cc",
1947 "codecs/isac/fix/source/filters_unittest.cc",
1948 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
1949 "codecs/isac/fix/source/transform_unittest.cc",
1950 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
1951 "codecs/isac/main/source/isac_unittest.cc",
1952 "codecs/isac/unittest.cc",
1953 "codecs/legacy_encoded_audio_frame_unittest.cc",
1954 "codecs/mock/mock_audio_encoder.cc",
1955 "codecs/opus/audio_encoder_opus_unittest.cc",
1956 "codecs/opus/opus_unittest.cc",
1957 "codecs/red/audio_encoder_copy_red_unittest.cc",
1958 "neteq/audio_multi_vector_unittest.cc",
1959 "neteq/audio_vector_unittest.cc",
1960 "neteq/background_noise_unittest.cc",
1961 "neteq/buffer_level_filter_unittest.cc",
1962 "neteq/comfort_noise_unittest.cc",
1963 "neteq/decision_logic_unittest.cc",
1964 "neteq/decoder_database_unittest.cc",
1965 "neteq/delay_manager_unittest.cc",
1966 "neteq/delay_peak_detector_unittest.cc",
1967 "neteq/dsp_helper_unittest.cc",
1968 "neteq/dtmf_buffer_unittest.cc",
1969 "neteq/dtmf_tone_generator_unittest.cc",
1970 "neteq/expand_unittest.cc",
1971 "neteq/merge_unittest.cc",
1972 "neteq/mock/mock_audio_decoder.h",
1973 "neteq/mock/mock_buffer_level_filter.h",
1974 "neteq/mock/mock_decoder_database.h",
1975 "neteq/mock/mock_delay_manager.h",
1976 "neteq/mock/mock_delay_peak_detector.h",
1977 "neteq/mock/mock_dtmf_buffer.h",
1978 "neteq/mock/mock_dtmf_tone_generator.h",
1979 "neteq/mock/mock_expand.h",
1980 "neteq/mock/mock_external_decoder_pcm16b.h",
1981 "neteq/mock/mock_packet_buffer.h",
1982 "neteq/mock/mock_red_payload_splitter.h",
1983 "neteq/nack_tracker_unittest.cc",
1984 "neteq/neteq_external_decoder_unittest.cc",
1985 "neteq/neteq_impl_unittest.cc",
1986 "neteq/neteq_network_stats_unittest.cc",
1987 "neteq/neteq_stereo_unittest.cc",
1988 "neteq/neteq_unittest.cc",
1989 "neteq/normal_unittest.cc",
1990 "neteq/packet_buffer_unittest.cc",
1991 "neteq/post_decode_vad_unittest.cc",
1992 "neteq/random_vector_unittest.cc",
1993 "neteq/red_payload_splitter_unittest.cc",
1994 "neteq/sync_buffer_unittest.cc",
1995 "neteq/tick_timer_unittest.cc",
1996 "neteq/time_stretch_unittest.cc",
1997 "neteq/timestamp_scaler_unittest.cc",
1998 "neteq/tools/input_audio_file_unittest.cc",
1999 "neteq/tools/packet_unittest.cc",
2000 ]
2001
2002 deps = [
2003 ":acm_receive_test",
2004 ":acm_send_test",
2005 ":audio_coding",
2006 ":audio_decoder_interface",
2007 ":audio_encoder_interface",
2008 ":audio_format_conversion",
2009 ":audio_network_adaptor",
2010 ":builtin_audio_decoder_factory",
2011 ":cng",
2012 ":g711",
2013 ":ilbc",
2014 ":isac_c",
2015 ":isac_fix",
2016 ":neteq",
2017 ":neteq_test_support",
2018 ":neteq_unittest_tools",
2019 ":pcm16b",
2020 ":red",
2021 ":rent_a_codec",
2022 ":webrtc_opus",
2023 "../..:webrtc_common",
2024 "../../base:rtc_base",
2025 "../../base:rtc_base_approved",
2026 "../../base:rtc_base_tests_utils",
2027 "../../common_audio",
2028 "../../system_wrappers:system_wrappers",
2029 "../../test:field_trial",
2030 "../../test:rtp_test_utils",
2031 "../../test:test_common",
2032 "../../test:test_support",
2033 "//testing/gmock",
2034 "//testing/gtest",
2035 "//third_party/gflags",
2036 ]
2037
2038 defines = audio_coding_defines
2039
2040 if (rtc_enable_protobuf) {
2041 defines += [
2042 "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP",
2043 "WEBRTC_NETEQ_UNITTEST_BITEXACT",
2044 ]
2045 deps += [
2046 ":ana_config_proto",
2047 ":neteq_unittest_proto",
2048 ]
2049 }
2050
2051 if (!build_with_chromium && is_clang) {
2052 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2053 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2054 }
2055 }
1921 } 2056 }
OLDNEW
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/audio_conference_mixer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698