1// Build testbench for downmix module. 2package { 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "frameworks_av_media_libeffects_downmix_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: [ 9 "frameworks_av_media_libeffects_downmix_license", 10 ], 11} 12 13// This is a gtest unit test. 14// 15// Use "atest downmix_tests" to run. 16cc_test { 17 name:"downmix_tests", 18 gtest: true, 19 host_supported: true, 20 vendor: true, 21 header_libs: [ 22 "libaudioeffects", 23 ], 24 shared_libs: [ 25 "liblog", 26 ], 27 static_libs: [ 28 "libaudioutils", 29 "libdownmix", 30 ], 31 srcs: [ 32 "downmix_tests.cpp", 33 ], 34 cflags: [ 35 "-Wall", 36 "-Werror", 37 "-Wextra", 38 ], 39} 40 41// This is a test application which generates downmixed files for regression 42// analysis. 43// 44// See build_and_run_all_unit_tests.sh for a test script that uses this 45// test application and outputs then compares files in a local directory 46// on device (/data/local/tmp/downmixtest/). 47cc_test { 48 name:"downmixtest", 49 host_supported: false, 50 proprietary: true, 51 52 header_libs: [ 53 "libaudioeffects", 54 ], 55 56 shared_libs: [ 57 "libaudioutils", 58 "libdownmix", 59 "liblog", 60 ], 61 62 relative_install_path: "soundfx", 63 64 srcs: [ 65 "downmixtest.cpp", 66 ], 67 68 cflags: [ 69 "-Werror", 70 "-Wextra", 71 ], 72} 73