96 lines
2.2 KiB
Plaintext
96 lines
2.2 KiB
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "frameworks_av_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["frameworks_av_license"],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "libaudioclient_tests_defaults",
|
|
test_suites: ["device-tests"],
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
],
|
|
sanitize: {
|
|
misc_undefined: [
|
|
"unsigned-integer-overflow",
|
|
"signed-integer-overflow",
|
|
],
|
|
},
|
|
}
|
|
|
|
cc_test {
|
|
name: "audio_aidl_conversion_tests",
|
|
defaults: ["libaudioclient_tests_defaults"],
|
|
srcs: ["audio_aidl_legacy_conversion_tests.cpp"],
|
|
shared_libs: [
|
|
"libbinder",
|
|
"libcutils",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
static_libs: [
|
|
"android.media.audio.common.types-V1-cpp",
|
|
"audioclient-types-aidl-cpp",
|
|
"libaudioclient_aidl_conversion",
|
|
"libstagefright_foundation",
|
|
],
|
|
}
|
|
|
|
cc_test {
|
|
name: "audio_aidl_status_tests",
|
|
defaults: ["libaudioclient_tests_defaults"],
|
|
srcs: ["audio_aidl_status_tests.cpp"],
|
|
shared_libs: [
|
|
"libaudioclient_aidl_conversion",
|
|
"libbinder",
|
|
"libcutils",
|
|
"libutils",
|
|
],
|
|
}
|
|
|
|
cc_test {
|
|
name: "test_create_audiotrack",
|
|
defaults: ["libaudioclient_tests_defaults"],
|
|
srcs: [
|
|
"test_create_audiotrack.cpp",
|
|
"test_create_utils.cpp",
|
|
],
|
|
header_libs: [
|
|
"libmedia_headers",
|
|
"libmediametrics_headers",
|
|
],
|
|
shared_libs: [
|
|
"framework-permission-aidl-cpp",
|
|
"libaudioclient",
|
|
"libbinder",
|
|
"libcutils",
|
|
"libutils",
|
|
],
|
|
data: ["track_test_input_*.txt"],
|
|
}
|
|
|
|
cc_test {
|
|
name: "test_create_audiorecord",
|
|
defaults: ["libaudioclient_tests_defaults"],
|
|
srcs: [
|
|
"test_create_audiorecord.cpp",
|
|
"test_create_utils.cpp",
|
|
],
|
|
header_libs: [
|
|
"libmedia_headers",
|
|
"libmediametrics_headers",
|
|
],
|
|
shared_libs: [
|
|
"libaudioclient",
|
|
"libbinder",
|
|
"libcutils",
|
|
"libutils",
|
|
"framework-permission-aidl-cpp",
|
|
],
|
|
data: ["record_test_input_*.txt"],
|
|
}
|