Bob Badour | 948e6aa | 2021-02-12 21:02:31 -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: [ |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 23 | "libaaudio_internal", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 24 | "libbinder", |
| 25 | "libcutils", |
| 26 | "libutils", |
| 27 | ], |
| 28 | } |
| 29 | |
| 30 | cc_test { |
Phil Burk | d1bdb20 | 2017-07-19 13:59:26 -0700 | [diff] [blame] | 31 | name: "test_clock_model", |
| 32 | defaults: ["libaaudio_tests_defaults"], |
| 33 | srcs: ["test_clock_model.cpp"], |
| 34 | shared_libs: [ |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 35 | "libaaudio_internal", |
Phil Burk | d1bdb20 | 2017-07-19 13:59:26 -0700 | [diff] [blame] | 36 | "libaudioutils", |
| 37 | "libcutils", |
| 38 | "libutils", |
| 39 | ], |
| 40 | } |
| 41 | |
| 42 | cc_test { |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 43 | name: "test_block_adapter", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 44 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 45 | srcs: ["test_block_adapter.cpp"], |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 46 | shared_libs: ["libaaudio_internal"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | cc_test { |
| 50 | name: "test_timestamps", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 51 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 52 | srcs: ["test_timestamps.cpp"], |
| 53 | header_libs: ["libaaudio_example_utils"], |
| 54 | shared_libs: ["libaaudio"], |
| 55 | } |
| 56 | |
| 57 | cc_test { |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 58 | name: "test_open_params", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 59 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 60 | srcs: ["test_open_params.cpp"], |
| 61 | shared_libs: [ |
| 62 | "libaaudio", |
| 63 | "libbinder", |
| 64 | "libcutils", |
| 65 | "libutils", |
| 66 | ], |
| 67 | } |
| 68 | |
| 69 | cc_test { |
| 70 | name: "test_no_close", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 71 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 72 | srcs: ["test_no_close.cpp"], |
| 73 | shared_libs: [ |
| 74 | "libaaudio", |
| 75 | "libbinder", |
| 76 | "libcutils", |
| 77 | "libutils", |
| 78 | ], |
| 79 | } |
| 80 | |
| 81 | cc_test { |
| 82 | name: "test_aaudio_recovery", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 83 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 84 | srcs: ["test_recovery.cpp"], |
| 85 | shared_libs: [ |
| 86 | "libaaudio", |
| 87 | "libbinder", |
| 88 | "libcutils", |
| 89 | "libutils", |
| 90 | ], |
| 91 | } |
| 92 | |
| 93 | cc_test { |
| 94 | name: "test_n_streams", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 95 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 96 | srcs: ["test_n_streams.cpp"], |
| 97 | shared_libs: [ |
| 98 | "libaaudio", |
| 99 | "libbinder", |
| 100 | "libcutils", |
| 101 | "libutils", |
| 102 | ], |
| 103 | } |
| 104 | |
| 105 | cc_test { |
| 106 | name: "test_bad_disconnect", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 107 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 108 | srcs: ["test_bad_disconnect.cpp"], |
| 109 | shared_libs: [ |
| 110 | "libaaudio", |
| 111 | "libbinder", |
| 112 | "libcutils", |
| 113 | "libutils", |
| 114 | ], |
| 115 | } |
Phil Burk | 9a9e600 | 2017-11-17 12:17:37 -0800 | [diff] [blame] | 116 | |
| 117 | cc_test { |
| 118 | name: "test_various", |
| 119 | defaults: ["libaaudio_tests_defaults"], |
| 120 | srcs: ["test_various.cpp"], |
| 121 | shared_libs: [ |
| 122 | "libaaudio", |
| 123 | "libbinder", |
| 124 | "libcutils", |
| 125 | "libutils", |
| 126 | ], |
| 127 | } |
Phil Burk | 8693867 | 2017-11-27 13:49:40 -0800 | [diff] [blame] | 128 | |
| 129 | cc_test { |
Phil Burk | a11f935 | 2018-01-03 15:53:25 -0800 | [diff] [blame] | 130 | name: "test_session_id", |
| 131 | defaults: ["libaaudio_tests_defaults"], |
| 132 | srcs: ["test_session_id.cpp"], |
| 133 | shared_libs: [ |
| 134 | "libaaudio", |
| 135 | "libbinder", |
| 136 | "libcutils", |
| 137 | "libutils", |
| 138 | ], |
| 139 | } |
| 140 | |
| 141 | cc_test { |
Phil Burk | 8693867 | 2017-11-27 13:49:40 -0800 | [diff] [blame] | 142 | name: "test_aaudio_monkey", |
| 143 | defaults: ["libaaudio_tests_defaults"], |
| 144 | srcs: ["test_aaudio_monkey.cpp"], |
| 145 | header_libs: ["libaaudio_example_utils"], |
| 146 | shared_libs: [ |
| 147 | "libaaudio", |
| 148 | "libbinder", |
| 149 | "libcutils", |
| 150 | "libutils", |
| 151 | ], |
| 152 | } |
Phil Burk | f9d1b99 | 2017-12-21 16:54:18 -0800 | [diff] [blame] | 153 | |
| 154 | cc_test { |
| 155 | name: "test_attributes", |
| 156 | defaults: ["libaaudio_tests_defaults"], |
| 157 | srcs: ["test_attributes.cpp"], |
| 158 | shared_libs: [ |
| 159 | "libaaudio", |
| 160 | "libbinder", |
| 161 | "libcutils", |
| 162 | "libutils", |
| 163 | ], |
| 164 | } |
Phil Burk | 381708a | 2018-02-14 16:02:50 -0800 | [diff] [blame] | 165 | |
| 166 | cc_test { |
| 167 | name: "test_interference", |
| 168 | defaults: ["libaaudio_tests_defaults"], |
| 169 | srcs: ["test_interference.cpp"], |
| 170 | shared_libs: [ |
| 171 | "libaaudio", |
| 172 | "libbinder", |
| 173 | "libcutils", |
| 174 | "libutils", |
| 175 | ], |
| 176 | } |
Phil Burk | 217a14f | 2018-04-23 10:33:06 -0700 | [diff] [blame] | 177 | |
| 178 | cc_test { |
| 179 | name: "test_atomic_fifo", |
| 180 | defaults: ["libaaudio_tests_defaults"], |
| 181 | srcs: ["test_atomic_fifo.cpp"], |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 182 | shared_libs: ["libaaudio_internal"], |
Phil Burk | 217a14f | 2018-04-23 10:33:06 -0700 | [diff] [blame] | 183 | } |
Phil Burk | bb78a73 | 2018-03-28 15:37:19 -0700 | [diff] [blame] | 184 | |
| 185 | cc_test { |
| 186 | name: "test_flowgraph", |
| 187 | defaults: ["libaaudio_tests_defaults"], |
| 188 | srcs: ["test_flowgraph.cpp"], |
| 189 | shared_libs: [ |
dimitry | 2d2f17c | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 190 | "libaaudio_internal", |
Phil Burk | bb78a73 | 2018-03-28 15:37:19 -0700 | [diff] [blame] | 191 | "libbinder", |
| 192 | "libcutils", |
| 193 | "libutils", |
| 194 | ], |
| 195 | } |
Phil Burk | 61cf6c1 | 2018-12-10 14:00:29 -0800 | [diff] [blame] | 196 | |
| 197 | cc_test { |
| 198 | name: "test_return_stop", |
| 199 | defaults: ["libaaudio_tests_defaults"], |
| 200 | srcs: ["test_return_stop.cpp"], |
| 201 | shared_libs: [ |
| 202 | "libaaudio", |
| 203 | "libbinder", |
| 204 | "libcutils", |
| 205 | "libutils", |
| 206 | ], |
| 207 | } |
Phil Burk | a7138f1 | 2019-03-29 17:21:25 -0700 | [diff] [blame] | 208 | |
| 209 | cc_test { |
Phil Burk | 42471cc | 2019-06-10 14:39:01 -0700 | [diff] [blame] | 210 | name: "test_stop_hang", |
| 211 | defaults: ["libaaudio_tests_defaults"], |
| 212 | srcs: ["test_stop_hang.cpp"], |
| 213 | shared_libs: [ |
| 214 | "libaaudio", |
| 215 | "libbinder", |
| 216 | "libcutils", |
| 217 | "libutils", |
| 218 | ], |
| 219 | } |
| 220 | |
| 221 | cc_test { |
Phil Burk | a7138f1 | 2019-03-29 17:21:25 -0700 | [diff] [blame] | 222 | name: "test_full_queue", |
| 223 | defaults: ["libaaudio_tests_defaults"], |
| 224 | srcs: ["test_full_queue.cpp"], |
| 225 | shared_libs: ["libaaudio"], |
| 226 | } |
Phil Burk | cc34ecf | 2019-10-04 16:10:01 -0700 | [diff] [blame] | 227 | |
| 228 | cc_test { |
| 229 | name: "test_histogram", |
| 230 | defaults: ["libaaudio_tests_defaults"], |
| 231 | srcs: ["test_histogram.cpp"], |
| 232 | shared_libs: [ |
| 233 | "libaudioutils", |
| 234 | "libcutils", |
| 235 | "libutils", |
| 236 | ], |
| 237 | } |
Phil Burk | 4756a9f | 2020-05-01 16:53:13 -0700 | [diff] [blame] | 238 | |
| 239 | cc_test { |
| 240 | name: "test_steal_exclusive", |
| 241 | defaults: ["libaaudio_tests_defaults"], |
| 242 | srcs: ["test_steal_exclusive.cpp"], |
| 243 | shared_libs: [ |
| 244 | "libaaudio", |
Phil Burk | b9e4fd4 | 2020-05-29 08:42:04 -0700 | [diff] [blame] | 245 | "liblog", |
Phil Burk | 4756a9f | 2020-05-01 16:53:13 -0700 | [diff] [blame] | 246 | "libbinder", |
| 247 | "libcutils", |
| 248 | "libutils", |
| 249 | ], |
| 250 | } |