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