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