blob: ccfbea39df647e1fc41b70a7b4ff56e6cd0d0870 [file] [log] [blame]
Bob Badour948e6aa2021-02-12 21:02:31 -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
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070010cc_defaults {
11 name: "libaaudio_tests_defaults",
12 cflags: [
13 "-Wall",
14 "-Werror",
15 ],
16}
17
Dan Willemsenb44c69e2017-10-23 17:15:03 -070018cc_test {
19 name: "test_aaudio_marshalling",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070020 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070021 srcs: ["test_marshalling.cpp"],
22 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +020023 "libaaudio_internal",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070024 "libbinder",
25 "libcutils",
26 "libutils",
27 ],
28}
29
30cc_test {
Phil Burkd1bdb202017-07-19 13:59:26 -070031 name: "test_clock_model",
32 defaults: ["libaaudio_tests_defaults"],
33 srcs: ["test_clock_model.cpp"],
34 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +020035 "libaaudio_internal",
Phil Burkd1bdb202017-07-19 13:59:26 -070036 "libaudioutils",
37 "libcutils",
38 "libutils",
39 ],
40}
41
42cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070043 name: "test_block_adapter",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070044 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070045 srcs: ["test_block_adapter.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +020046 shared_libs: ["libaaudio_internal"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070047}
48
49cc_test {
50 name: "test_timestamps",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070051 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070052 srcs: ["test_timestamps.cpp"],
53 header_libs: ["libaaudio_example_utils"],
54 shared_libs: ["libaaudio"],
55}
56
57cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070058 name: "test_open_params",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070059 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070060 srcs: ["test_open_params.cpp"],
61 shared_libs: [
62 "libaaudio",
63 "libbinder",
64 "libcutils",
65 "libutils",
66 ],
67}
68
69cc_test {
70 name: "test_no_close",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070071 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070072 srcs: ["test_no_close.cpp"],
73 shared_libs: [
74 "libaaudio",
75 "libbinder",
76 "libcutils",
77 "libutils",
78 ],
79}
80
81cc_test {
82 name: "test_aaudio_recovery",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070083 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070084 srcs: ["test_recovery.cpp"],
85 shared_libs: [
86 "libaaudio",
87 "libbinder",
88 "libcutils",
89 "libutils",
90 ],
91}
92
93cc_test {
94 name: "test_n_streams",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070095 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070096 srcs: ["test_n_streams.cpp"],
97 shared_libs: [
98 "libaaudio",
99 "libbinder",
100 "libcutils",
101 "libutils",
102 ],
103}
104
105cc_test {
106 name: "test_bad_disconnect",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -0700107 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700108 srcs: ["test_bad_disconnect.cpp"],
109 shared_libs: [
110 "libaaudio",
111 "libbinder",
112 "libcutils",
113 "libutils",
114 ],
115}
Phil Burk9a9e6002017-11-17 12:17:37 -0800116
117cc_test {
118 name: "test_various",
119 defaults: ["libaaudio_tests_defaults"],
120 srcs: ["test_various.cpp"],
121 shared_libs: [
122 "libaaudio",
123 "libbinder",
124 "libcutils",
125 "libutils",
126 ],
127}
Phil Burk86938672017-11-27 13:49:40 -0800128
129cc_test {
Phil Burka11f9352018-01-03 15:53:25 -0800130 name: "test_session_id",
131 defaults: ["libaaudio_tests_defaults"],
132 srcs: ["test_session_id.cpp"],
133 shared_libs: [
134 "libaaudio",
135 "libbinder",
136 "libcutils",
137 "libutils",
138 ],
139}
140
141cc_test {
Phil Burk86938672017-11-27 13:49:40 -0800142 name: "test_aaudio_monkey",
143 defaults: ["libaaudio_tests_defaults"],
144 srcs: ["test_aaudio_monkey.cpp"],
145 header_libs: ["libaaudio_example_utils"],
146 shared_libs: [
147 "libaaudio",
148 "libbinder",
149 "libcutils",
150 "libutils",
151 ],
152}
Phil Burkf9d1b992017-12-21 16:54:18 -0800153
154cc_test {
155 name: "test_attributes",
156 defaults: ["libaaudio_tests_defaults"],
157 srcs: ["test_attributes.cpp"],
158 shared_libs: [
159 "libaaudio",
160 "libbinder",
161 "libcutils",
162 "libutils",
163 ],
164}
Phil Burk381708a2018-02-14 16:02:50 -0800165
166cc_test {
167 name: "test_interference",
168 defaults: ["libaaudio_tests_defaults"],
169 srcs: ["test_interference.cpp"],
170 shared_libs: [
171 "libaaudio",
172 "libbinder",
173 "libcutils",
174 "libutils",
175 ],
176}
Phil Burk217a14f2018-04-23 10:33:06 -0700177
178cc_test {
179 name: "test_atomic_fifo",
180 defaults: ["libaaudio_tests_defaults"],
181 srcs: ["test_atomic_fifo.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +0200182 shared_libs: ["libaaudio_internal"],
Phil Burk217a14f2018-04-23 10:33:06 -0700183}
Phil Burkbb78a732018-03-28 15:37:19 -0700184
185cc_test {
186 name: "test_flowgraph",
187 defaults: ["libaaudio_tests_defaults"],
188 srcs: ["test_flowgraph.cpp"],
189 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +0200190 "libaaudio_internal",
Phil Burkbb78a732018-03-28 15:37:19 -0700191 "libbinder",
192 "libcutils",
193 "libutils",
194 ],
195}
Phil Burk61cf6c12018-12-10 14:00:29 -0800196
197cc_test {
198 name: "test_return_stop",
199 defaults: ["libaaudio_tests_defaults"],
200 srcs: ["test_return_stop.cpp"],
201 shared_libs: [
202 "libaaudio",
203 "libbinder",
204 "libcutils",
205 "libutils",
206 ],
207}
Phil Burka7138f12019-03-29 17:21:25 -0700208
209cc_test {
Phil Burk42471cc2019-06-10 14:39:01 -0700210 name: "test_stop_hang",
211 defaults: ["libaaudio_tests_defaults"],
212 srcs: ["test_stop_hang.cpp"],
213 shared_libs: [
214 "libaaudio",
215 "libbinder",
216 "libcutils",
217 "libutils",
218 ],
219}
220
221cc_test {
Phil Burka7138f12019-03-29 17:21:25 -0700222 name: "test_full_queue",
223 defaults: ["libaaudio_tests_defaults"],
224 srcs: ["test_full_queue.cpp"],
225 shared_libs: ["libaaudio"],
226}
Phil Burkcc34ecf2019-10-04 16:10:01 -0700227
228cc_test {
229 name: "test_histogram",
230 defaults: ["libaaudio_tests_defaults"],
231 srcs: ["test_histogram.cpp"],
232 shared_libs: [
233 "libaudioutils",
234 "libcutils",
235 "libutils",
236 ],
237}
Phil Burk4756a9f2020-05-01 16:53:13 -0700238
239cc_test {
240 name: "test_steal_exclusive",
241 defaults: ["libaaudio_tests_defaults"],
242 srcs: ["test_steal_exclusive.cpp"],
243 shared_libs: [
244 "libaaudio",
Phil Burkb9e4fd42020-05-29 08:42:04 -0700245 "liblog",
Phil Burk4756a9f2020-05-01 16:53:13 -0700246 "libbinder",
247 "libcutils",
248 "libutils",
249 ],
250}