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: [ |
| 14 | "libaaudio", |
| 15 | "libbinder", |
| 16 | "libcutils", |
| 17 | "libutils", |
| 18 | ], |
| 19 | } |
| 20 | |
| 21 | cc_test { |
| 22 | name: "test_block_adapter", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 23 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 24 | srcs: ["test_block_adapter.cpp"], |
| 25 | shared_libs: ["libaaudio"], |
| 26 | } |
| 27 | |
| 28 | cc_test { |
| 29 | name: "test_timestamps", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 30 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 31 | srcs: ["test_timestamps.cpp"], |
| 32 | header_libs: ["libaaudio_example_utils"], |
| 33 | shared_libs: ["libaaudio"], |
| 34 | } |
| 35 | |
| 36 | cc_test { |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 37 | name: "test_open_params", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 38 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 39 | srcs: ["test_open_params.cpp"], |
| 40 | shared_libs: [ |
| 41 | "libaaudio", |
| 42 | "libbinder", |
| 43 | "libcutils", |
| 44 | "libutils", |
| 45 | ], |
| 46 | } |
| 47 | |
| 48 | cc_test { |
| 49 | name: "test_no_close", |
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_no_close.cpp"], |
| 52 | shared_libs: [ |
| 53 | "libaaudio", |
| 54 | "libbinder", |
| 55 | "libcutils", |
| 56 | "libutils", |
| 57 | ], |
| 58 | } |
| 59 | |
| 60 | cc_test { |
| 61 | name: "test_aaudio_recovery", |
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_recovery.cpp"], |
| 64 | shared_libs: [ |
| 65 | "libaaudio", |
| 66 | "libbinder", |
| 67 | "libcutils", |
| 68 | "libutils", |
| 69 | ], |
| 70 | } |
| 71 | |
| 72 | cc_test { |
| 73 | name: "test_n_streams", |
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_n_streams.cpp"], |
| 76 | shared_libs: [ |
| 77 | "libaaudio", |
| 78 | "libbinder", |
| 79 | "libcutils", |
| 80 | "libutils", |
| 81 | ], |
| 82 | } |
| 83 | |
| 84 | cc_test { |
| 85 | name: "test_bad_disconnect", |
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_bad_disconnect.cpp"], |
| 88 | shared_libs: [ |
| 89 | "libaaudio", |
| 90 | "libbinder", |
| 91 | "libcutils", |
| 92 | "libutils", |
| 93 | ], |
| 94 | } |
Phil Burk | 9a9e600 | 2017-11-17 12:17:37 -0800 | [diff] [blame] | 95 | |
| 96 | cc_test { |
| 97 | name: "test_various", |
| 98 | defaults: ["libaaudio_tests_defaults"], |
| 99 | srcs: ["test_various.cpp"], |
| 100 | shared_libs: [ |
| 101 | "libaaudio", |
| 102 | "libbinder", |
| 103 | "libcutils", |
| 104 | "libutils", |
| 105 | ], |
| 106 | } |
Phil Burk | 8693867 | 2017-11-27 13:49:40 -0800 | [diff] [blame] | 107 | |
| 108 | cc_test { |
Phil Burk | a11f935 | 2018-01-03 15:53:25 -0800 | [diff] [blame] | 109 | name: "test_session_id", |
| 110 | defaults: ["libaaudio_tests_defaults"], |
| 111 | srcs: ["test_session_id.cpp"], |
| 112 | shared_libs: [ |
| 113 | "libaaudio", |
| 114 | "libbinder", |
| 115 | "libcutils", |
| 116 | "libutils", |
| 117 | ], |
| 118 | } |
| 119 | |
| 120 | cc_test { |
Phil Burk | 8693867 | 2017-11-27 13:49:40 -0800 | [diff] [blame] | 121 | name: "test_aaudio_monkey", |
| 122 | defaults: ["libaaudio_tests_defaults"], |
| 123 | srcs: ["test_aaudio_monkey.cpp"], |
| 124 | header_libs: ["libaaudio_example_utils"], |
| 125 | shared_libs: [ |
| 126 | "libaaudio", |
| 127 | "libbinder", |
| 128 | "libcutils", |
| 129 | "libutils", |
| 130 | ], |
| 131 | } |
Phil Burk | f9d1b99 | 2017-12-21 16:54:18 -0800 | [diff] [blame] | 132 | |
| 133 | cc_test { |
| 134 | name: "test_attributes", |
| 135 | defaults: ["libaaudio_tests_defaults"], |
| 136 | srcs: ["test_attributes.cpp"], |
| 137 | shared_libs: [ |
| 138 | "libaaudio", |
| 139 | "libbinder", |
| 140 | "libcutils", |
| 141 | "libutils", |
| 142 | ], |
| 143 | } |
Phil Burk | 381708a | 2018-02-14 16:02:50 -0800 | [diff] [blame] | 144 | |
| 145 | cc_test { |
| 146 | name: "test_interference", |
| 147 | defaults: ["libaaudio_tests_defaults"], |
| 148 | srcs: ["test_interference.cpp"], |
| 149 | shared_libs: [ |
| 150 | "libaaudio", |
| 151 | "libbinder", |
| 152 | "libcutils", |
| 153 | "libutils", |
| 154 | ], |
| 155 | } |
Phil Burk | 217a14f | 2018-04-23 10:33:06 -0700 | [diff] [blame] | 156 | |
| 157 | cc_test { |
| 158 | name: "test_atomic_fifo", |
| 159 | defaults: ["libaaudio_tests_defaults"], |
| 160 | srcs: ["test_atomic_fifo.cpp"], |
| 161 | shared_libs: ["libaaudio"], |
| 162 | } |
Phil Burk | bb78a73 | 2018-03-28 15:37:19 -0700 | [diff] [blame] | 163 | |
| 164 | cc_test { |
| 165 | name: "test_flowgraph", |
| 166 | defaults: ["libaaudio_tests_defaults"], |
| 167 | srcs: ["test_flowgraph.cpp"], |
| 168 | shared_libs: [ |
| 169 | "libaaudio", |
| 170 | "libbinder", |
| 171 | "libcutils", |
| 172 | "libutils", |
| 173 | ], |
| 174 | } |