• 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_defaults {
11    name: "libaaudio_tests_defaults",
12    cflags: [
13        "-Wall",
14        "-Werror",
15    ],
16}
17
18cc_test {
19    name: "test_aaudio_marshalling",
20    defaults: ["libaaudio_tests_defaults"],
21    srcs: ["test_marshalling.cpp"],
22    shared_libs: [
23        "aaudio-aidl-cpp",
24        "libaaudio_internal",
25        "libbinder",
26        "libcutils",
27        "libutils",
28        "shared-file-region-aidl-cpp",
29    ],
30}
31
32cc_test {
33    name: "test_clock_model",
34    defaults: ["libaaudio_tests_defaults"],
35    srcs: ["test_clock_model.cpp"],
36    shared_libs: [
37        "libaaudio_internal",
38        "libaudioutils",
39        "libcutils",
40        "libutils",
41    ],
42}
43
44cc_test {
45    name: "test_block_adapter",
46    defaults: ["libaaudio_tests_defaults"],
47    srcs: ["test_block_adapter.cpp"],
48    shared_libs: ["libaaudio_internal"],
49}
50
51cc_test {
52    name: "test_timestamps",
53    defaults: ["libaaudio_tests_defaults"],
54    srcs: ["test_timestamps.cpp"],
55    header_libs: ["libaaudio_example_utils"],
56    shared_libs: ["libaaudio"],
57}
58
59cc_test {
60    name: "test_open_params",
61    defaults: ["libaaudio_tests_defaults"],
62    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",
73    defaults: ["libaaudio_tests_defaults"],
74    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",
85    defaults: ["libaaudio_tests_defaults"],
86    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",
97    defaults: ["libaaudio_tests_defaults"],
98    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",
109    defaults: ["libaaudio_tests_defaults"],
110    srcs: ["test_bad_disconnect.cpp"],
111    shared_libs: [
112        "libaaudio",
113        "libbinder",
114        "libcutils",
115        "libutils",
116    ],
117}
118
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}
130
131cc_test {
132    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 {
144    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}
155
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}
167
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}
179
180cc_test {
181    name: "test_atomic_fifo",
182    defaults: ["libaaudio_tests_defaults"],
183    srcs: ["test_atomic_fifo.cpp"],
184    shared_libs: ["libaaudio_internal"],
185}
186
187cc_test {
188    name: "test_flowgraph",
189    defaults: ["libaaudio_tests_defaults"],
190    srcs: ["test_flowgraph.cpp"],
191    shared_libs: [
192        "libaaudio_internal",
193        "libbinder",
194        "libcutils",
195        "libutils",
196    ],
197}
198
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}
210
211cc_test {
212    name: "test_callback_race",
213    defaults: ["libaaudio_tests_defaults"],
214    srcs: ["test_callback_race.cpp"],
215    shared_libs: [
216        "libaaudio",
217        "libbinder",
218        "libcutils",
219        "libutils",
220    ],
221}
222
223cc_test {
224    name: "test_full_queue",
225    defaults: ["libaaudio_tests_defaults"],
226    srcs: ["test_full_queue.cpp"],
227    shared_libs: ["libaaudio"],
228}
229
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}
240
241cc_test {
242    name: "test_steal_exclusive",
243    defaults: ["libaaudio_tests_defaults"],
244    srcs: ["test_steal_exclusive.cpp"],
245    shared_libs: [
246        "libaaudio",
247        "liblog",
248        "libbinder",
249        "libcutils",
250        "libutils",
251    ],
252}
253
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}
266