Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_av_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_av_license"], |
| 8 | } |
| 9 | |
jiabin | f4eb15a | 2019-08-28 15:31:47 -0700 | [diff] [blame] | 10 | cc_test { |
| 11 | name: "audiopolicy_tests", |
| 12 | |
| 13 | include_dirs: [ |
| 14 | "frameworks/av/services/audiopolicy", |
| 15 | ], |
| 16 | |
| 17 | shared_libs: [ |
| 18 | "libaudioclient", |
| 19 | "libaudiofoundation", |
| 20 | "libaudiopolicy", |
| 21 | "libaudiopolicymanagerdefault", |
| 22 | "libbase", |
| 23 | "libhidlbase", |
| 24 | "liblog", |
| 25 | "libmedia_helper", |
| 26 | "libutils", |
| 27 | "libxml2", |
Philip P. Moltmann | bda4575 | 2020-07-17 16:41:18 -0700 | [diff] [blame] | 28 | "media_permission-aidl-cpp", |
jiabin | f4eb15a | 2019-08-28 15:31:47 -0700 | [diff] [blame] | 29 | ], |
| 30 | |
Jiabin Huang | 3b98d32 | 2020-09-03 17:54:16 +0000 | [diff] [blame] | 31 | static_libs: [ |
| 32 | "libaudiopolicycomponents", |
| 33 | "libgmock" |
| 34 | ], |
jiabin | f4eb15a | 2019-08-28 15:31:47 -0700 | [diff] [blame] | 35 | |
| 36 | header_libs: [ |
| 37 | "libaudiopolicycommon", |
| 38 | "libaudiopolicyengine_interface_headers", |
| 39 | "libaudiopolicymanager_interface_headers", |
| 40 | ], |
| 41 | |
| 42 | srcs: ["audiopolicymanager_tests.cpp"], |
| 43 | |
| 44 | data: [":audiopolicytest_configuration_files",], |
| 45 | |
| 46 | cflags: [ |
| 47 | "-Werror", |
| 48 | "-Wall", |
| 49 | ], |
| 50 | |
| 51 | test_suites: ["device-tests"], |
| 52 | |
| 53 | } |
jiabin | b3f9804 | 2019-09-26 17:56:44 -0700 | [diff] [blame] | 54 | |
| 55 | |
| 56 | cc_test { |
| 57 | name: "audio_health_tests", |
jiabin | 30eee0e | 2020-11-10 17:15:17 -0800 | [diff] [blame] | 58 | require_root: true, |
jiabin | b3f9804 | 2019-09-26 17:56:44 -0700 | [diff] [blame] | 59 | |
| 60 | shared_libs: [ |
| 61 | "libaudiofoundation", |
| 62 | "libaudioclient", |
| 63 | "libaudiopolicymanagerdefault", |
| 64 | "liblog", |
| 65 | "libmedia_helper", |
| 66 | "libutils", |
| 67 | ], |
| 68 | |
| 69 | static_libs: ["libaudiopolicycomponents"], |
| 70 | |
| 71 | header_libs: [ |
| 72 | "libaudiopolicyengine_interface_headers", |
| 73 | "libaudiopolicymanager_interface_headers", |
| 74 | ], |
| 75 | |
| 76 | srcs: ["audio_health_tests.cpp"], |
| 77 | |
| 78 | cflags: [ |
| 79 | "-Werror", |
| 80 | "-Wall", |
| 81 | ], |
| 82 | |
| 83 | test_suites: ["device-tests"], |
| 84 | |
| 85 | } |