1// system/audio.h utilities test 2 3package { 4 default_team: "trendy_team_android_media_audio_framework", 5 // http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // the below license kinds from "system_media_license": 8 // SPDX-license-identifier-Apache-2.0 9 default_applicable_licenses: ["system_media_license"], 10} 11 12cc_defaults { 13 name: "aidl_utils_test_defaults", 14 shared_libs: [ 15 "libaudioutils", 16 "libbase", 17 "libbinder_ndk", 18 "libcutils", 19 "liblog", 20 ], 21 defaults: [ 22 "latest_android_hardware_audio_effect_ndk_static", 23 "latest_android_media_audio_common_types_ndk_static", 24 ], 25 cflags: [ 26 "-Wall", 27 "-Werror", 28 "-Wextra", 29 ], 30} 31 32cc_test { 33 name: "elementwise_op_basic_tests", 34 host_supported: true, 35 defaults: ["aidl_utils_test_defaults"], 36 srcs: ["elementwise_op_basic_tests.cpp"], 37} 38 39cc_test { 40 name: "elementwise_op_aidl_tests", 41 host_supported: true, 42 defaults: ["aidl_utils_test_defaults"], 43 srcs: ["elementwise_op_aidl_union_tests.cpp"], 44} 45 46cc_test { 47 name: "audio_aidl_utils_test", 48 defaults: ["aidl_utils_test_defaults"], 49 header_libs: ["libmedia_headers"], 50 srcs: ["audio_aidl_utils_test.cpp"], 51 test_suites: ["device-tests"], 52} 53 54cc_test { 55 name: "aidl_effects_utils_test", 56 defaults: ["aidl_utils_test_defaults"], 57 srcs: ["aidl_effects_utils_test.cpp"], 58 test_suites: ["device-tests"], 59} 60 61cc_test { 62 name: "audio_effects_utils_tests", 63 64 shared_libs: [ 65 "libbase", 66 "liblog", 67 "libutils", 68 ], 69 70 header_libs: ["libmedia_headers"], 71 72 srcs: [ 73 "audio_effects_utils_tests.cpp", 74 ], 75 76 cflags: [ 77 "-Wall", 78 "-Werror", 79 ], 80 81 test_suites: ["device-tests"], 82} 83 84cc_test { 85 name: "systemaudio_tests", 86 87 shared_libs: [ 88 "libaudiofoundation", 89 "libbase", 90 "liblog", 91 "libmedia_helper", 92 "libutils", 93 ], 94 95 header_libs: ["libmedia_headers"], 96 97 srcs: [ 98 "static_checks.cpp", 99 "static_checks_c.c", 100 "systemaudio_tests.cpp", 101 ], 102 103 cflags: [ 104 "-Wall", 105 "-Werror", 106 ], 107 108 test_suites: ["device-tests"], 109 110} 111