• 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
10// general test config
11cc_defaults {
12    name: "libmediautils_tests_config",
13
14    host_supported: true,
15
16    cflags: [
17        "-Wall",
18        "-Werror",
19        "-Wextra",
20    ],
21
22    sanitize: {
23        undefined: true,
24        misc_undefined: [
25            "float-divide-by-zero",
26            "local-bounds",
27        ],
28        integer_overflow: true,
29        cfi: true,
30        memtag_heap: true,
31        diag: {
32            undefined: true,
33            misc_undefined: [
34                "float-divide-by-zero",
35                "local-bounds",
36            ],
37            integer_overflow: true,
38            cfi: true,
39            memtag_heap: true,
40        },
41    },
42    target: {
43        host: {
44            sanitize: {
45                cfi: false,
46                diag: {
47                    cfi: false,
48                },
49            },
50        },
51    },
52}
53
54cc_defaults {
55    name: "libmediautils_tests_defaults",
56
57    defaults: ["libmediautils_tests_config"],
58
59    host_supported: true,
60
61    shared_libs: [
62        "libbinder",
63        "liblog",
64        "libmediautils",
65        "libutils",
66    ],
67}
68
69cc_test_library {
70    name: "libsharedtest",
71
72    defaults: ["libmediautils_tests_defaults"],
73
74    srcs: [
75        "sharedtest.cpp",
76    ],
77}
78
79cc_test {
80    name: "library_tests",
81
82    defaults: ["libmediautils_tests_defaults"],
83
84    data_libs: [
85        "libsharedtest",
86    ],
87
88    shared_libs: [
89        "libbase",
90    ],
91
92    srcs: [
93        "library_tests.cpp",
94    ],
95}
96
97cc_test {
98    name: "libmediautils_test",
99
100    defaults: ["libmediautils_tests_defaults"],
101
102    srcs: [
103        "memory-test.cpp",
104    ],
105}
106
107cc_test {
108    name: "media_process_tests",
109
110    defaults: ["libmediautils_tests_defaults"],
111
112    srcs: [
113        "media_process_tests.cpp",
114    ],
115}
116
117cc_test {
118    name: "media_synchronization_tests",
119
120    defaults: ["libmediautils_tests_defaults"],
121
122    srcs: [
123        "media_synchronization_tests.cpp",
124    ],
125}
126
127cc_test {
128    name: "media_threadsnapshot_tests",
129
130    defaults: ["libmediautils_tests_defaults"],
131
132    srcs: [
133        "media_threadsnapshot_tests.cpp",
134    ],
135}
136
137cc_test {
138    name: "mediautils_fixedstring_tests",
139
140    defaults: ["libmediautils_tests_defaults"],
141
142    shared_libs: [
143        "libaudioutils",
144    ],
145
146    srcs: [
147        "mediautils_fixedstring_tests.cpp",
148    ],
149}
150
151cc_test {
152    name: "mediautils_scopedstatistics_tests",
153
154    defaults: ["libmediautils_tests_defaults"],
155
156    shared_libs: [
157        "libaudioutils",
158    ],
159
160    srcs: [
161        "mediautils_scopedstatistics_tests.cpp",
162    ],
163}
164
165cc_test {
166    name: "methodstatistics_tests",
167
168    defaults: ["libmediautils_tests_defaults"],
169
170    shared_libs: [
171        "libaudioutils",
172    ],
173
174    srcs: [
175        "methodstatistics_tests.cpp",
176    ],
177}
178
179cc_test {
180    name: "static_string_tests",
181
182    defaults: ["libmediautils_tests_defaults"],
183
184    srcs: [
185        "static_string_view_tests.cpp",
186    ],
187}
188
189cc_test {
190    name: "timecheck_tests",
191
192    defaults: ["libmediautils_tests_defaults"],
193
194    srcs: [
195        "timecheck_tests.cpp",
196    ],
197}
198
199cc_test {
200    name: "timerthread_tests",
201
202    defaults: ["libmediautils_tests_defaults"],
203
204    srcs: [
205        "TimerThread-test.cpp",
206    ],
207}
208
209cc_test {
210    name: "extended_accumulator_tests",
211
212    defaults: ["libmediautils_tests_defaults"],
213
214    srcs: [
215        "extended_accumulator_tests.cpp",
216    ],
217}
218
219cc_test {
220    name: "inplace_function_tests",
221
222    defaults: ["libmediautils_tests_defaults"],
223
224    srcs: [
225        "inplace_function_tests.cpp",
226    ],
227}
228
229cc_test {
230    name: "shared_memory_allocator_tests",
231    defaults: ["libmediautils_tests_defaults"],
232    srcs: [
233        "shared_memory_allocator_tests.cpp",
234    ],
235}
236