• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "framework-permission-aidl-cpp",
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        "android.media.audio.common.types-V1-cpp",
69        "libaudioclient_aidl_conversion",
70        "libstagefright_foundation",
71        "libshmemcompat",
72        "libshmemutil",
73        "audioclient-types-aidl-cpp",
74    ],
75
76    static_libs: ["libaudiopolicycomponents"],
77
78    header_libs: [
79        "libaudiopolicyengine_interface_headers",
80        "libaudiopolicymanager_interface_headers",
81    ],
82
83    srcs: ["audio_health_tests.cpp"],
84
85    cflags: [
86        "-Werror",
87        "-Wall",
88    ],
89
90    test_suites: ["device-tests"],
91
92}
93