1package {
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
10cc_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",
28        "libpermission",
29        "libbinder",
30    ],
31
32    static_libs: [
33        "libaudiopolicycomponents",
34        "libgmock"
35    ],
36
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}
55
56
57cc_test {
58    name: "audio_health_tests",
59    require_root: true,
60
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}
87