blob: b296fb09b8a9141ef84fb72b636e4b8b1896c072 [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
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
jiabinf4eb15a2019-08-28 15:31:47 -070010cc_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",
Svet Ganov33761132021-05-13 22:51:08 +000028 "libpermission",
29 "libbinder",
jiabinf4eb15a2019-08-28 15:31:47 -070030 ],
31
Jiabin Huang3b98d322020-09-03 17:54:16 +000032 static_libs: [
33 "libaudiopolicycomponents",
34 "libgmock"
35 ],
jiabinf4eb15a2019-08-28 15:31:47 -070036
37 header_libs: [
38 "libaudiopolicycommon",
39 "libaudiopolicyengine_interface_headers",
40 "libaudiopolicymanager_interface_headers",
41 ],
42
43 srcs: ["audiopolicymanager_tests.cpp"],
44
45 data: [":audiopolicytest_configuration_files",],
46
47 cflags: [
48 "-Werror",
49 "-Wall",
50 ],
51
52 test_suites: ["device-tests"],
53
54}
jiabinb3f98042019-09-26 17:56:44 -070055
56
57cc_test {
58 name: "audio_health_tests",
jiabin30eee0e2020-11-10 17:15:17 -080059 require_root: true,
jiabinb3f98042019-09-26 17:56:44 -070060
61 shared_libs: [
62 "libaudiofoundation",
63 "libaudioclient",
64 "libaudiopolicymanagerdefault",
65 "liblog",
66 "libmedia_helper",
67 "libutils",
68 ],
69
70 static_libs: ["libaudiopolicycomponents"],
71
72 header_libs: [
73 "libaudiopolicyengine_interface_headers",
74 "libaudiopolicymanager_interface_headers",
75 ],
76
77 srcs: ["audio_health_tests.cpp"],
78
79 cflags: [
80 "-Werror",
81 "-Wall",
82 ],
83
84 test_suites: ["device-tests"],
85
86}