Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | package { |
| 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 | |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "libaaudio_tests_defaults", |
| 12 | cflags: [ |
| 13 | "-Wall", |
| 14 | "-Werror", |
| 15 | ], |
| 16 | } |
| 17 | |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 18 | cc_test { |
| 19 | name: "test_aaudio_marshalling", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 20 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 21 | srcs: ["test_marshalling.cpp"], |
| 22 | shared_libs: [ |
Ytai Ben-Tsvi | c5f4587 | 2020-08-18 10:39:44 -0700 | [diff] [blame] | 23 | "aaudio-aidl-cpp", |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 24 | "libaaudio_internal", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 25 | "libbinder", |
| 26 | "libcutils", |
| 27 | "libutils", |
Jeongik Cha | 7f2285b | 2021-01-28 00:49:46 +0900 | [diff] [blame] | 28 | "shared-file-region-aidl-cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 29 | ], |
| 30 | } |
| 31 | |
| 32 | cc_test { |
Phil Burk | d1bdb20 | 2017-07-19 13:59:26 -0700 | [diff] [blame] | 33 | name: "test_clock_model", |
| 34 | defaults: ["libaaudio_tests_defaults"], |
| 35 | srcs: ["test_clock_model.cpp"], |
| 36 | shared_libs: [ |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 37 | "libaaudio_internal", |
Phil Burk | d1bdb20 | 2017-07-19 13:59:26 -0700 | [diff] [blame] | 38 | "libaudioutils", |
| 39 | "libcutils", |
| 40 | "libutils", |
| 41 | ], |
| 42 | } |
| 43 | |
| 44 | cc_test { |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 45 | name: "test_block_adapter", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 46 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 47 | srcs: ["test_block_adapter.cpp"], |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 48 | shared_libs: ["libaaudio_internal"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | cc_test { |
| 52 | name: "test_timestamps", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 53 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 54 | srcs: ["test_timestamps.cpp"], |
| 55 | header_libs: ["libaaudio_example_utils"], |
| 56 | shared_libs: ["libaaudio"], |
| 57 | } |
| 58 | |
| 59 | cc_test { |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 60 | name: "test_open_params", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 61 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 62 | srcs: ["test_open_params.cpp"], |
| 63 | shared_libs: [ |
| 64 | "libaaudio", |
| 65 | "libbinder", |
| 66 | "libcutils", |
| 67 | "libutils", |
| 68 | ], |
| 69 | } |
| 70 | |
| 71 | cc_test { |
| 72 | name: "test_no_close", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 73 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 74 | srcs: ["test_no_close.cpp"], |
| 75 | shared_libs: [ |
| 76 | "libaaudio", |
| 77 | "libbinder", |
| 78 | "libcutils", |
| 79 | "libutils", |
| 80 | ], |
| 81 | } |
| 82 | |
| 83 | cc_test { |
| 84 | name: "test_aaudio_recovery", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 85 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 86 | srcs: ["test_recovery.cpp"], |
| 87 | shared_libs: [ |
| 88 | "libaaudio", |
| 89 | "libbinder", |
| 90 | "libcutils", |
| 91 | "libutils", |
| 92 | ], |
| 93 | } |
| 94 | |
| 95 | cc_test { |
| 96 | name: "test_n_streams", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 97 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 98 | srcs: ["test_n_streams.cpp"], |
| 99 | shared_libs: [ |
| 100 | "libaaudio", |
| 101 | "libbinder", |
| 102 | "libcutils", |
| 103 | "libutils", |
| 104 | ], |
| 105 | } |
| 106 | |
| 107 | cc_test { |
| 108 | name: "test_bad_disconnect", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 109 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 110 | srcs: ["test_bad_disconnect.cpp"], |
| 111 | shared_libs: [ |
| 112 | "libaaudio", |
| 113 | "libbinder", |
| 114 | "libcutils", |
| 115 | "libutils", |
| 116 | ], |
| 117 | } |
Phil Burk | 9a9e600 | 2017-11-17 12:17:37 -0800 | [diff] [blame] | 118 | |
| 119 | cc_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 | } |
Phil Burk | 8693867 | 2017-11-27 13:49:40 -0800 | [diff] [blame] | 130 | |
| 131 | cc_test { |
Phil Burk | a11f935 | 2018-01-03 15:53:25 -0800 | [diff] [blame] | 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 | |
| 143 | cc_test { |
Phil Burk | 8693867 | 2017-11-27 13:49:40 -0800 | [diff] [blame] | 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 | } |
Phil Burk | f9d1b99 | 2017-12-21 16:54:18 -0800 | [diff] [blame] | 155 | |
| 156 | cc_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 | } |
Phil Burk | 381708a | 2018-02-14 16:02:50 -0800 | [diff] [blame] | 167 | |
| 168 | cc_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 | } |
Phil Burk | 217a14f | 2018-04-23 10:33:06 -0700 | [diff] [blame] | 179 | |
| 180 | cc_test { |
| 181 | name: "test_atomic_fifo", |
| 182 | defaults: ["libaaudio_tests_defaults"], |
| 183 | srcs: ["test_atomic_fifo.cpp"], |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 184 | shared_libs: ["libaaudio_internal"], |
Phil Burk | 217a14f | 2018-04-23 10:33:06 -0700 | [diff] [blame] | 185 | } |
Phil Burk | bb78a73 | 2018-03-28 15:37:19 -0700 | [diff] [blame] | 186 | |
| 187 | cc_test { |
| 188 | name: "test_flowgraph", |
| 189 | defaults: ["libaaudio_tests_defaults"], |
| 190 | srcs: ["test_flowgraph.cpp"], |
| 191 | shared_libs: [ |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 192 | "libaaudio_internal", |
Phil Burk | bb78a73 | 2018-03-28 15:37:19 -0700 | [diff] [blame] | 193 | "libbinder", |
| 194 | "libcutils", |
| 195 | "libutils", |
| 196 | ], |
| 197 | } |
Phil Burk | 61cf6c1 | 2018-12-10 14:00:29 -0800 | [diff] [blame] | 198 | |
| 199 | cc_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 | } |
Phil Burk | a7138f1 | 2019-03-29 17:21:25 -0700 | [diff] [blame] | 210 | |
| 211 | cc_test { |
Phil Burk | 2191c4c | 2019-10-24 14:14:59 -0700 | [diff] [blame] | 212 | name: "test_callback_race", |
Phil Burk | 42471cc | 2019-06-10 14:39:01 -0700 | [diff] [blame] | 213 | defaults: ["libaaudio_tests_defaults"], |
Phil Burk | 2191c4c | 2019-10-24 14:14:59 -0700 | [diff] [blame] | 214 | srcs: ["test_callback_race.cpp"], |
Phil Burk | 42471cc | 2019-06-10 14:39:01 -0700 | [diff] [blame] | 215 | shared_libs: [ |
| 216 | "libaaudio", |
| 217 | "libbinder", |
| 218 | "libcutils", |
| 219 | "libutils", |
| 220 | ], |
| 221 | } |
| 222 | |
| 223 | cc_test { |
Phil Burk | a7138f1 | 2019-03-29 17:21:25 -0700 | [diff] [blame] | 224 | name: "test_full_queue", |
| 225 | defaults: ["libaaudio_tests_defaults"], |
| 226 | srcs: ["test_full_queue.cpp"], |
| 227 | shared_libs: ["libaaudio"], |
| 228 | } |
Phil Burk | cc34ecf | 2019-10-04 16:10:01 -0700 | [diff] [blame] | 229 | |
| 230 | cc_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 | } |
Phil Burk | 4756a9f | 2020-05-01 16:53:13 -0700 | [diff] [blame] | 240 | |
| 241 | cc_test { |
| 242 | name: "test_steal_exclusive", |
| 243 | defaults: ["libaaudio_tests_defaults"], |
| 244 | srcs: ["test_steal_exclusive.cpp"], |
| 245 | shared_libs: [ |
| 246 | "libaaudio", |
Phil Burk | b9e4fd4 | 2020-05-29 08:42:04 -0700 | [diff] [blame] | 247 | "liblog", |
Phil Burk | 4756a9f | 2020-05-01 16:53:13 -0700 | [diff] [blame] | 248 | "libbinder", |
| 249 | "libcutils", |
| 250 | "libutils", |
| 251 | ], |
| 252 | } |
Phil Burk | 58a8737 | 2021-04-02 00:07:34 +0000 | [diff] [blame] | 253 | |
| 254 | |
| 255 | cc_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 | } |