Bob Badour | 92ecf7c | 2021-02-12 18:05:29 -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 "system_bt_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["system_bt_license"], |
| 8 | } |
| 9 | |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "fluoride_bta_defaults", |
William Escande | ae01e9b | 2022-03-10 12:48:12 +0000 | [diff] [blame] | 12 | defaults: ["fluoride_basic_defaults"], |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 13 | local_include_dirs: [ |
| 14 | "include", |
| 15 | "sys", |
| 16 | "dm", |
| 17 | "hd", |
| 18 | "hh", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 19 | ], |
| 20 | include_dirs: [ |
| 21 | "packages/modules/Bluetooth/system", |
| 22 | "packages/modules/Bluetooth/system/bta/include", |
Ajay Panicker | 0ad702c | 2018-03-16 17:13:50 -0700 | [diff] [blame] | 23 | "packages/modules/Bluetooth/system/btif/avrcp", |
Jack He | 483217b | 2017-10-21 01:35:57 -0700 | [diff] [blame] | 24 | "packages/modules/Bluetooth/system/btif/include", |
Chris Manton | 131f21c | 2021-06-08 17:38:06 -0700 | [diff] [blame] | 25 | "packages/modules/Bluetooth/system/gd", |
Jakub Pawlowski | 9e9eb4b | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 26 | "packages/modules/Bluetooth/system/internal_include", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 27 | "packages/modules/Bluetooth/system/stack/include", |
| 28 | "packages/modules/Bluetooth/system/stack/btm", |
| 29 | "packages/modules/Bluetooth/system/udrv/include", |
| 30 | "packages/modules/Bluetooth/system/vnd/include", |
| 31 | "packages/modules/Bluetooth/system/utils/include", |
Zach Johnson | 22761ec | 2020-12-21 18:14:30 -0800 | [diff] [blame] | 32 | "packages/modules/Bluetooth/system/gd/rust/shim", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 33 | ], |
Jakub Pawlowski | a75a654 | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 34 | header_libs: ["libbluetooth_headers"], |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 35 | cflags: ["-DBUILDCFG"], |
| 36 | } |
| 37 | |
Chris Manton | a9c16c8 | 2021-07-08 08:22:48 -0700 | [diff] [blame] | 38 | filegroup { |
| 39 | name: "BtaDmSources", |
| 40 | srcs: [ |
| 41 | "dm/bta_dm_act.cc", |
| 42 | "dm/bta_dm_api.cc", |
| 43 | "dm/bta_dm_cfg.cc", |
| 44 | "dm/bta_dm_ci.cc", |
| 45 | "dm/bta_dm_main.cc", |
| 46 | "dm/bta_dm_pm.cc", |
| 47 | ], |
| 48 | } |
| 49 | |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 50 | // BTA static library for target |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 51 | cc_library_static { |
| 52 | name: "libbt-bta", |
| 53 | defaults: ["fluoride_bta_defaults"], |
| 54 | srcs: [ |
Chris Manton | a9c16c8 | 2021-07-08 08:22:48 -0700 | [diff] [blame] | 55 | ":BtaDmSources", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 56 | "ag/bta_ag_act.cc", |
| 57 | "ag/bta_ag_api.cc", |
| 58 | "ag/bta_ag_at.cc", |
| 59 | "ag/bta_ag_cfg.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 60 | "ag/bta_ag_cmd.cc", |
| 61 | "ag/bta_ag_main.cc", |
| 62 | "ag/bta_ag_rfc.cc", |
| 63 | "ag/bta_ag_sco.cc", |
| 64 | "ag/bta_ag_sdp.cc", |
| 65 | "ar/bta_ar.cc", |
| 66 | "av/bta_av_aact.cc", |
| 67 | "av/bta_av_act.cc", |
| 68 | "av/bta_av_api.cc", |
| 69 | "av/bta_av_cfg.cc", |
| 70 | "av/bta_av_ci.cc", |
| 71 | "av/bta_av_main.cc", |
| 72 | "av/bta_av_ssm.cc", |
Łukasz Rymanowski | 06a5be2 | 2020-12-15 09:14:51 +0000 | [diff] [blame] | 73 | "csis/csis_client.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 74 | "gatt/bta_gattc_act.cc", |
| 75 | "gatt/bta_gattc_api.cc", |
| 76 | "gatt/bta_gattc_cache.cc", |
Jakub Pawlowski | 1ed87e9 | 2022-04-08 15:54:13 +0200 | [diff] [blame] | 77 | "gatt/bta_gattc_db_storage.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 78 | "gatt/bta_gattc_main.cc", |
Jakub Pawlowski | 19d0aae | 2017-11-29 21:49:32 -0800 | [diff] [blame] | 79 | "gatt/bta_gattc_queue.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 80 | "gatt/bta_gattc_utils.cc", |
| 81 | "gatt/bta_gatts_act.cc", |
| 82 | "gatt/bta_gatts_api.cc", |
| 83 | "gatt/bta_gatts_main.cc", |
sravan voleti | 898c063 | 2022-03-10 09:00:24 +0100 | [diff] [blame] | 84 | "gatt/bta_gatts_queue.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 85 | "gatt/bta_gatts_utils.cc", |
Jakub Pawlowski | 6d3cb11 | 2018-04-18 07:31:30 -0700 | [diff] [blame] | 86 | "gatt/database.cc", |
| 87 | "gatt/database_builder.cc", |
Łukasz Rymanowski | a6b8333 | 2020-12-13 07:12:57 +0000 | [diff] [blame] | 88 | "groups/groups.cc", |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 89 | "vc/device.cc", |
| 90 | "vc/vc.cc", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 91 | "le_audio/broadcaster/broadcaster.cc", |
| 92 | "le_audio/broadcaster/broadcaster_types.cc", |
| 93 | "le_audio/broadcaster/state_machine.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 94 | "le_audio/client.cc", |
Alice Kuo | 422f55d | 2021-12-30 11:33:32 +0800 | [diff] [blame] | 95 | "le_audio/codec_manager.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 96 | "le_audio/devices.cc", |
Abhishek Pandit-Subedi | e404389 | 2021-10-15 11:39:36 -0700 | [diff] [blame] | 97 | "le_audio/hal_verifier.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 98 | "le_audio/state_machine.cc", |
| 99 | "le_audio/client_parser.cc", |
| 100 | "le_audio/client_audio.cc", |
Jakub Tyszkowski | e82b512 | 2022-01-18 18:38:06 +0000 | [diff] [blame] | 101 | "le_audio/le_audio_set_configuration_provider.cc", |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 102 | "le_audio/le_audio_set_configuration_provider_json.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 103 | "le_audio/le_audio_types.cc", |
Josh Wu | c033a16 | 2022-05-05 01:29:04 -0700 | [diff] [blame] | 104 | "le_audio/metrics_collector.cc", |
Jakub Tyszkowski | b87fc99 | 2021-04-08 15:08:35 +0000 | [diff] [blame] | 105 | "has/has_client.cc", |
| 106 | "has/has_ctp.cc", |
| 107 | "has/has_journal.cc", |
| 108 | "has/has_preset.cc", |
| 109 | "has/has_types.cc", |
Jakub Pawlowski | 7d06e57 | 2018-02-28 22:44:42 -0800 | [diff] [blame] | 110 | "hearing_aid/hearing_aid.cc", |
Hansong Zhang | d19e027 | 2018-01-19 12:23:57 -0800 | [diff] [blame] | 111 | "hearing_aid/hearing_aid_audio_source.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 112 | "hf_client/bta_hf_client_act.cc", |
| 113 | "hf_client/bta_hf_client_api.cc", |
| 114 | "hf_client/bta_hf_client_at.cc", |
| 115 | "hf_client/bta_hf_client_main.cc", |
| 116 | "hf_client/bta_hf_client_rfc.cc", |
| 117 | "hf_client/bta_hf_client_sco.cc", |
| 118 | "hf_client/bta_hf_client_sdp.cc", |
| 119 | "hh/bta_hh_act.cc", |
| 120 | "hh/bta_hh_api.cc", |
| 121 | "hh/bta_hh_cfg.cc", |
| 122 | "hh/bta_hh_le.cc", |
| 123 | "hh/bta_hh_main.cc", |
| 124 | "hh/bta_hh_utils.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 125 | "hd/bta_hd_act.cc", |
| 126 | "hd/bta_hd_api.cc", |
| 127 | "hd/bta_hd_main.cc", |
| 128 | "jv/bta_jv_act.cc", |
| 129 | "jv/bta_jv_api.cc", |
| 130 | "jv/bta_jv_cfg.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 131 | "pan/bta_pan_act.cc", |
| 132 | "pan/bta_pan_api.cc", |
| 133 | "pan/bta_pan_ci.cc", |
| 134 | "pan/bta_pan_main.cc", |
| 135 | "sdp/bta_sdp.cc", |
| 136 | "sdp/bta_sdp_act.cc", |
| 137 | "sdp/bta_sdp_api.cc", |
| 138 | "sdp/bta_sdp_cfg.cc", |
| 139 | "sys/bta_sys_conn.cc", |
| 140 | "sys/bta_sys_main.cc", |
| 141 | "sys/utl.cc", |
| 142 | ], |
Ajay Panicker | 0ad702c | 2018-03-16 17:13:50 -0700 | [diff] [blame] | 143 | static_libs: [ |
| 144 | "avrcp-target-service", |
| 145 | "lib-bt-packets", |
| 146 | ], |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 147 | generated_headers: [ |
| 148 | "LeAudioSetConfigSchemas_h", |
| 149 | ], |
Hansong Zhang | 777b634 | 2021-02-23 15:52:11 -0800 | [diff] [blame] | 150 | host_supported: true, |
ahujapalash | 5add3d5 | 2022-03-10 18:38:02 +0000 | [diff] [blame] | 151 | min_sdk_version: "Tiramisu" |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 152 | } |
| 153 | |
| 154 | // bta unit tests for target |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 155 | cc_test { |
| 156 | name: "net_test_bta", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 157 | defaults: [ |
| 158 | "fluoride_bta_defaults", |
| 159 | "mts_defaults" |
| 160 | ], |
Yanfei Zhou | d243981 | 2018-08-28 10:58:52 +0800 | [diff] [blame] | 161 | test_suites: ["device-tests"], |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 162 | srcs: [ |
Chris Manton | 8fe4751 | 2021-09-24 13:30:54 -0700 | [diff] [blame] | 163 | ":TestMockStackBtm", |
| 164 | ":TestCommonMockFunctions", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 165 | "test/bta_hf_client_test.cc", |
Yanfei Zhou | d243981 | 2018-08-28 10:58:52 +0800 | [diff] [blame] | 166 | "test/bta_dm_cust_uuid_test.cc", |
Fei Zheng | a6d4be1 | 2019-12-25 10:45:51 +0800 | [diff] [blame] | 167 | "test/bta_dip_test.cc", |
Jakub Pawlowski | 6d3cb11 | 2018-04-18 07:31:30 -0700 | [diff] [blame] | 168 | "test/gatt/database_builder_test.cc", |
| 169 | "test/gatt/database_builder_sample_device_test.cc", |
| 170 | "test/gatt/database_test.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 171 | ], |
| 172 | shared_libs: [ |
William Escande | ae01e9b | 2022-03-10 12:48:12 +0000 | [diff] [blame] | 173 | "android.hardware.bluetooth.audio@2.0", |
| 174 | "android.hardware.bluetooth.audio@2.1", |
Hansong Zhang | 8bb04bb | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 175 | "libcrypto", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 176 | "liblog", |
| 177 | "libprotobuf-cpp-lite", |
| 178 | ], |
| 179 | static_libs: [ |
HsingYuan Lo | 2d3da48 | 2020-08-18 09:30:32 +0200 | [diff] [blame] | 180 | "crypto_toolbox_for_tests", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 181 | "libbtcore", |
| 182 | "libbt-bta", |
Cheney Ni | 895430b | 2018-12-12 20:20:28 +0800 | [diff] [blame] | 183 | "libbt-audio-hal-interface", |
Jakub Pawlowski | f9f4585 | 2017-07-03 15:39:36 -0700 | [diff] [blame] | 184 | "libbluetooth-types", |
Jack He | 9a30a9f | 2018-03-03 00:03:25 -0800 | [diff] [blame] | 185 | "libbt-protos-lite", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 186 | "libosi", |
Jack He | 4282398 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 187 | "libbt-common", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 188 | ], |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 189 | data: [ |
| 190 | ":audio_set_scenarios_bfbs", |
| 191 | ":audio_set_scenarios_json", |
| 192 | ":audio_set_configurations_bfbs", |
| 193 | ":audio_set_configurations_json", |
| 194 | ], |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 195 | } |
Song Gao | e2253a5 | 2019-12-10 10:36:17 +0800 | [diff] [blame] | 196 | |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 197 | cc_test { |
| 198 | name: "bt_host_test_bta", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 199 | defaults: [ |
| 200 | "fluoride_bta_defaults", |
| 201 | "mts_defaults", |
| 202 | ], |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 203 | test_suites: ["device-tests"], |
| 204 | host_supported: true, |
| 205 | include_dirs: [ |
| 206 | "packages/modules/Bluetooth/system", |
Chris Manton | 6aa6c0d | 2021-04-30 15:21:38 -0700 | [diff] [blame] | 207 | "packages/modules/Bluetooth/system/gd", |
| 208 | ], |
| 209 | generated_headers: [ |
Chris Manton | 6aa6c0d | 2021-04-30 15:21:38 -0700 | [diff] [blame] | 210 | "BluetoothGeneratedDumpsysDataSchema_h", |
| 211 | "BluetoothGeneratedPackets_h", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 212 | ], |
| 213 | srcs: [ |
Chris Manton | 29deec2 | 2021-07-14 10:03:54 -0700 | [diff] [blame] | 214 | ":OsiCompatSources", |
Chris Manton | 847dc38 | 2021-05-12 10:08:48 -0700 | [diff] [blame] | 215 | ":TestCommonMainHandler", |
Chris Manton | 6aa6c0d | 2021-04-30 15:21:38 -0700 | [diff] [blame] | 216 | ":TestMockBtif", |
| 217 | ":TestMockDevice", |
| 218 | ":TestMockMainShim", |
Chris Manton | 29deec2 | 2021-07-14 10:03:54 -0700 | [diff] [blame] | 219 | ":TestMockOsi", |
Chris Manton | 6aa6c0d | 2021-04-30 15:21:38 -0700 | [diff] [blame] | 220 | ":TestMockStack", |
Chris Manton | 866c5da | 2021-07-15 22:21:18 -0700 | [diff] [blame] | 221 | "ar/bta_ar.cc", |
| 222 | "dm/bta_dm_api.cc", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 223 | "dm/bta_dm_act.cc", |
| 224 | "dm/bta_dm_cfg.cc", |
| 225 | "dm/bta_dm_ci.cc", |
| 226 | "dm/bta_dm_main.cc", |
| 227 | "dm/bta_dm_pm.cc", |
| 228 | "gatt/bta_gattc_act.cc", |
| 229 | "gatt/bta_gattc_api.cc", |
| 230 | "gatt/bta_gattc_cache.cc", |
Jakub Pawlowski | 1ed87e9 | 2022-04-08 15:54:13 +0200 | [diff] [blame] | 231 | "gatt/bta_gattc_db_storage.cc", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 232 | "gatt/bta_gattc_main.cc", |
| 233 | "gatt/bta_gattc_queue.cc", |
| 234 | "gatt/bta_gattc_utils.cc", |
| 235 | "gatt/database.cc", |
| 236 | "gatt/database_builder.cc", |
| 237 | "hh/bta_hh_act.cc", |
Chris Manton | 847dc38 | 2021-05-12 10:08:48 -0700 | [diff] [blame] | 238 | "hh/bta_hh_api.cc", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 239 | "hh/bta_hh_cfg.cc", |
| 240 | "hh/bta_hh_le.cc", |
| 241 | "hh/bta_hh_main.cc", |
| 242 | "hh/bta_hh_utils.cc", |
Chris Manton | 3dc9ad8 | 2021-10-10 17:23:19 -0700 | [diff] [blame] | 243 | "pan/bta_pan_act.cc", |
| 244 | "pan/bta_pan_api.cc", |
| 245 | "pan/bta_pan_main.cc", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 246 | "sys/bta_sys_conn.cc", |
| 247 | "sys/bta_sys_main.cc", |
| 248 | "test/bta_dm_test.cc", |
Chris Manton | 607b8c0 | 2021-05-07 09:45:55 -0700 | [diff] [blame] | 249 | "test/bta_gatt_test.cc", |
Chris Manton | 3dc9ad8 | 2021-10-10 17:23:19 -0700 | [diff] [blame] | 250 | "test/bta_pan_test.cc", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 251 | ], |
| 252 | shared_libs: [ |
Yi Kong | 2fb33f8 | 2021-12-16 02:46:09 +0800 | [diff] [blame] | 253 | "libbase", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 254 | "libcrypto", |
| 255 | "liblog", |
| 256 | "libprotobuf-cpp-lite", |
| 257 | ], |
| 258 | static_libs: [ |
| 259 | "libbluetooth-types", |
| 260 | "libbt-common", |
| 261 | "libbt-protos-lite", |
| 262 | "libbtcore", |
William Escande | ae01e9b | 2022-03-10 12:48:12 +0000 | [diff] [blame] | 263 | "libflatbuffers-cpp", |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 264 | "libgmock", |
| 265 | ], |
Chris Manton | 29deec2 | 2021-07-14 10:03:54 -0700 | [diff] [blame] | 266 | sanitize: { |
| 267 | address: true, |
| 268 | cfi: true, |
| 269 | misc_undefined: ["bounds"], |
| 270 | }, |
Chris Manton | 445082d | 2021-02-07 20:26:22 -0800 | [diff] [blame] | 271 | } |
| 272 | |
Song Gao | e2253a5 | 2019-12-10 10:36:17 +0800 | [diff] [blame] | 273 | // bta hf client add record tests for target |
Song Gao | e2253a5 | 2019-12-10 10:36:17 +0800 | [diff] [blame] | 274 | cc_test { |
| 275 | name: "net_test_hf_client_add_record", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 276 | defaults: [ |
| 277 | "fluoride_defaults", |
| 278 | "mts_defaults", |
| 279 | ], |
Song Gao | e2253a5 | 2019-12-10 10:36:17 +0800 | [diff] [blame] | 280 | test_suites: ["device-tests"], |
| 281 | include_dirs: [ |
| 282 | "packages/modules/Bluetooth/system", |
Chris Manton | 131f21c | 2021-06-08 17:38:06 -0700 | [diff] [blame] | 283 | "packages/modules/Bluetooth/system/gd", |
Song Gao | e2253a5 | 2019-12-10 10:36:17 +0800 | [diff] [blame] | 284 | "packages/modules/Bluetooth/system/bta/include", |
| 285 | "packages/modules/Bluetooth/system/bta/sys", |
| 286 | "packages/modules/Bluetooth/system/btif/include", |
| 287 | "packages/modules/Bluetooth/system/internal_include", |
| 288 | "packages/modules/Bluetooth/system/stack/include", |
| 289 | "packages/modules/Bluetooth/system/utils/include", |
| 290 | ], |
| 291 | srcs: [ |
| 292 | "test/bta_hf_client_add_record_test.cc", |
| 293 | ], |
| 294 | header_libs: ["libbluetooth_headers"], |
| 295 | shared_libs: [ |
| 296 | "libcutils", |
| 297 | "liblog", |
| 298 | ], |
| 299 | static_libs: [ |
| 300 | "libbluetooth-types", |
| 301 | "libosi", |
| 302 | ], |
| 303 | cflags: ["-DBUILDCFG"], |
| 304 | } |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 305 | |
Łukasz Rymanowski | 06a5be2 | 2020-12-15 09:14:51 +0000 | [diff] [blame] | 306 | // csis unit tests for host |
| 307 | cc_test { |
| 308 | name: "bluetooth_csis_test", |
| 309 | test_suites: ["device-tests"], |
| 310 | defaults: [ |
| 311 | "fluoride_bta_defaults", |
| 312 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 313 | "mts_defaults", |
Łukasz Rymanowski | 06a5be2 | 2020-12-15 09:14:51 +0000 | [diff] [blame] | 314 | ], |
| 315 | host_supported: true, |
| 316 | include_dirs: [ |
| 317 | "packages/modules/Bluetooth/system", |
| 318 | "packages/modules/Bluetooth/system/bta/groups", |
| 319 | "packages/modules/Bluetooth/system/bta/include", |
| 320 | "packages/modules/Bluetooth/system/bta/test/common", |
| 321 | "packages/modules/Bluetooth/system/btif/include", |
| 322 | "packages/modules/Bluetooth/system/osi/include", |
| 323 | ], |
| 324 | srcs : [ |
| 325 | ":TestMockBtif", |
Chienyuan | 9c8568e | 2021-11-15 20:01:15 +0800 | [diff] [blame] | 326 | ":TestMockMainShimLeScanning", |
Łukasz Rymanowski | 06a5be2 | 2020-12-15 09:14:51 +0000 | [diff] [blame] | 327 | "csis/csis_client.cc", |
| 328 | "csis/csis_client_test.cc", |
| 329 | "groups/groups.cc", |
| 330 | "gatt/database.cc", |
| 331 | "gatt/database_builder.cc", |
| 332 | "test/common/bta_dm_api_mock.cc", |
| 333 | "test/common/bta_gatt_api_mock.cc", |
| 334 | "test/common/bta_gatt_queue_mock.cc", |
| 335 | "test/common/btm_api_mock.cc", |
| 336 | ], |
| 337 | shared_libs: [ |
| 338 | "libprotobuf-cpp-lite", |
| 339 | "libcrypto", |
| 340 | ], |
| 341 | static_libs : [ |
| 342 | "crypto_toolbox_for_tests", |
| 343 | "libgmock", |
| 344 | "libbt-common", |
| 345 | "libbt-protos-lite", |
| 346 | "libosi", |
| 347 | ], |
| 348 | sanitize: { |
| 349 | cfi: true, |
| 350 | scs: true, |
| 351 | address: true, |
| 352 | all_undefined: true, |
| 353 | integer_overflow: true, |
| 354 | diag: { |
| 355 | undefined : true |
| 356 | }, |
| 357 | }, |
| 358 | } |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 359 | |
Łukasz Rymanowski | a6b8333 | 2020-12-13 07:12:57 +0000 | [diff] [blame] | 360 | // groups unit tests for host |
| 361 | cc_test { |
| 362 | name: "bluetooth_groups_test", |
| 363 | test_suites: ["device-tests"], |
| 364 | defaults: [ |
| 365 | "fluoride_bta_defaults", |
| 366 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 367 | "mts_defaults", |
Łukasz Rymanowski | a6b8333 | 2020-12-13 07:12:57 +0000 | [diff] [blame] | 368 | ], |
| 369 | host_supported: true, |
| 370 | include_dirs: [ |
| 371 | "packages/modules/Bluetooth/system", |
| 372 | "packages/modules/Bluetooth/system/bta/include", |
| 373 | ], |
| 374 | srcs : [ |
| 375 | ":TestMockBtif", |
| 376 | "groups/groups_test.cc", |
| 377 | "groups/groups.cc", |
| 378 | ], |
| 379 | shared_libs: [ |
| 380 | "libprotobuf-cpp-lite", |
| 381 | "libcrypto", |
| 382 | ], |
| 383 | static_libs : [ |
| 384 | "crypto_toolbox_for_tests", |
| 385 | "libgmock", |
| 386 | "libbt-common", |
| 387 | "libbt-protos-lite", |
| 388 | "libosi", |
| 389 | ], |
| 390 | sanitize: { |
| 391 | cfi: true, |
| 392 | scs: true, |
| 393 | address: true, |
| 394 | all_undefined: true, |
| 395 | integer_overflow: true, |
| 396 | diag: { |
| 397 | undefined : true |
| 398 | }, |
| 399 | }, |
| 400 | } |
| 401 | |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 402 | // bta unit tests for host |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 403 | cc_test { |
| 404 | name: "bluetooth_vc_test", |
| 405 | test_suites: ["device-tests"], |
| 406 | defaults: [ |
| 407 | "fluoride_bta_defaults", |
| 408 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 409 | "mts_defaults", |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 410 | ], |
| 411 | host_supported: true, |
| 412 | include_dirs: [ |
| 413 | "packages/modules/Bluetooth/system", |
| 414 | "packages/modules/Bluetooth/system/bta/include", |
| 415 | "packages/modules/Bluetooth/system/bta/test/common", |
Łukasz Rymanowski | 9f3756e | 2022-05-06 11:59:36 +0000 | [diff] [blame] | 416 | "packages/modules/Bluetooth/system/gd", |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 417 | "packages/modules/Bluetooth/system/stack/include", |
| 418 | ], |
| 419 | srcs : [ |
Łukasz Rymanowski | 3e62085 | 2021-08-25 16:46:05 +0000 | [diff] [blame] | 420 | ":TestMockOsi", |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 421 | "gatt/database.cc", |
| 422 | "gatt/database_builder.cc", |
| 423 | "test/common/bta_gatt_api_mock.cc", |
| 424 | "test/common/bta_gatt_queue_mock.cc", |
Łukasz Rymanowski | 3e62085 | 2021-08-25 16:46:05 +0000 | [diff] [blame] | 425 | "test/common/mock_csis_client.cc", |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 426 | "test/common/btm_api_mock.cc", |
| 427 | "vc/devices_test.cc", |
| 428 | "vc/device.cc", |
| 429 | "vc/vc.cc", |
| 430 | "vc/vc_test.cc", |
| 431 | ], |
| 432 | shared_libs: [ |
| 433 | "libprotobuf-cpp-lite", |
| 434 | "libcrypto", |
| 435 | ], |
| 436 | static_libs : [ |
| 437 | "crypto_toolbox_for_tests", |
| 438 | "libgmock", |
| 439 | "libbt-common", |
| 440 | "libbt-protos-lite", |
Łukasz Rymanowski | 3e62085 | 2021-08-25 16:46:05 +0000 | [diff] [blame] | 441 | "libosi" |
Łukasz Rymanowski | 35b0836 | 2021-01-29 09:05:10 +0000 | [diff] [blame] | 442 | ], |
| 443 | sanitize: { |
| 444 | cfi: false, |
| 445 | }, |
| 446 | } |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 447 | |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 448 | genrule { |
| 449 | name: "LeAudioSetConfigSchemas_h", |
| 450 | tools: [ |
| 451 | "flatc", |
| 452 | ], |
| 453 | cmd: "$(location flatc) -I packages/modules/Bluetooth/system/ -o $(genDir) --cpp $(in) ", |
| 454 | srcs: [ |
| 455 | "le_audio/audio_set_configurations.fbs", |
| 456 | "le_audio/audio_set_scenarios.fbs", |
| 457 | ], |
| 458 | out: [ |
| 459 | "audio_set_configurations_generated.h", |
| 460 | "audio_set_scenarios_generated.h", |
| 461 | ], |
| 462 | } |
| 463 | |
| 464 | genrule { |
| 465 | name: "LeAudioSetScenariosSchema_bfbs", |
| 466 | tools: [ |
| 467 | "flatc", |
| 468 | ], |
| 469 | cmd: "$(location flatc) -I packages/modules/Bluetooth/system/ -b --schema -o $(genDir) $(in) ", |
| 470 | srcs: [ |
| 471 | "le_audio/audio_set_scenarios.fbs", |
| 472 | ], |
| 473 | out: [ |
| 474 | "audio_set_scenarios.bfbs", |
| 475 | ], |
| 476 | } |
| 477 | |
| 478 | genrule { |
| 479 | name: "LeAudioSetConfigsSchema_bfbs", |
| 480 | tools: [ |
| 481 | "flatc", |
| 482 | ], |
| 483 | cmd: "$(location flatc) -I packages/modules/Bluetooth/system/ -b --schema -o $(genDir) $(in) ", |
| 484 | srcs: [ |
| 485 | "le_audio/audio_set_configurations.fbs", |
| 486 | ], |
| 487 | out: [ |
| 488 | "audio_set_configurations.bfbs", |
| 489 | ], |
| 490 | } |
| 491 | |
| 492 | prebuilt_etc { |
| 493 | name: "audio_set_scenarios_bfbs", |
| 494 | src: ":LeAudioSetScenariosSchema_bfbs", |
| 495 | filename: "audio_set_scenarios.bfbs", |
| 496 | sub_dir: "bluetooth/le_audio", |
| 497 | } |
| 498 | |
| 499 | prebuilt_etc { |
| 500 | name: "audio_set_scenarios_json", |
| 501 | src: "le_audio/audio_set_scenarios.json", |
| 502 | filename_from_src: true, |
| 503 | sub_dir: "bluetooth/le_audio", |
| 504 | } |
| 505 | |
| 506 | prebuilt_etc { |
| 507 | name: "audio_set_configurations_bfbs", |
| 508 | src: ":LeAudioSetConfigsSchema_bfbs", |
| 509 | filename: "audio_set_configurations.bfbs", |
| 510 | sub_dir: "bluetooth/le_audio", |
| 511 | } |
| 512 | |
| 513 | prebuilt_etc { |
| 514 | name: "audio_set_configurations_json", |
| 515 | src: "le_audio/audio_set_configurations.json", |
| 516 | filename_from_src: true, |
| 517 | sub_dir: "bluetooth/le_audio", |
| 518 | } |
| 519 | |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 520 | // bta unit tests for LE Audio |
| 521 | // ======================================================== |
| 522 | cc_test { |
| 523 | name: "bluetooth_le_audio_test", |
| 524 | test_suites: ["device-tests"], |
| 525 | defaults: [ |
| 526 | "fluoride_defaults", |
| 527 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 528 | "mts_defaults", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 529 | ], |
| 530 | host_supported: true, |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 531 | target: { |
| 532 | darwin: { |
| 533 | enabled: false, |
| 534 | }, |
| 535 | android: { |
| 536 | cflags: [ |
| 537 | "-DOS_ANDROID", |
| 538 | ], |
| 539 | sanitize: { |
| 540 | misc_undefined: ["bounds"], |
| 541 | }, |
| 542 | }, |
| 543 | }, |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 544 | include_dirs: [ |
| 545 | "packages/modules/Bluetooth/system", |
| 546 | "packages/modules/Bluetooth/system/bta/include", |
| 547 | "packages/modules/Bluetooth/system/bta/test/common", |
| 548 | "packages/modules/Bluetooth/system/btif/include", |
| 549 | "packages/modules/Bluetooth/system/gd", |
| 550 | "packages/modules/Bluetooth/system/stack/include", |
| 551 | ], |
| 552 | srcs : [ |
| 553 | ":TestStubOsi", |
Alice Kuo | 422f55d | 2021-12-30 11:33:32 +0800 | [diff] [blame] | 554 | ":TestMockBtaLeAudioHalVerifier", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 555 | "test/common/bta_gatt_api_mock.cc", |
| 556 | "test/common/bta_gatt_queue_mock.cc", |
| 557 | "test/common/btm_api_mock.cc", |
| 558 | "le_audio/client_audio.cc", |
| 559 | "le_audio/client_audio_test.cc", |
| 560 | "le_audio/client_parser.cc", |
| 561 | "le_audio/client_parser_test.cc", |
| 562 | "le_audio/devices.cc", |
| 563 | "le_audio/devices_test.cc", |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 564 | "le_audio/le_audio_set_configuration_provider_json.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 565 | "le_audio/le_audio_types.cc", |
| 566 | "le_audio/le_audio_types_test.cc", |
Josh Wu | c033a16 | 2022-05-05 01:29:04 -0700 | [diff] [blame] | 567 | "le_audio/metrics_collector_linux.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 568 | "le_audio/mock_iso_manager.cc", |
| 569 | "test/common/mock_controller.cc", |
| 570 | "le_audio/state_machine.cc", |
Alice Kuo | 422f55d | 2021-12-30 11:33:32 +0800 | [diff] [blame] | 571 | "le_audio/state_machine_test.cc", |
| 572 | "le_audio/mock_codec_manager.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 573 | ], |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 574 | data: [ |
| 575 | ":audio_set_scenarios_bfbs", |
| 576 | ":audio_set_scenarios_json", |
| 577 | ":audio_set_configurations_bfbs", |
| 578 | ":audio_set_configurations_json" |
| 579 | ], |
| 580 | generated_headers: [ |
| 581 | "LeAudioSetConfigSchemas_h", |
| 582 | ], |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 583 | shared_libs: [ |
| 584 | "libprotobuf-cpp-lite", |
| 585 | "libcrypto", |
| 586 | "liblog", // __android_log_print |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 587 | "android.hardware.bluetooth.audio@2.0", |
| 588 | "android.hardware.bluetooth.audio@2.1", |
| 589 | "libhidlbase", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 590 | ], |
| 591 | static_libs : [ |
| 592 | "libgmock", |
| 593 | "libbt-common", |
| 594 | "libbt-protos-lite", |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 595 | "libflatbuffers-cpp", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 596 | "libosi", |
| 597 | ], |
| 598 | sanitize: { |
| 599 | cfi: false, |
| 600 | }, |
| 601 | } |
| 602 | |
| 603 | cc_test { |
| 604 | name: "bluetooth_le_audio_client_test", |
| 605 | test_suites: ["device-tests"], |
| 606 | defaults: [ |
| 607 | "fluoride_bta_defaults", |
| 608 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 609 | "mts_defaults", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 610 | ], |
| 611 | host_supported: true, |
| 612 | include_dirs: [ |
| 613 | "packages/modules/Bluetooth/system", |
| 614 | "packages/modules/Bluetooth/system/bta/include", |
| 615 | "packages/modules/Bluetooth/system/bta/test/common", |
| 616 | "packages/modules/Bluetooth/system/stack/include", |
| 617 | ], |
| 618 | srcs : [ |
Łukasz Rymanowski | af2d951 | 2022-01-20 22:23:14 +0000 | [diff] [blame] | 619 | ":TestStubOsi", |
Abhishek Pandit-Subedi | e404389 | 2021-10-15 11:39:36 -0700 | [diff] [blame] | 620 | ":TestMockBtaLeAudioHalVerifier", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 621 | "gatt/database.cc", |
| 622 | "gatt/database_builder.cc", |
| 623 | "le_audio/client.cc", |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 624 | "le_audio/client_audio.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 625 | "le_audio/client_parser.cc", |
| 626 | "le_audio/devices.cc", |
| 627 | "le_audio/le_audio_client_test.cc", |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 628 | "le_audio/le_audio_set_configuration_provider_json.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 629 | "le_audio/le_audio_types.cc", |
Josh Wu | c033a16 | 2022-05-05 01:29:04 -0700 | [diff] [blame] | 630 | "le_audio/metrics_collector.cc", |
| 631 | "le_audio/metrics_collector_test.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 632 | "le_audio/mock_iso_manager.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 633 | "le_audio/mock_state_machine.cc", |
| 634 | "test/common/btm_api_mock.cc", |
| 635 | "test/common/bta_gatt_api_mock.cc", |
| 636 | "test/common/bta_gatt_queue_mock.cc", |
| 637 | "test/common/btif_storage_mock.cc", |
| 638 | "test/common/mock_csis_client.cc", |
| 639 | "test/common/mock_controller.cc", |
| 640 | "test/common/mock_device_groups.cc", |
Alice Kuo | 422f55d | 2021-12-30 11:33:32 +0800 | [diff] [blame] | 641 | "le_audio/mock_codec_manager.cc", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 642 | ], |
| 643 | shared_libs: [ |
Abhishek Pandit-Subedi | e404389 | 2021-10-15 11:39:36 -0700 | [diff] [blame] | 644 | "android.hardware.bluetooth.audio@2.0", |
| 645 | "android.hardware.bluetooth.audio@2.1", |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 646 | "libhidlbase", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 647 | "libprotobuf-cpp-lite", |
| 648 | "libcrypto", |
| 649 | "liblog", |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 650 | "libfmq", |
| 651 | "libbinder_ndk", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 652 | ], |
| 653 | static_libs : [ |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 654 | "libbt-audio-hal-interface", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 655 | "crypto_toolbox_for_tests", |
| 656 | "libgmock", |
| 657 | "libbt-common", |
| 658 | "libbt-protos-lite", |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 659 | "libflatbuffers-cpp", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 660 | "libosi", |
Jakub Pawlowski | d0a41af | 2022-01-03 17:53:02 +0100 | [diff] [blame] | 661 | "liblc3", |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 662 | ], |
Jakub Tyszkowski | fa3e4cb | 2022-01-25 15:52:01 +0000 | [diff] [blame] | 663 | data: [ |
| 664 | ":audio_set_scenarios_bfbs", |
| 665 | ":audio_set_scenarios_json", |
| 666 | ":audio_set_configurations_bfbs", |
| 667 | ":audio_set_configurations_json", |
| 668 | ], |
| 669 | generated_headers: [ |
| 670 | "LeAudioSetConfigSchemas_h", |
| 671 | ], |
Josh Wu | 28d6da1 | 2021-12-22 06:13:40 -0800 | [diff] [blame] | 672 | target: { |
| 673 | android: { |
| 674 | shared_libs: [ |
| 675 | "libbinder_ndk", |
Omer Osman | 066fa55 | 2022-05-01 03:22:13 +0000 | [diff] [blame] | 676 | "android.hardware.bluetooth.audio-V2-ndk", |
Josh Wu | 28d6da1 | 2021-12-22 06:13:40 -0800 | [diff] [blame] | 677 | ], |
| 678 | }, |
| 679 | }, |
Grzegorz Kołodziejczyk | 926fd43 | 2021-10-06 11:54:53 +0000 | [diff] [blame] | 680 | sanitize: { |
| 681 | cfi: true, |
| 682 | scs: true, |
| 683 | address: true, |
| 684 | all_undefined: true, |
| 685 | integer_overflow: true, |
| 686 | diag: { |
| 687 | undefined : true |
| 688 | }, |
| 689 | }, |
| 690 | } |
| 691 | |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 692 | cc_test { |
| 693 | name: "bluetooth_test_broadcaster_sm", |
| 694 | test_suites: ["device-tests"], |
| 695 | defaults: [ |
| 696 | "fluoride_bta_defaults", |
| 697 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 698 | "mts_defaults", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 699 | ], |
| 700 | host_supported: true, |
| 701 | include_dirs: [ |
| 702 | "packages/modules/Bluetooth/system", |
| 703 | "packages/modules/Bluetooth/system/bta/include", |
| 704 | "packages/modules/Bluetooth/system/bta/le_audio", |
| 705 | "packages/modules/Bluetooth/system/btif/include", |
| 706 | "packages/modules/Bluetooth/system/stack/include", |
| 707 | "packages/modules/Bluetooth/system/stack/btm", |
| 708 | ], |
| 709 | srcs : [ |
| 710 | "le_audio/broadcaster/broadcaster_types.cc", |
| 711 | "le_audio/broadcaster/mock_ble_advertising_manager.cc", |
| 712 | "le_audio/broadcaster/state_machine.cc", |
| 713 | "le_audio/broadcaster/state_machine_test.cc", |
| 714 | "le_audio/le_audio_types.cc", |
| 715 | "le_audio/mock_iso_manager.cc", |
Patty | 0d8b97e | 2022-01-07 17:32:29 +0800 | [diff] [blame] | 716 | "le_audio/mock_codec_manager.cc", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 717 | ], |
| 718 | shared_libs: [ |
| 719 | "libprotobuf-cpp-lite", |
| 720 | "libcrypto", |
| 721 | ], |
| 722 | static_libs : [ |
| 723 | "libgmock", |
| 724 | "libbt-common", |
| 725 | "libbt-protos-lite", |
| 726 | "liblc3", |
| 727 | ], |
| 728 | sanitize: { |
| 729 | cfi: true, |
| 730 | scs: true, |
| 731 | address: true, |
| 732 | all_undefined: true, |
| 733 | integer_overflow: true, |
| 734 | diag: { |
| 735 | undefined : true |
| 736 | }, |
| 737 | }, |
| 738 | } |
| 739 | |
| 740 | cc_test { |
| 741 | name: "bluetooth_test_broadcaster", |
| 742 | test_suites: ["device-tests"], |
| 743 | defaults: [ |
| 744 | "fluoride_bta_defaults", |
| 745 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 746 | "mts_defaults", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 747 | ], |
| 748 | host_supported: true, |
| 749 | include_dirs: [ |
| 750 | "packages/modules/Bluetooth/system", |
| 751 | "packages/modules/Bluetooth/system/bta/include", |
| 752 | "packages/modules/Bluetooth/system/bta/le_audio", |
| 753 | "packages/modules/Bluetooth/system/bta/test/common", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 754 | "packages/modules/Bluetooth/system/btif/include", |
| 755 | "packages/modules/Bluetooth/system/stack/include", |
| 756 | "packages/modules/Bluetooth/system/stack/btm", |
| 757 | ], |
| 758 | srcs : [ |
| 759 | ":TestStubOsi", |
| 760 | "le_audio/broadcaster/broadcaster.cc", |
| 761 | "le_audio/broadcaster/broadcaster_test.cc", |
| 762 | "le_audio/broadcaster/broadcaster_types.cc", |
| 763 | "le_audio/broadcaster/mock_ble_advertising_manager.cc", |
| 764 | "le_audio/broadcaster/mock_state_machine.cc", |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 765 | "le_audio/client_audio.cc", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 766 | "le_audio/le_audio_types.cc", |
| 767 | "le_audio/mock_iso_manager.cc", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 768 | "test/common/mock_controller.cc", |
Patty | 0d8b97e | 2022-01-07 17:32:29 +0800 | [diff] [blame] | 769 | "le_audio/mock_codec_manager.cc", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 770 | ], |
| 771 | shared_libs: [ |
| 772 | "libprotobuf-cpp-lite", |
| 773 | "libcrypto", |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 774 | "libfmq", |
| 775 | "libbinder_ndk", |
| 776 | "android.hardware.bluetooth.audio@2.0", |
| 777 | "android.hardware.bluetooth.audio@2.1", |
| 778 | "libhidlbase", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 779 | ], |
| 780 | static_libs : [ |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 781 | "libbt-audio-hal-interface", |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 782 | "libgmock", |
| 783 | "libbt-common", |
| 784 | "libbt-protos-lite", |
| 785 | "libosi", |
| 786 | "liblc3", |
| 787 | ], |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 788 | target: { |
| 789 | android: { |
| 790 | shared_libs: [ |
| 791 | "libbinder_ndk", |
Omer Osman | 066fa55 | 2022-05-01 03:22:13 +0000 | [diff] [blame] | 792 | "android.hardware.bluetooth.audio-V2-ndk", |
Grzegorz Kołodziejczyk | 4b8839d | 2022-03-08 14:53:55 +0000 | [diff] [blame] | 793 | ], |
| 794 | }, |
| 795 | }, |
Jakub Tyszkowski | 8604826 | 2021-12-13 12:32:59 +0100 | [diff] [blame] | 796 | sanitize: { |
| 797 | cfi: true, |
| 798 | scs: true, |
| 799 | address: true, |
| 800 | all_undefined: true, |
| 801 | integer_overflow: true, |
| 802 | diag: { |
| 803 | undefined : true |
| 804 | }, |
| 805 | }, |
| 806 | } |
Jakub Tyszkowski | b87fc99 | 2021-04-08 15:08:35 +0000 | [diff] [blame] | 807 | |
| 808 | cc_test { |
| 809 | name: "bluetooth_has_test", |
| 810 | test_suites: ["device-tests"], |
| 811 | defaults: [ |
| 812 | "fluoride_bta_defaults", |
| 813 | "clang_coverage_bin", |
Etienne Ruffieux | c3680d2 | 2022-05-19 04:22:04 +0000 | [diff] [blame] | 814 | "mts_defaults", |
Jakub Tyszkowski | b87fc99 | 2021-04-08 15:08:35 +0000 | [diff] [blame] | 815 | ], |
| 816 | host_supported: true, |
| 817 | include_dirs: [ |
| 818 | "packages/modules/Bluetooth/system", |
| 819 | "packages/modules/Bluetooth/system/bta/include", |
| 820 | "packages/modules/Bluetooth/system/bta/test/common", |
| 821 | "packages/modules/Bluetooth/system/stack/include", |
| 822 | ], |
| 823 | srcs : [ |
| 824 | "gatt/database.cc", |
| 825 | "gatt/database_builder.cc", |
| 826 | "has/has_client.cc", |
| 827 | "has/has_client_test.cc", |
| 828 | "has/has_ctp.cc", |
| 829 | "has/has_journal.cc", |
| 830 | "has/has_preset.cc", |
| 831 | "has/has_types.cc", |
| 832 | "test/common/bta_gatt_api_mock.cc", |
| 833 | "test/common/bta_gatt_queue_mock.cc", |
| 834 | "test/common/btif_storage_mock.cc", |
| 835 | "test/common/btm_api_mock.cc", |
| 836 | "test/common/mock_controller.cc", |
| 837 | "test/common/mock_csis_client.cc", |
| 838 | ], |
| 839 | shared_libs: [ |
| 840 | "libprotobuf-cpp-lite", |
| 841 | "libcrypto", |
| 842 | ], |
| 843 | static_libs : [ |
| 844 | "crypto_toolbox_for_tests", |
| 845 | "libgmock", |
| 846 | "libbt-common", |
| 847 | "libbt-protos-lite", |
| 848 | ], |
| 849 | sanitize: { |
| 850 | cfi: true, |
| 851 | scs: true, |
| 852 | address: true, |
| 853 | all_undefined: true, |
| 854 | integer_overflow: true, |
| 855 | diag: { |
| 856 | undefined : true |
| 857 | }, |
| 858 | }, |
ahujapalash | 5add3d5 | 2022-03-10 18:38:02 +0000 | [diff] [blame] | 859 | } |