blob: f9eebd7b2120ec02cd3f084c6d542124ed7fd91d [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
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: [
Ytai Ben-Tsvic5f45872020-08-18 10:39:44 -070023 "aaudio-aidl-cpp",
dimitry2d2f17c2019-07-17 13:55:16 +020024 "libaaudio_internal",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070025 "libbinder",
26 "libcutils",
27 "libutils",
Jeongik Cha7f2285b2021-01-28 00:49:46 +090028 "shared-file-region-aidl-cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070029 ],
30}
31
32cc_test {
Phil Burkd1bdb202017-07-19 13:59:26 -070033 name: "test_clock_model",
34 defaults: ["libaaudio_tests_defaults"],
35 srcs: ["test_clock_model.cpp"],
36 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +020037 "libaaudio_internal",
Phil Burkd1bdb202017-07-19 13:59:26 -070038 "libaudioutils",
39 "libcutils",
40 "libutils",
41 ],
42}
43
44cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070045 name: "test_block_adapter",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070046 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070047 srcs: ["test_block_adapter.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +020048 shared_libs: ["libaaudio_internal"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070049}
50
51cc_test {
52 name: "test_timestamps",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070053 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070054 srcs: ["test_timestamps.cpp"],
55 header_libs: ["libaaudio_example_utils"],
56 shared_libs: ["libaaudio"],
57}
58
59cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070060 name: "test_open_params",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070061 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070062 srcs: ["test_open_params.cpp"],
63 shared_libs: [
64 "libaaudio",
65 "libbinder",
66 "libcutils",
67 "libutils",
68 ],
69}
70
71cc_test {
72 name: "test_no_close",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070073 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070074 srcs: ["test_no_close.cpp"],
75 shared_libs: [
76 "libaaudio",
77 "libbinder",
78 "libcutils",
79 "libutils",
80 ],
81}
82
83cc_test {
84 name: "test_aaudio_recovery",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070085 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070086 srcs: ["test_recovery.cpp"],
87 shared_libs: [
88 "libaaudio",
89 "libbinder",
90 "libcutils",
91 "libutils",
92 ],
93}
94
95cc_test {
96 name: "test_n_streams",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070097 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070098 srcs: ["test_n_streams.cpp"],
99 shared_libs: [
100 "libaaudio",
101 "libbinder",
102 "libcutils",
103 "libutils",
104 ],
105}
106
107cc_test {
108 name: "test_bad_disconnect",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -0700109 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700110 srcs: ["test_bad_disconnect.cpp"],
111 shared_libs: [
112 "libaaudio",
113 "libbinder",
114 "libcutils",
115 "libutils",
116 ],
117}
Phil Burk9a9e6002017-11-17 12:17:37 -0800118
119cc_test {
120 name: "test_various",
121 defaults: ["libaaudio_tests_defaults"],
122 srcs: ["test_various.cpp"],
123 shared_libs: [
124 "libaaudio",
125 "libbinder",
126 "libcutils",
127 "libutils",
128 ],
129}
Phil Burk86938672017-11-27 13:49:40 -0800130
131cc_test {
Phil Burka11f9352018-01-03 15:53:25 -0800132 name: "test_session_id",
133 defaults: ["libaaudio_tests_defaults"],
134 srcs: ["test_session_id.cpp"],
135 shared_libs: [
136 "libaaudio",
137 "libbinder",
138 "libcutils",
139 "libutils",
140 ],
141}
142
143cc_test {
Phil Burk86938672017-11-27 13:49:40 -0800144 name: "test_aaudio_monkey",
145 defaults: ["libaaudio_tests_defaults"],
146 srcs: ["test_aaudio_monkey.cpp"],
147 header_libs: ["libaaudio_example_utils"],
148 shared_libs: [
149 "libaaudio",
150 "libbinder",
151 "libcutils",
152 "libutils",
153 ],
154}
Phil Burkf9d1b992017-12-21 16:54:18 -0800155
156cc_test {
157 name: "test_attributes",
158 defaults: ["libaaudio_tests_defaults"],
159 srcs: ["test_attributes.cpp"],
160 shared_libs: [
161 "libaaudio",
162 "libbinder",
163 "libcutils",
164 "libutils",
165 ],
166}
Phil Burk381708a2018-02-14 16:02:50 -0800167
168cc_test {
169 name: "test_interference",
170 defaults: ["libaaudio_tests_defaults"],
171 srcs: ["test_interference.cpp"],
172 shared_libs: [
173 "libaaudio",
174 "libbinder",
175 "libcutils",
176 "libutils",
177 ],
178}
Phil Burk217a14f2018-04-23 10:33:06 -0700179
180cc_test {
181 name: "test_atomic_fifo",
182 defaults: ["libaaudio_tests_defaults"],
183 srcs: ["test_atomic_fifo.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +0200184 shared_libs: ["libaaudio_internal"],
Phil Burk217a14f2018-04-23 10:33:06 -0700185}
Phil Burkbb78a732018-03-28 15:37:19 -0700186
187cc_test {
188 name: "test_flowgraph",
189 defaults: ["libaaudio_tests_defaults"],
190 srcs: ["test_flowgraph.cpp"],
191 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +0200192 "libaaudio_internal",
Phil Burkbb78a732018-03-28 15:37:19 -0700193 "libbinder",
194 "libcutils",
195 "libutils",
196 ],
197}
Phil Burk61cf6c12018-12-10 14:00:29 -0800198
199cc_test {
200 name: "test_return_stop",
201 defaults: ["libaaudio_tests_defaults"],
202 srcs: ["test_return_stop.cpp"],
203 shared_libs: [
204 "libaaudio",
205 "libbinder",
206 "libcutils",
207 "libutils",
208 ],
209}
Phil Burka7138f12019-03-29 17:21:25 -0700210
211cc_test {
Phil Burk42471cc2019-06-10 14:39:01 -0700212 name: "test_stop_hang",
213 defaults: ["libaaudio_tests_defaults"],
214 srcs: ["test_stop_hang.cpp"],
215 shared_libs: [
216 "libaaudio",
217 "libbinder",
218 "libcutils",
219 "libutils",
220 ],
221}
222
223cc_test {
Phil Burka7138f12019-03-29 17:21:25 -0700224 name: "test_full_queue",
225 defaults: ["libaaudio_tests_defaults"],
226 srcs: ["test_full_queue.cpp"],
227 shared_libs: ["libaaudio"],
228}
Phil Burkcc34ecf2019-10-04 16:10:01 -0700229
230cc_test {
231 name: "test_histogram",
232 defaults: ["libaaudio_tests_defaults"],
233 srcs: ["test_histogram.cpp"],
234 shared_libs: [
235 "libaudioutils",
236 "libcutils",
237 "libutils",
238 ],
239}
Phil Burk4756a9f2020-05-01 16:53:13 -0700240
241cc_test {
242 name: "test_steal_exclusive",
243 defaults: ["libaaudio_tests_defaults"],
244 srcs: ["test_steal_exclusive.cpp"],
245 shared_libs: [
246 "libaaudio",
Phil Burkb9e4fd42020-05-29 08:42:04 -0700247 "liblog",
Phil Burk4756a9f2020-05-01 16:53:13 -0700248 "libbinder",
249 "libcutils",
250 "libutils",
251 ],
252}
Phil Burk58a87372021-04-02 00:07:34 +0000253
254
255cc_test {
256 name: "test_disconnect_race",
257 defaults: ["libaaudio_tests_defaults"],
258 srcs: ["test_disconnect_race.cpp"],
259 shared_libs: [
260 "libaaudio",
261 "libbinder",
262 "libcutils",
263 "libutils",
264 ],
265}