blob: 95d6543ba391b052592f472c6a57e325528206a1 [file] [log] [blame]
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -07001cc_defaults {
2 name: "libaaudio_tests_defaults",
3 cflags: [
4 "-Wall",
5 "-Werror",
6 ],
7}
8
Dan Willemsenb44c69e2017-10-23 17:15:03 -07009cc_test {
10 name: "test_aaudio_marshalling",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070011 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070012 srcs: ["test_marshalling.cpp"],
13 shared_libs: [
Ytai Ben-Tsvic5f45872020-08-18 10:39:44 -070014 "aaudio-aidl-cpp",
dimitry2d2f17c2019-07-17 13:55:16 +020015 "libaaudio_internal",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070016 "libbinder",
17 "libcutils",
18 "libutils",
Ytai Ben-Tsvic5f45872020-08-18 10:39:44 -070019 "shared-file-region-aidl-unstable-cpp",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070020 ],
21}
22
23cc_test {
Phil Burkd1bdb202017-07-19 13:59:26 -070024 name: "test_clock_model",
25 defaults: ["libaaudio_tests_defaults"],
26 srcs: ["test_clock_model.cpp"],
27 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +020028 "libaaudio_internal",
Phil Burkd1bdb202017-07-19 13:59:26 -070029 "libaudioutils",
30 "libcutils",
31 "libutils",
32 ],
33}
34
35cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070036 name: "test_block_adapter",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070037 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070038 srcs: ["test_block_adapter.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +020039 shared_libs: ["libaaudio_internal"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070040}
41
42cc_test {
43 name: "test_timestamps",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070044 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070045 srcs: ["test_timestamps.cpp"],
46 header_libs: ["libaaudio_example_utils"],
47 shared_libs: ["libaaudio"],
48}
49
50cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070051 name: "test_open_params",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070052 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070053 srcs: ["test_open_params.cpp"],
54 shared_libs: [
55 "libaaudio",
56 "libbinder",
57 "libcutils",
58 "libutils",
59 ],
60}
61
62cc_test {
63 name: "test_no_close",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070064 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070065 srcs: ["test_no_close.cpp"],
66 shared_libs: [
67 "libaaudio",
68 "libbinder",
69 "libcutils",
70 "libutils",
71 ],
72}
73
74cc_test {
75 name: "test_aaudio_recovery",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070076 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070077 srcs: ["test_recovery.cpp"],
78 shared_libs: [
79 "libaaudio",
80 "libbinder",
81 "libcutils",
82 "libutils",
83 ],
84}
85
86cc_test {
87 name: "test_n_streams",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070088 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070089 srcs: ["test_n_streams.cpp"],
90 shared_libs: [
91 "libaaudio",
92 "libbinder",
93 "libcutils",
94 "libutils",
95 ],
96}
97
98cc_test {
99 name: "test_bad_disconnect",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -0700100 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -0700101 srcs: ["test_bad_disconnect.cpp"],
102 shared_libs: [
103 "libaaudio",
104 "libbinder",
105 "libcutils",
106 "libutils",
107 ],
108}
Phil Burk9a9e6002017-11-17 12:17:37 -0800109
110cc_test {
111 name: "test_various",
112 defaults: ["libaaudio_tests_defaults"],
113 srcs: ["test_various.cpp"],
114 shared_libs: [
115 "libaaudio",
116 "libbinder",
117 "libcutils",
118 "libutils",
119 ],
120}
Phil Burk86938672017-11-27 13:49:40 -0800121
122cc_test {
Phil Burka11f9352018-01-03 15:53:25 -0800123 name: "test_session_id",
124 defaults: ["libaaudio_tests_defaults"],
125 srcs: ["test_session_id.cpp"],
126 shared_libs: [
127 "libaaudio",
128 "libbinder",
129 "libcutils",
130 "libutils",
131 ],
132}
133
134cc_test {
Phil Burk86938672017-11-27 13:49:40 -0800135 name: "test_aaudio_monkey",
136 defaults: ["libaaudio_tests_defaults"],
137 srcs: ["test_aaudio_monkey.cpp"],
138 header_libs: ["libaaudio_example_utils"],
139 shared_libs: [
140 "libaaudio",
141 "libbinder",
142 "libcutils",
143 "libutils",
144 ],
145}
Phil Burkf9d1b992017-12-21 16:54:18 -0800146
147cc_test {
148 name: "test_attributes",
149 defaults: ["libaaudio_tests_defaults"],
150 srcs: ["test_attributes.cpp"],
151 shared_libs: [
152 "libaaudio",
153 "libbinder",
154 "libcutils",
155 "libutils",
156 ],
157}
Phil Burk381708a2018-02-14 16:02:50 -0800158
159cc_test {
160 name: "test_interference",
161 defaults: ["libaaudio_tests_defaults"],
162 srcs: ["test_interference.cpp"],
163 shared_libs: [
164 "libaaudio",
165 "libbinder",
166 "libcutils",
167 "libutils",
168 ],
169}
Phil Burk217a14f2018-04-23 10:33:06 -0700170
171cc_test {
172 name: "test_atomic_fifo",
173 defaults: ["libaaudio_tests_defaults"],
174 srcs: ["test_atomic_fifo.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +0200175 shared_libs: ["libaaudio_internal"],
Phil Burk217a14f2018-04-23 10:33:06 -0700176}
Phil Burkbb78a732018-03-28 15:37:19 -0700177
178cc_test {
179 name: "test_flowgraph",
180 defaults: ["libaaudio_tests_defaults"],
181 srcs: ["test_flowgraph.cpp"],
182 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +0200183 "libaaudio_internal",
Phil Burkbb78a732018-03-28 15:37:19 -0700184 "libbinder",
185 "libcutils",
186 "libutils",
187 ],
188}
Phil Burk61cf6c12018-12-10 14:00:29 -0800189
190cc_test {
191 name: "test_return_stop",
192 defaults: ["libaaudio_tests_defaults"],
193 srcs: ["test_return_stop.cpp"],
194 shared_libs: [
195 "libaaudio",
196 "libbinder",
197 "libcutils",
198 "libutils",
199 ],
200}
Phil Burka7138f12019-03-29 17:21:25 -0700201
202cc_test {
Phil Burk42471cc2019-06-10 14:39:01 -0700203 name: "test_stop_hang",
204 defaults: ["libaaudio_tests_defaults"],
205 srcs: ["test_stop_hang.cpp"],
206 shared_libs: [
207 "libaaudio",
208 "libbinder",
209 "libcutils",
210 "libutils",
211 ],
212}
213
214cc_test {
Phil Burka7138f12019-03-29 17:21:25 -0700215 name: "test_full_queue",
216 defaults: ["libaaudio_tests_defaults"],
217 srcs: ["test_full_queue.cpp"],
218 shared_libs: ["libaaudio"],
219}
Phil Burkcc34ecf2019-10-04 16:10:01 -0700220
221cc_test {
222 name: "test_histogram",
223 defaults: ["libaaudio_tests_defaults"],
224 srcs: ["test_histogram.cpp"],
225 shared_libs: [
226 "libaudioutils",
227 "libcutils",
228 "libutils",
229 ],
230}
Phil Burk4756a9f2020-05-01 16:53:13 -0700231
232cc_test {
233 name: "test_steal_exclusive",
234 defaults: ["libaaudio_tests_defaults"],
235 srcs: ["test_steal_exclusive.cpp"],
236 shared_libs: [
237 "libaaudio",
Phil Burkb9e4fd42020-05-29 08:42:04 -0700238 "liblog",
Phil Burk4756a9f2020-05-01 16:53:13 -0700239 "libbinder",
240 "libcutils",
241 "libutils",
242 ],
243}