blob: 19cd0a05f34e23d3520c98a1bda62fce14df3055 [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: [
dimitry2d2f17c2019-07-17 13:55:16 +020014 "libaaudio_internal",
Dan Willemsenb44c69e2017-10-23 17:15:03 -070015 "libbinder",
16 "libcutils",
17 "libutils",
18 ],
19}
20
21cc_test {
Phil Burkd1bdb202017-07-19 13:59:26 -070022 name: "test_clock_model",
23 defaults: ["libaaudio_tests_defaults"],
24 srcs: ["test_clock_model.cpp"],
25 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +020026 "libaaudio_internal",
Phil Burkd1bdb202017-07-19 13:59:26 -070027 "libaudioutils",
28 "libcutils",
29 "libutils",
30 ],
31}
32
33cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070034 name: "test_block_adapter",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070035 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070036 srcs: ["test_block_adapter.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +020037 shared_libs: ["libaaudio_internal"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070038}
39
40cc_test {
41 name: "test_timestamps",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070042 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070043 srcs: ["test_timestamps.cpp"],
44 header_libs: ["libaaudio_example_utils"],
45 shared_libs: ["libaaudio"],
46}
47
48cc_test {
Dan Willemsenb44c69e2017-10-23 17:15:03 -070049 name: "test_open_params",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070050 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070051 srcs: ["test_open_params.cpp"],
52 shared_libs: [
53 "libaaudio",
54 "libbinder",
55 "libcutils",
56 "libutils",
57 ],
58}
59
60cc_test {
61 name: "test_no_close",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070062 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070063 srcs: ["test_no_close.cpp"],
64 shared_libs: [
65 "libaaudio",
66 "libbinder",
67 "libcutils",
68 "libutils",
69 ],
70}
71
72cc_test {
73 name: "test_aaudio_recovery",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070074 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070075 srcs: ["test_recovery.cpp"],
76 shared_libs: [
77 "libaaudio",
78 "libbinder",
79 "libcutils",
80 "libutils",
81 ],
82}
83
84cc_test {
85 name: "test_n_streams",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070086 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070087 srcs: ["test_n_streams.cpp"],
88 shared_libs: [
89 "libaaudio",
90 "libbinder",
91 "libcutils",
92 "libutils",
93 ],
94}
95
96cc_test {
97 name: "test_bad_disconnect",
Chih-Hung Hsieh68326fe2017-10-31 13:49:24 -070098 defaults: ["libaaudio_tests_defaults"],
Dan Willemsenb44c69e2017-10-23 17:15:03 -070099 srcs: ["test_bad_disconnect.cpp"],
100 shared_libs: [
101 "libaaudio",
102 "libbinder",
103 "libcutils",
104 "libutils",
105 ],
106}
Phil Burk9a9e6002017-11-17 12:17:37 -0800107
108cc_test {
109 name: "test_various",
110 defaults: ["libaaudio_tests_defaults"],
111 srcs: ["test_various.cpp"],
112 shared_libs: [
113 "libaaudio",
114 "libbinder",
115 "libcutils",
116 "libutils",
117 ],
118}
Phil Burk86938672017-11-27 13:49:40 -0800119
120cc_test {
Phil Burka11f9352018-01-03 15:53:25 -0800121 name: "test_session_id",
122 defaults: ["libaaudio_tests_defaults"],
123 srcs: ["test_session_id.cpp"],
124 shared_libs: [
125 "libaaudio",
126 "libbinder",
127 "libcutils",
128 "libutils",
129 ],
130}
131
132cc_test {
Phil Burk86938672017-11-27 13:49:40 -0800133 name: "test_aaudio_monkey",
134 defaults: ["libaaudio_tests_defaults"],
135 srcs: ["test_aaudio_monkey.cpp"],
136 header_libs: ["libaaudio_example_utils"],
137 shared_libs: [
138 "libaaudio",
139 "libbinder",
140 "libcutils",
141 "libutils",
142 ],
143}
Phil Burkf9d1b992017-12-21 16:54:18 -0800144
145cc_test {
146 name: "test_attributes",
147 defaults: ["libaaudio_tests_defaults"],
148 srcs: ["test_attributes.cpp"],
149 shared_libs: [
150 "libaaudio",
151 "libbinder",
152 "libcutils",
153 "libutils",
154 ],
155}
Phil Burk381708a2018-02-14 16:02:50 -0800156
157cc_test {
158 name: "test_interference",
159 defaults: ["libaaudio_tests_defaults"],
160 srcs: ["test_interference.cpp"],
161 shared_libs: [
162 "libaaudio",
163 "libbinder",
164 "libcutils",
165 "libutils",
166 ],
167}
Phil Burk217a14f2018-04-23 10:33:06 -0700168
169cc_test {
170 name: "test_atomic_fifo",
171 defaults: ["libaaudio_tests_defaults"],
172 srcs: ["test_atomic_fifo.cpp"],
dimitry2d2f17c2019-07-17 13:55:16 +0200173 shared_libs: ["libaaudio_internal"],
Phil Burk217a14f2018-04-23 10:33:06 -0700174}
Phil Burkbb78a732018-03-28 15:37:19 -0700175
176cc_test {
177 name: "test_flowgraph",
178 defaults: ["libaaudio_tests_defaults"],
179 srcs: ["test_flowgraph.cpp"],
180 shared_libs: [
dimitry2d2f17c2019-07-17 13:55:16 +0200181 "libaaudio_internal",
Phil Burkbb78a732018-03-28 15:37:19 -0700182 "libbinder",
183 "libcutils",
184 "libutils",
185 ],
186}
Phil Burk61cf6c12018-12-10 14:00:29 -0800187
188cc_test {
189 name: "test_return_stop",
190 defaults: ["libaaudio_tests_defaults"],
191 srcs: ["test_return_stop.cpp"],
192 shared_libs: [
193 "libaaudio",
194 "libbinder",
195 "libcutils",
196 "libutils",
197 ],
198}
Phil Burka7138f12019-03-29 17:21:25 -0700199
200cc_test {
Phil Burk42471cc2019-06-10 14:39:01 -0700201 name: "test_stop_hang",
202 defaults: ["libaaudio_tests_defaults"],
203 srcs: ["test_stop_hang.cpp"],
204 shared_libs: [
205 "libaaudio",
206 "libbinder",
207 "libcutils",
208 "libutils",
209 ],
210}
211
212cc_test {
Phil Burka7138f12019-03-29 17:21:25 -0700213 name: "test_full_queue",
214 defaults: ["libaaudio_tests_defaults"],
215 srcs: ["test_full_queue.cpp"],
216 shared_libs: ["libaaudio"],
217}