1 /*
2 * Copyright 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /*
18 * Generated mock file from original source file
19 * Functions generated:125
20 *
21 * mockcify.pl ver 0.2.1
22 */
23 // Mock include file to share data between tests and mock
24 #include "test/mock/mock_stack_acl.h"
25
26 #include <cstdint>
27 #include <string>
28
29 #include "hci/class_of_device.h"
30 #include "stack/include/acl_api.h"
31 #include "stack/include/acl_client_callbacks.h"
32 #include "stack/include/acl_hci_link_interface.h"
33 #include "stack/include/bt_hdr.h"
34 #include "stack/include/btm_ble_api.h"
35 #include "stack/include/inq_hci_link_interface.h"
36 #include "stack/include/l2cap_acl_interface.h"
37 #include "test/common/mock_functions.h"
38 #include "types/raw_address.h"
39
40 // Mocked compile conditionals, if any
41 // Mocked internal structures, if any
42
43 namespace test {
44 namespace mock {
45 namespace stack_acl {
46
47 // Function state capture and return values, if needed
48 struct BTM_BLE_IS_RESOLVE_BDA BTM_BLE_IS_RESOLVE_BDA;
49 struct BTM_IsAclConnectionUp BTM_IsAclConnectionUp;
50 struct BTM_IsBleConnection BTM_IsBleConnection;
51 struct BTM_ReadRemoteConnectionAddr BTM_ReadRemoteConnectionAddr;
52 struct BTM_is_sniff_allowed_for BTM_is_sniff_allowed_for;
53 struct acl_is_role_switch_allowed acl_is_role_switch_allowed;
54 struct acl_is_switch_role_idle acl_is_switch_role_idle;
55 struct acl_peer_supports_ble_2m_phy acl_peer_supports_ble_2m_phy;
56 struct acl_peer_supports_ble_coded_phy acl_peer_supports_ble_coded_phy;
57 struct acl_send_data_packet_br_edr acl_send_data_packet_br_edr;
58 struct acl_peer_supports_ble_connection_parameters_request
59 acl_peer_supports_ble_connection_parameters_request;
60 struct acl_ble_connection_parameters_request acl_ble_connection_parameters_request;
61 struct acl_peer_supports_ble_packet_extension acl_peer_supports_ble_packet_extension;
62 struct acl_peer_supports_sniff_subrating acl_peer_supports_sniff_subrating;
63 struct acl_peer_supports_ble_connection_subrating acl_peer_supports_ble_connection_subrating;
64 struct acl_peer_supports_ble_connection_subrating_host
65 acl_peer_supports_ble_connection_subrating_host;
66 struct acl_refresh_remote_address acl_refresh_remote_address;
67 struct acl_set_peer_le_features_from_handle acl_set_peer_le_features_from_handle;
68 struct btm_acl_for_bda btm_acl_for_bda;
69 struct BTM_ReadFailedContactCounter BTM_ReadFailedContactCounter;
70 struct BTM_ReadTxPower BTM_ReadTxPower;
71 struct BTM_SetLinkSuperTout BTM_SetLinkSuperTout;
72 struct btm_remove_acl btm_remove_acl;
73 struct btm_get_acl_disc_reason_code btm_get_acl_disc_reason_code;
74 struct btm_is_acl_locally_initiated btm_is_acl_locally_initiated;
75 struct BTM_GetNumAclLinks BTM_GetNumAclLinks;
76 struct acl_get_supported_packet_types acl_get_supported_packet_types;
77 struct acl_link_role_from_handle acl_link_role_from_handle;
78 struct btm_handle_to_acl_index btm_handle_to_acl_index;
79 struct BTM_ReadConnectionAddr BTM_ReadConnectionAddr;
80 struct BTM_acl_after_controller_started BTM_acl_after_controller_started;
81 struct btm_connection_request btm_connection_request;
82 struct acl_disconnect_after_role_switch acl_disconnect_after_role_switch;
83 struct acl_disconnect_from_handle acl_disconnect_from_handle;
84 struct acl_packets_completed acl_packets_completed;
85 struct acl_process_extended_features acl_process_extended_features;
86 struct acl_process_supported_features acl_process_supported_features;
87 struct acl_rcv_acl_data acl_rcv_acl_data;
88 struct acl_send_data_packet_ble acl_send_data_packet_ble;
89 struct acl_set_disconnect_reason acl_set_disconnect_reason;
90 struct acl_write_automatic_flush_timeout acl_write_automatic_flush_timeout;
91 struct btm_acl_connected btm_acl_connected;
92 struct btm_acl_created btm_acl_created;
93 struct btm_acl_device_down btm_acl_device_down;
94 struct btm_acl_disconnected btm_acl_disconnected;
95 struct btm_acl_flush btm_acl_flush;
96 struct btm_acl_encrypt_change btm_acl_encrypt_change;
97 struct btm_acl_notif_conn_collision btm_acl_notif_conn_collision;
98 struct btm_acl_process_sca_cmpl_pkt btm_acl_process_sca_cmpl_pkt;
99 struct btm_acl_removed btm_acl_removed;
100 struct btm_acl_role_changed btm_acl_role_changed;
101 struct btm_cont_rswitch_from_handle btm_cont_rswitch_from_handle;
102 struct btm_establish_continue_from_address btm_establish_continue_from_address;
103 struct btm_read_automatic_flush_timeout_complete btm_read_automatic_flush_timeout_complete;
104 struct btm_read_failed_contact_counter_complete btm_read_failed_contact_counter_complete;
105 struct btm_read_remote_ext_features_complete btm_read_remote_ext_features_complete;
106 struct btm_read_remote_ext_features_complete_raw btm_read_remote_ext_features_complete_raw;
107 struct btm_read_remote_ext_features_failed btm_read_remote_ext_features_failed;
108 struct btm_read_remote_version_complete btm_read_remote_version_complete;
109 struct btm_read_rssi_complete btm_read_rssi_complete;
110 struct btm_read_tx_power_complete btm_read_tx_power_complete;
111 struct btm_rejectlist_role_change_device btm_rejectlist_role_change_device;
112 struct btm_set_packet_types_from_address btm_set_packet_types_from_address;
113 struct on_acl_br_edr_connected on_acl_br_edr_connected;
114 struct on_acl_br_edr_failed on_acl_br_edr_failed;
115 struct BTM_unblock_role_switch_and_sniff_mode_for BTM_unblock_role_switch_and_sniff_mode_for;
116
117 } // namespace stack_acl
118 } // namespace mock
119 } // namespace test
120
121 // Mocked functions, if any
BTM_BLE_IS_RESOLVE_BDA(const RawAddress & x)122 bool BTM_BLE_IS_RESOLVE_BDA(const RawAddress& x) {
123 inc_func_call_count(__func__);
124 return test::mock::stack_acl::BTM_BLE_IS_RESOLVE_BDA(x);
125 }
BTM_IsAclConnectionUp(const RawAddress & remote_bda,tBT_TRANSPORT transport)126 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda, tBT_TRANSPORT transport) {
127 inc_func_call_count(__func__);
128 return test::mock::stack_acl::BTM_IsAclConnectionUp(remote_bda, transport);
129 }
BTM_IsBleConnection(uint16_t hci_handle)130 bool BTM_IsBleConnection(uint16_t hci_handle) {
131 inc_func_call_count(__func__);
132 return test::mock::stack_acl::BTM_IsBleConnection(hci_handle);
133 }
BTM_ReadRemoteConnectionAddr(const RawAddress & pseudo_addr,RawAddress & conn_addr,tBLE_ADDR_TYPE * p_addr_type,bool ota_address)134 bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, RawAddress& conn_addr,
135 tBLE_ADDR_TYPE* p_addr_type, bool ota_address) {
136 inc_func_call_count(__func__);
137 return test::mock::stack_acl::BTM_ReadRemoteConnectionAddr(pseudo_addr, conn_addr, p_addr_type,
138 ota_address);
139 }
BTM_is_sniff_allowed_for(const RawAddress & peer_addr)140 bool BTM_is_sniff_allowed_for(const RawAddress& peer_addr) {
141 inc_func_call_count(__func__);
142 return test::mock::stack_acl::BTM_is_sniff_allowed_for(peer_addr);
143 }
acl_is_role_switch_allowed()144 bool acl_is_role_switch_allowed() {
145 inc_func_call_count(__func__);
146 return test::mock::stack_acl::acl_is_role_switch_allowed();
147 }
acl_is_switch_role_idle(const RawAddress & bd_addr,tBT_TRANSPORT transport)148 bool acl_is_switch_role_idle(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
149 inc_func_call_count(__func__);
150 return test::mock::stack_acl::acl_is_switch_role_idle(bd_addr, transport);
151 }
acl_peer_supports_ble_2m_phy(uint16_t hci_handle)152 bool acl_peer_supports_ble_2m_phy(uint16_t hci_handle) {
153 inc_func_call_count(__func__);
154 return test::mock::stack_acl::acl_peer_supports_ble_2m_phy(hci_handle);
155 }
acl_peer_supports_ble_coded_phy(uint16_t hci_handle)156 bool acl_peer_supports_ble_coded_phy(uint16_t hci_handle) {
157 inc_func_call_count(__func__);
158 return test::mock::stack_acl::acl_peer_supports_ble_coded_phy(hci_handle);
159 }
acl_peer_supports_ble_connection_parameters_request(const RawAddress & remote_bda)160 bool acl_peer_supports_ble_connection_parameters_request(const RawAddress& remote_bda) {
161 inc_func_call_count(__func__);
162 return test::mock::stack_acl::acl_peer_supports_ble_connection_parameters_request(remote_bda);
163 }
acl_ble_connection_parameters_request(uint16_t handle,uint16_t conn_int_min,uint16_t conn_int_max,uint16_t conn_latency,uint16_t conn_timeout,uint16_t min_ce_len,uint16_t max_ce_len)164 void acl_ble_connection_parameters_request(uint16_t handle, uint16_t conn_int_min,
165 uint16_t conn_int_max, uint16_t conn_latency,
166 uint16_t conn_timeout, uint16_t min_ce_len,
167 uint16_t max_ce_len) {
168 inc_func_call_count(__func__);
169 test::mock::stack_acl::acl_ble_connection_parameters_request(
170 handle, conn_int_min, conn_int_max, conn_latency, conn_timeout, min_ce_len, max_ce_len);
171 }
acl_peer_supports_ble_packet_extension(uint16_t hci_handle)172 bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle) {
173 inc_func_call_count(__func__);
174 return test::mock::stack_acl::acl_peer_supports_ble_packet_extension(hci_handle);
175 }
acl_peer_supports_sniff_subrating(const RawAddress & remote_bda)176 bool acl_peer_supports_sniff_subrating(const RawAddress& remote_bda) {
177 inc_func_call_count(__func__);
178 return test::mock::stack_acl::acl_peer_supports_sniff_subrating(remote_bda);
179 }
acl_peer_supports_ble_connection_subrating(const RawAddress & remote_bda)180 bool acl_peer_supports_ble_connection_subrating(const RawAddress& remote_bda) {
181 inc_func_call_count(__func__);
182 return test::mock::stack_acl::acl_peer_supports_ble_connection_subrating(remote_bda);
183 }
acl_peer_supports_ble_connection_subrating_host(const RawAddress & remote_bda)184 bool acl_peer_supports_ble_connection_subrating_host(const RawAddress& remote_bda) {
185 inc_func_call_count(__func__);
186 return test::mock::stack_acl::acl_peer_supports_ble_connection_subrating_host(remote_bda);
187 }
acl_refresh_remote_address(const RawAddress & identity_address,tBLE_ADDR_TYPE identity_address_type,const RawAddress & bda,tBLE_RAND_ADDR_TYPE rra_type,const RawAddress & rpa)188 bool acl_refresh_remote_address(const RawAddress& identity_address,
189 tBLE_ADDR_TYPE identity_address_type, const RawAddress& bda,
190 tBLE_RAND_ADDR_TYPE rra_type, const RawAddress& rpa) {
191 inc_func_call_count(__func__);
192 return test::mock::stack_acl::acl_refresh_remote_address(identity_address, identity_address_type,
193 bda, rra_type, rpa);
194 }
acl_set_peer_le_features_from_handle(uint16_t hci_handle,const uint8_t * p)195 bool acl_set_peer_le_features_from_handle(uint16_t hci_handle, const uint8_t* p) {
196 inc_func_call_count(__func__);
197 return test::mock::stack_acl::acl_set_peer_le_features_from_handle(hci_handle, p);
198 }
acl_send_data_packet_br_edr(const RawAddress & bd_addr,BT_HDR * p_buf)199 void acl_send_data_packet_br_edr(const RawAddress& bd_addr, BT_HDR* p_buf) {
200 inc_func_call_count(__func__);
201 test::mock::stack_acl::acl_send_data_packet_br_edr(bd_addr, p_buf);
202 }
btm_acl_for_bda(const RawAddress & bd_addr,tBT_TRANSPORT transport)203 tACL_CONN* btm_acl_for_bda(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
204 inc_func_call_count(__func__);
205 return test::mock::stack_acl::btm_acl_for_bda(bd_addr, transport);
206 }
BTM_ReadFailedContactCounter(const RawAddress & remote_bda,tBTM_CMPL_CB * p_cb)207 tBTM_STATUS BTM_ReadFailedContactCounter(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb) {
208 inc_func_call_count(__func__);
209 return test::mock::stack_acl::BTM_ReadFailedContactCounter(remote_bda, p_cb);
210 }
BTM_ReadTxPower(const RawAddress & remote_bda,tBT_TRANSPORT transport,tBTM_CMPL_CB * p_cb)211 tBTM_STATUS BTM_ReadTxPower(const RawAddress& remote_bda, tBT_TRANSPORT transport,
212 tBTM_CMPL_CB* p_cb) {
213 inc_func_call_count(__func__);
214 return test::mock::stack_acl::BTM_ReadTxPower(remote_bda, transport, p_cb);
215 }
BTM_SetLinkSuperTout(const RawAddress & remote_bda,uint16_t timeout)216 tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda, uint16_t timeout) {
217 inc_func_call_count(__func__);
218 return test::mock::stack_acl::BTM_SetLinkSuperTout(remote_bda, timeout);
219 }
btm_remove_acl(const RawAddress & bd_addr,tBT_TRANSPORT transport)220 tBTM_STATUS btm_remove_acl(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
221 inc_func_call_count(__func__);
222 return test::mock::stack_acl::btm_remove_acl(bd_addr, transport);
223 }
btm_get_acl_disc_reason_code(void)224 tHCI_REASON btm_get_acl_disc_reason_code(void) {
225 inc_func_call_count(__func__);
226 return test::mock::stack_acl::btm_get_acl_disc_reason_code();
227 }
btm_is_acl_locally_initiated(void)228 bool btm_is_acl_locally_initiated(void) {
229 inc_func_call_count(__func__);
230 return test::mock::stack_acl::btm_is_acl_locally_initiated();
231 }
BTM_GetNumAclLinks(void)232 uint16_t BTM_GetNumAclLinks(void) {
233 inc_func_call_count(__func__);
234 return test::mock::stack_acl::BTM_GetNumAclLinks();
235 }
acl_get_supported_packet_types()236 uint16_t acl_get_supported_packet_types() {
237 inc_func_call_count(__func__);
238 return test::mock::stack_acl::acl_get_supported_packet_types();
239 }
acl_link_role_from_handle(uint16_t handle)240 uint8_t acl_link_role_from_handle(uint16_t handle) {
241 inc_func_call_count(__func__);
242 return test::mock::stack_acl::acl_link_role_from_handle(handle);
243 }
btm_handle_to_acl_index(uint16_t hci_handle)244 uint8_t btm_handle_to_acl_index(uint16_t hci_handle) {
245 inc_func_call_count(__func__);
246 return test::mock::stack_acl::btm_handle_to_acl_index(hci_handle);
247 }
BTM_ReadConnectionAddr(const RawAddress & remote_bda,RawAddress & local_conn_addr,tBLE_ADDR_TYPE * p_addr_type,bool ota_address)248 void BTM_ReadConnectionAddr(const RawAddress& remote_bda, RawAddress& local_conn_addr,
249 tBLE_ADDR_TYPE* p_addr_type, bool ota_address) {
250 inc_func_call_count(__func__);
251 test::mock::stack_acl::BTM_ReadConnectionAddr(remote_bda, local_conn_addr, p_addr_type,
252 ota_address);
253 }
BTM_acl_after_controller_started()254 void BTM_acl_after_controller_started() {
255 inc_func_call_count(__func__);
256 test::mock::stack_acl::BTM_acl_after_controller_started();
257 }
acl_disconnect_after_role_switch(uint16_t conn_handle,tHCI_STATUS reason,std::string comment)258 void acl_disconnect_after_role_switch(uint16_t conn_handle, tHCI_STATUS reason,
259 std::string comment) {
260 inc_func_call_count(__func__);
261 test::mock::stack_acl::acl_disconnect_after_role_switch(conn_handle, reason, comment);
262 }
acl_disconnect_from_handle(uint16_t handle,tHCI_STATUS reason,std::string comment)263 void acl_disconnect_from_handle(uint16_t handle, tHCI_STATUS reason, std::string comment) {
264 inc_func_call_count(__func__);
265 test::mock::stack_acl::acl_disconnect_from_handle(handle, reason, comment);
266 }
acl_packets_completed(uint16_t handle,uint16_t credits)267 void acl_packets_completed(uint16_t handle, uint16_t credits) {
268 inc_func_call_count(__func__);
269 test::mock::stack_acl::acl_packets_completed(handle, credits);
270 }
acl_process_extended_features(uint16_t handle,uint8_t current_page_number,uint8_t max_page_number,uint64_t features)271 void acl_process_extended_features(uint16_t handle, uint8_t current_page_number,
272 uint8_t max_page_number, uint64_t features) {
273 inc_func_call_count(__func__);
274 test::mock::stack_acl::acl_process_extended_features(handle, current_page_number, max_page_number,
275 features);
276 }
acl_process_supported_features(uint16_t handle,uint64_t features)277 void acl_process_supported_features(uint16_t handle, uint64_t features) {
278 inc_func_call_count(__func__);
279 test::mock::stack_acl::acl_process_supported_features(handle, features);
280 }
acl_rcv_acl_data(BT_HDR * p_msg)281 void acl_rcv_acl_data(BT_HDR* p_msg) {
282 inc_func_call_count(__func__);
283 test::mock::stack_acl::acl_rcv_acl_data(p_msg);
284 }
acl_send_data_packet_ble(const RawAddress & bd_addr,BT_HDR * p_buf)285 void acl_send_data_packet_ble(const RawAddress& bd_addr, BT_HDR* p_buf) {
286 inc_func_call_count(__func__);
287 test::mock::stack_acl::acl_send_data_packet_ble(bd_addr, p_buf);
288 }
acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason)289 void acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason) {
290 inc_func_call_count(__func__);
291 test::mock::stack_acl::acl_set_disconnect_reason(acl_disc_reason);
292 }
acl_write_automatic_flush_timeout(const RawAddress & bd_addr,uint16_t flush_timeout_in_ticks)293 void acl_write_automatic_flush_timeout(const RawAddress& bd_addr, uint16_t flush_timeout_in_ticks) {
294 inc_func_call_count(__func__);
295 test::mock::stack_acl::acl_write_automatic_flush_timeout(bd_addr, flush_timeout_in_ticks);
296 }
btm_acl_connected(const RawAddress & bda,uint16_t handle,tHCI_STATUS status,uint8_t enc_mode)297 void btm_acl_connected(const RawAddress& bda, uint16_t handle, tHCI_STATUS status,
298 uint8_t enc_mode) {
299 inc_func_call_count(__func__);
300 test::mock::stack_acl::btm_acl_connected(bda, handle, status, enc_mode);
301 }
btm_acl_created(const RawAddress & bda,uint16_t hci_handle,tHCI_ROLE link_role,tBT_TRANSPORT transport)302 void btm_acl_created(const RawAddress& bda, uint16_t hci_handle, tHCI_ROLE link_role,
303 tBT_TRANSPORT transport) {
304 inc_func_call_count(__func__);
305 test::mock::stack_acl::btm_acl_created(bda, hci_handle, link_role, transport);
306 }
btm_acl_device_down(void)307 void btm_acl_device_down(void) {
308 inc_func_call_count(__func__);
309 test::mock::stack_acl::btm_acl_device_down();
310 }
btm_acl_disconnected(tHCI_STATUS status,uint16_t handle,tHCI_REASON reason)311 void btm_acl_disconnected(tHCI_STATUS status, uint16_t handle, tHCI_REASON reason) {
312 inc_func_call_count(__func__);
313 test::mock::stack_acl::btm_acl_disconnected(status, handle, reason);
314 }
btm_acl_encrypt_change(uint16_t handle,uint8_t status,uint8_t encr_enable)315 void btm_acl_encrypt_change(uint16_t handle, uint8_t status, uint8_t encr_enable) {
316 inc_func_call_count(__func__);
317 test::mock::stack_acl::btm_acl_encrypt_change(handle, status, encr_enable);
318 }
btm_acl_notif_conn_collision(const RawAddress & bda)319 void btm_acl_notif_conn_collision(const RawAddress& bda) {
320 inc_func_call_count(__func__);
321 test::mock::stack_acl::btm_acl_notif_conn_collision(bda);
322 }
btm_acl_process_sca_cmpl_pkt(uint8_t len,uint8_t * data)323 void btm_acl_process_sca_cmpl_pkt(uint8_t len, uint8_t* data) {
324 inc_func_call_count(__func__);
325 test::mock::stack_acl::btm_acl_process_sca_cmpl_pkt(len, data);
326 }
btm_acl_removed(uint16_t handle)327 void btm_acl_removed(uint16_t handle) {
328 inc_func_call_count(__func__);
329 test::mock::stack_acl::btm_acl_removed(handle);
330 }
btm_acl_flush(uint16_t handle)331 void btm_acl_flush(uint16_t handle) {
332 inc_func_call_count(__func__);
333 test::mock::stack_acl::btm_acl_flush(handle);
334 }
btm_acl_role_changed(tHCI_STATUS hci_status,const RawAddress & bd_addr,tHCI_ROLE new_role)335 void btm_acl_role_changed(tHCI_STATUS hci_status, const RawAddress& bd_addr, tHCI_ROLE new_role) {
336 inc_func_call_count(__func__);
337 test::mock::stack_acl::btm_acl_role_changed(hci_status, bd_addr, new_role);
338 }
btm_cont_rswitch_from_handle(uint16_t hci_handle)339 void btm_cont_rswitch_from_handle(uint16_t hci_handle) {
340 inc_func_call_count(__func__);
341 test::mock::stack_acl::btm_cont_rswitch_from_handle(hci_handle);
342 }
btm_establish_continue_from_address(const RawAddress & bda,tBT_TRANSPORT transport)343 void btm_establish_continue_from_address(const RawAddress& bda, tBT_TRANSPORT transport) {
344 inc_func_call_count(__func__);
345 test::mock::stack_acl::btm_establish_continue_from_address(bda, transport);
346 }
btm_read_automatic_flush_timeout_complete(uint8_t * p)347 void btm_read_automatic_flush_timeout_complete(uint8_t* p) {
348 inc_func_call_count(__func__);
349 test::mock::stack_acl::btm_read_automatic_flush_timeout_complete(p);
350 }
btm_read_failed_contact_counter_complete(uint8_t * p)351 void btm_read_failed_contact_counter_complete(uint8_t* p) {
352 inc_func_call_count(__func__);
353 test::mock::stack_acl::btm_read_failed_contact_counter_complete(p);
354 }
btm_read_remote_ext_features_complete(uint16_t handle,uint8_t page_num,uint8_t max_page,uint8_t * features)355 void btm_read_remote_ext_features_complete(uint16_t handle, uint8_t page_num, uint8_t max_page,
356 uint8_t* features) {
357 inc_func_call_count(__func__);
358 test::mock::stack_acl::btm_read_remote_ext_features_complete(handle, page_num, max_page,
359 features);
360 }
btm_read_remote_ext_features_complete_raw(uint8_t * p,uint8_t evt_len)361 void btm_read_remote_ext_features_complete_raw(uint8_t* p, uint8_t evt_len) {
362 inc_func_call_count(__func__);
363 test::mock::stack_acl::btm_read_remote_ext_features_complete_raw(p, evt_len);
364 }
btm_read_remote_ext_features_failed(uint8_t status,uint16_t handle)365 void btm_read_remote_ext_features_failed(uint8_t status, uint16_t handle) {
366 inc_func_call_count(__func__);
367 test::mock::stack_acl::btm_read_remote_ext_features_failed(status, handle);
368 }
btm_read_remote_version_complete(tHCI_STATUS status,uint16_t handle,uint8_t lmp_version,uint16_t manufacturer,uint16_t lmp_subversion)369 void btm_read_remote_version_complete(tHCI_STATUS status, uint16_t handle, uint8_t lmp_version,
370 uint16_t manufacturer, uint16_t lmp_subversion) {
371 inc_func_call_count(__func__);
372 test::mock::stack_acl::btm_read_remote_version_complete(status, handle, lmp_version, manufacturer,
373 lmp_subversion);
374 }
btm_read_rssi_complete(uint8_t * p,uint16_t evt_len)375 void btm_read_rssi_complete(uint8_t* p, uint16_t evt_len) {
376 inc_func_call_count(__func__);
377 test::mock::stack_acl::btm_read_rssi_complete(p, evt_len);
378 }
btm_read_tx_power_complete(uint8_t * p,uint16_t evt_len,bool is_ble)379 void btm_read_tx_power_complete(uint8_t* p, uint16_t evt_len, bool is_ble) {
380 inc_func_call_count(__func__);
381 test::mock::stack_acl::btm_read_tx_power_complete(p, evt_len, is_ble);
382 }
btm_rejectlist_role_change_device(const RawAddress & bd_addr,uint8_t hci_status)383 void btm_rejectlist_role_change_device(const RawAddress& bd_addr, uint8_t hci_status) {
384 inc_func_call_count(__func__);
385 test::mock::stack_acl::btm_rejectlist_role_change_device(bd_addr, hci_status);
386 }
btm_set_packet_types_from_address(const RawAddress & bd_addr,uint16_t pkt_types)387 void btm_set_packet_types_from_address(const RawAddress& bd_addr, uint16_t pkt_types) {
388 inc_func_call_count(__func__);
389 test::mock::stack_acl::btm_set_packet_types_from_address(bd_addr, pkt_types);
390 }
btm_connection_request(const RawAddress & bda,const bluetooth::hci::ClassOfDevice & cod)391 void btm_connection_request(const RawAddress& bda, const bluetooth::hci::ClassOfDevice& cod) {
392 test::mock::stack_acl::btm_connection_request(bda, cod);
393 }
on_acl_br_edr_connected(const RawAddress & bda,uint16_t handle,uint8_t enc_mode,bool locally_initiated)394 void on_acl_br_edr_connected(const RawAddress& bda, uint16_t handle, uint8_t enc_mode,
395 bool locally_initiated) {
396 inc_func_call_count(__func__);
397 test::mock::stack_acl::on_acl_br_edr_connected(bda, handle, enc_mode, locally_initiated);
398 }
on_acl_br_edr_failed(const RawAddress & bda,tHCI_STATUS status,bool locally_initiated)399 void on_acl_br_edr_failed(const RawAddress& bda, tHCI_STATUS status, bool locally_initiated) {
400 inc_func_call_count(__func__);
401 test::mock::stack_acl::on_acl_br_edr_failed(bda, status, locally_initiated);
402 }
403
BTM_unblock_role_switch_and_sniff_mode_for(const RawAddress & peer_addr)404 void BTM_unblock_role_switch_and_sniff_mode_for(const RawAddress& peer_addr) {
405 inc_func_call_count(__func__);
406 test::mock::stack_acl::BTM_unblock_role_switch_and_sniff_mode_for(peer_addr);
407 }
408
409 // END mockcify generation
410
BTM_block_role_switch_and_sniff_mode_for(const RawAddress &)411 void BTM_block_role_switch_and_sniff_mode_for(const RawAddress& /* peer_addr */) {}
412