blob: daedf314dc1a2b26f4aa7115005bf5253cf15049 [file] [log] [blame]
jiabinf4eb15a2019-08-28 15:31:47 -07001cc_test {
2 name: "audiopolicy_tests",
3
4 include_dirs: [
5 "frameworks/av/services/audiopolicy",
6 ],
7
8 shared_libs: [
9 "libaudioclient",
10 "libaudiofoundation",
11 "libaudiopolicy",
12 "libaudiopolicymanagerdefault",
13 "libbase",
14 "libhidlbase",
15 "liblog",
16 "libmedia_helper",
17 "libutils",
18 "libxml2",
19 ],
20
Jiabin Huang3b98d322020-09-03 17:54:16 +000021 static_libs: [
22 "libaudiopolicycomponents",
23 "libgmock"
24 ],
jiabinf4eb15a2019-08-28 15:31:47 -070025
26 header_libs: [
27 "libaudiopolicycommon",
28 "libaudiopolicyengine_interface_headers",
29 "libaudiopolicymanager_interface_headers",
30 ],
31
32 srcs: ["audiopolicymanager_tests.cpp"],
33
34 data: [":audiopolicytest_configuration_files",],
35
36 cflags: [
37 "-Werror",
38 "-Wall",
39 ],
40
41 test_suites: ["device-tests"],
42
43}
jiabinb3f98042019-09-26 17:56:44 -070044
45
46cc_test {
47 name: "audio_health_tests",
jiabin30eee0e2020-11-10 17:15:17 -080048 require_root: true,
jiabinb3f98042019-09-26 17:56:44 -070049
50 shared_libs: [
51 "libaudiofoundation",
52 "libaudioclient",
53 "libaudiopolicymanagerdefault",
54 "liblog",
55 "libmedia_helper",
56 "libutils",
57 ],
58
59 static_libs: ["libaudiopolicycomponents"],
60
61 header_libs: [
62 "libaudiopolicyengine_interface_headers",
63 "libaudiopolicymanager_interface_headers",
64 ],
65
66 srcs: ["audio_health_tests.cpp"],
67
68 cflags: [
69 "-Werror",
70 "-Wall",
71 ],
72
73 test_suites: ["device-tests"],
74
75}