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