• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 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  * Generated mock file from original source file
18  *   Functions generated:52
19  *
20  *  mockcify.pl ver 0.5.0
21  */
22 // Mock include file to share data between tests and mock
23 #include "test/mock/mock_stack_btm_ble.h"
24 
25 #include <cstdint>
26 #include <optional>
27 
28 #include "stack/include/btm_api_types.h"
29 #include "stack/include/btm_status.h"
30 #include "test/common/mock_functions.h"
31 
32 // Original usings
33 
34 // Mocked internal structures, if any
35 
36 namespace test {
37 namespace mock {
38 namespace stack_btm_ble {
39 
40 // Function state capture and return values, if needed
41 struct BTM_BleConfirmReply BTM_BleConfirmReply;
42 struct BTM_BleDataSignature BTM_BleDataSignature;
43 struct BTM_BleLoadLocalKeys BTM_BleLoadLocalKeys;
44 struct BTM_BleOobDataReply BTM_BleOobDataReply;
45 struct BTM_BlePasskeyReply BTM_BlePasskeyReply;
46 struct BTM_BleReadPhy BTM_BleReadPhy;
47 struct BTM_BleReceiverTest BTM_BleReceiverTest;
48 struct BTM_BleSecureConnectionOobDataReply BTM_BleSecureConnectionOobDataReply;
49 struct BTM_BleSetPhy BTM_BleSetPhy;
50 struct BTM_BleSetPrefConnParams BTM_BleSetPrefConnParams;
51 struct BTM_BleTestEnd BTM_BleTestEnd;
52 struct BTM_BleTransmitterTest BTM_BleTransmitterTest;
53 struct BTM_BleVerifySignature BTM_BleVerifySignature;
54 struct BTM_GetDeviceDHK BTM_GetDeviceDHK;
55 struct BTM_GetDeviceEncRoot BTM_GetDeviceEncRoot;
56 struct BTM_GetDeviceIDRoot BTM_GetDeviceIDRoot;
57 struct BTM_ReadConnectedTransportAddress BTM_ReadConnectedTransportAddress;
58 struct BTM_ReadDevInfo BTM_ReadDevInfo;
59 struct BTM_GetRemoteDeviceName BTM_GetRemoteDeviceName;
60 struct BTM_SecAddBleDevice BTM_SecAddBleDevice;
61 struct BTM_SecAddBleKey BTM_SecAddBleKey;
62 struct BTM_SecurityGrant BTM_SecurityGrant;
63 struct BTM_SetBleDataLength BTM_SetBleDataLength;
64 struct BTM_UseLeLink BTM_UseLeLink;
65 struct btm_ble_connected btm_ble_connected;
66 struct btm_ble_get_acl_remote_addr btm_ble_get_acl_remote_addr;
67 struct btm_ble_get_enc_key_type btm_ble_get_enc_key_type;
68 struct btm_ble_link_encrypted btm_ble_link_encrypted;
69 struct btm_ble_link_sec_check btm_ble_link_sec_check;
70 struct btm_ble_ltk_request btm_ble_ltk_request;
71 struct btm_ble_ltk_request_reply btm_ble_ltk_request_reply;
72 struct btm_ble_read_sec_key_size btm_ble_read_sec_key_size;
73 struct btm_ble_reset_id btm_ble_reset_id;
74 struct btm_ble_set_encryption btm_ble_set_encryption;
75 struct btm_ble_set_keep_rfu_in_auth_req btm_ble_set_keep_rfu_in_auth_req;
76 struct btm_ble_set_no_disc_if_pair_fail btm_ble_set_no_disc_if_pair_fail;
77 struct btm_ble_set_test_local_sign_cntr_value
78     btm_ble_set_test_local_sign_cntr_value;
79 struct btm_ble_set_test_mac_value btm_ble_set_test_mac_value;
80 struct btm_ble_start_encrypt btm_ble_start_encrypt;
81 struct btm_ble_start_sec_check btm_ble_start_sec_check;
82 struct btm_ble_test_command_complete btm_ble_test_command_complete;
83 struct btm_ble_update_sec_key_size btm_ble_update_sec_key_size;
84 struct btm_get_local_div btm_get_local_div;
85 struct btm_proc_smp_cback btm_proc_smp_cback;
86 struct btm_sec_save_le_key btm_sec_save_le_key;
87 struct doNothing doNothing;
88 struct read_phy_cb read_phy_cb;
89 
90 }  // namespace stack_btm_ble
91 }  // namespace mock
92 }  // namespace test
93 
94 // Mocked function return values, if any
95 namespace test {
96 namespace mock {
97 namespace stack_btm_ble {
98 
99 bool BTM_GetRemoteDeviceName::return_value = false;
100 bool BTM_BleDataSignature::return_value = false;
101 bool BTM_BleVerifySignature::return_value = false;
102 const Octet16 BTM_GetDeviceDHK::return_value{0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77,
103                                              0x73, 0x3e, 0xff, 0xff, 0xb2, 0xec,
104                                              0x71, 0x2b, 0xae, 0xab};
105 const Octet16 BTM_GetDeviceEncRoot::return_value{
106     0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77, 0x73, 0x3e,
107     0xff, 0xff, 0xb2, 0xec, 0x71, 0x2b, 0xae, 0xab};
108 const Octet16 BTM_GetDeviceIDRoot::return_value{
109     0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77, 0x73, 0x3e,
110     0xff, 0xff, 0xb2, 0xec, 0x71, 0x2b, 0xae, 0xab};
111 bool BTM_ReadConnectedTransportAddress::return_value = false;
112 tBTM_STATUS BTM_SetBleDataLength::return_value = 0;
113 bool BTM_UseLeLink::return_value = false;
114 bool btm_ble_get_acl_remote_addr::return_value = false;
115 bool btm_ble_get_enc_key_type::return_value = false;
116 uint8_t btm_ble_read_sec_key_size::return_value = 0;
117 tBTM_STATUS btm_ble_set_encryption::return_value = 0;
118 tBTM_STATUS btm_ble_start_encrypt::return_value = 0;
119 tBTM_STATUS btm_ble_start_sec_check::return_value = BTM_SUCCESS;
120 bool btm_get_local_div::return_value = false;
121 tBTM_STATUS btm_proc_smp_cback::return_value = 0;
122 
123 }  // namespace stack_btm_ble
124 }  // namespace mock
125 }  // namespace test
126 
127 // Mocked functions, if any
BTM_BleConfirmReply(const RawAddress & bd_addr,uint8_t res)128 void BTM_BleConfirmReply(const RawAddress& bd_addr, uint8_t res) {
129   inc_func_call_count(__func__);
130   test::mock::stack_btm_ble::BTM_BleConfirmReply(bd_addr, res);
131 }
BTM_BleDataSignature(const RawAddress & bd_addr,uint8_t * p_text,uint16_t len,BLE_SIGNATURE signature)132 bool BTM_BleDataSignature(const RawAddress& bd_addr, uint8_t* p_text,
133                           uint16_t len, BLE_SIGNATURE signature) {
134   inc_func_call_count(__func__);
135   return test::mock::stack_btm_ble::BTM_BleDataSignature(bd_addr, p_text, len,
136                                                          signature);
137 }
BTM_BleLoadLocalKeys(uint8_t key_type,tBTM_BLE_LOCAL_KEYS * p_key)138 void BTM_BleLoadLocalKeys(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key) {
139   inc_func_call_count(__func__);
140   test::mock::stack_btm_ble::BTM_BleLoadLocalKeys(key_type, p_key);
141 }
BTM_BleOobDataReply(const RawAddress & bd_addr,uint8_t res,uint8_t len,uint8_t * p_data)142 void BTM_BleOobDataReply(const RawAddress& bd_addr, uint8_t res, uint8_t len,
143                          uint8_t* p_data) {
144   inc_func_call_count(__func__);
145   test::mock::stack_btm_ble::BTM_BleOobDataReply(bd_addr, res, len, p_data);
146 }
BTM_BlePasskeyReply(const RawAddress & bd_addr,uint8_t res,uint32_t passkey)147 void BTM_BlePasskeyReply(const RawAddress& bd_addr, uint8_t res,
148                          uint32_t passkey) {
149   inc_func_call_count(__func__);
150   test::mock::stack_btm_ble::BTM_BlePasskeyReply(bd_addr, res, passkey);
151 }
BTM_BleReadPhy(const RawAddress & bd_addr,base::Callback<void (uint8_t tx_phy,uint8_t rx_phy,uint8_t status)> cb)152 void BTM_BleReadPhy(
153     const RawAddress& bd_addr,
154     base::Callback<void(uint8_t tx_phy, uint8_t rx_phy, uint8_t status)> cb) {
155   inc_func_call_count(__func__);
156   test::mock::stack_btm_ble::BTM_BleReadPhy(bd_addr, cb);
157 }
BTM_BleReceiverTest(uint8_t rx_freq,tBTM_CMPL_CB * p_cmd_cmpl_cback)158 void BTM_BleReceiverTest(uint8_t rx_freq, tBTM_CMPL_CB* p_cmd_cmpl_cback) {
159   inc_func_call_count(__func__);
160   test::mock::stack_btm_ble::BTM_BleReceiverTest(rx_freq, p_cmd_cmpl_cback);
161 }
BTM_BleSecureConnectionOobDataReply(const RawAddress & bd_addr,uint8_t * p_c,uint8_t * p_r)162 void BTM_BleSecureConnectionOobDataReply(const RawAddress& bd_addr,
163                                          uint8_t* p_c, uint8_t* p_r) {
164   inc_func_call_count(__func__);
165   test::mock::stack_btm_ble::BTM_BleSecureConnectionOobDataReply(bd_addr, p_c,
166                                                                  p_r);
167 }
BTM_BleSetPhy(const RawAddress & bd_addr,uint8_t tx_phys,uint8_t rx_phys,uint16_t phy_options)168 void BTM_BleSetPhy(const RawAddress& bd_addr, uint8_t tx_phys, uint8_t rx_phys,
169                    uint16_t phy_options) {
170   inc_func_call_count(__func__);
171   test::mock::stack_btm_ble::BTM_BleSetPhy(bd_addr, tx_phys, rx_phys,
172                                            phy_options);
173 }
BTM_BleSetPrefConnParams(const RawAddress & bd_addr,uint16_t min_conn_int,uint16_t max_conn_int,uint16_t peripheral_latency,uint16_t supervision_tout)174 void BTM_BleSetPrefConnParams(const RawAddress& bd_addr, uint16_t min_conn_int,
175                               uint16_t max_conn_int,
176                               uint16_t peripheral_latency,
177                               uint16_t supervision_tout) {
178   inc_func_call_count(__func__);
179   test::mock::stack_btm_ble::BTM_BleSetPrefConnParams(
180       bd_addr, min_conn_int, max_conn_int, peripheral_latency,
181       supervision_tout);
182 }
BTM_BleTestEnd(tBTM_CMPL_CB * p_cmd_cmpl_cback)183 void BTM_BleTestEnd(tBTM_CMPL_CB* p_cmd_cmpl_cback) {
184   inc_func_call_count(__func__);
185   test::mock::stack_btm_ble::BTM_BleTestEnd(p_cmd_cmpl_cback);
186 }
BTM_BleTransmitterTest(uint8_t tx_freq,uint8_t test_data_len,uint8_t packet_payload,tBTM_CMPL_CB * p_cmd_cmpl_cback)187 void BTM_BleTransmitterTest(uint8_t tx_freq, uint8_t test_data_len,
188                             uint8_t packet_payload,
189                             tBTM_CMPL_CB* p_cmd_cmpl_cback) {
190   inc_func_call_count(__func__);
191   test::mock::stack_btm_ble::BTM_BleTransmitterTest(
192       tx_freq, test_data_len, packet_payload, p_cmd_cmpl_cback);
193 }
BTM_BleVerifySignature(const RawAddress & bd_addr,uint8_t * p_orig,uint16_t len,uint32_t counter,uint8_t * p_comp)194 bool BTM_BleVerifySignature(const RawAddress& bd_addr, uint8_t* p_orig,
195                             uint16_t len, uint32_t counter, uint8_t* p_comp) {
196   inc_func_call_count(__func__);
197   return test::mock::stack_btm_ble::BTM_BleVerifySignature(bd_addr, p_orig, len,
198                                                            counter, p_comp);
199 }
BTM_GetDeviceDHK()200 const Octet16& BTM_GetDeviceDHK() {
201   inc_func_call_count(__func__);
202   return test::mock::stack_btm_ble::BTM_GetDeviceDHK();
203 }
BTM_GetDeviceEncRoot()204 const Octet16& BTM_GetDeviceEncRoot() {
205   inc_func_call_count(__func__);
206   return test::mock::stack_btm_ble::BTM_GetDeviceEncRoot();
207 }
BTM_GetDeviceIDRoot()208 const Octet16& BTM_GetDeviceIDRoot() {
209   inc_func_call_count(__func__);
210   return test::mock::stack_btm_ble::BTM_GetDeviceIDRoot();
211 }
BTM_ReadConnectedTransportAddress(RawAddress * remote_bda,tBT_TRANSPORT transport)212 bool BTM_ReadConnectedTransportAddress(RawAddress* remote_bda,
213                                        tBT_TRANSPORT transport) {
214   inc_func_call_count(__func__);
215   return test::mock::stack_btm_ble::BTM_ReadConnectedTransportAddress(
216       remote_bda, transport);
217 }
BTM_ReadDevInfo(const RawAddress & remote_bda,tBT_DEVICE_TYPE * p_dev_type,tBLE_ADDR_TYPE * p_addr_type)218 void BTM_ReadDevInfo(const RawAddress& remote_bda, tBT_DEVICE_TYPE* p_dev_type,
219                      tBLE_ADDR_TYPE* p_addr_type) {
220   inc_func_call_count(__func__);
221   test::mock::stack_btm_ble::BTM_ReadDevInfo(remote_bda, p_dev_type,
222                                              p_addr_type);
223 }
BTM_GetRemoteDeviceName(const RawAddress & bd_addr,BD_NAME bd_name)224 bool BTM_GetRemoteDeviceName(const RawAddress& bd_addr, BD_NAME bd_name) {
225   inc_func_call_count(__func__);
226   return test::mock::stack_btm_ble::BTM_GetRemoteDeviceName(bd_addr, bd_name);
227 }
BTM_SecAddBleDevice(const RawAddress & bd_addr,tBT_DEVICE_TYPE dev_type,tBLE_ADDR_TYPE addr_type)228 void BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type,
229                          tBLE_ADDR_TYPE addr_type) {
230   inc_func_call_count(__func__);
231   test::mock::stack_btm_ble::BTM_SecAddBleDevice(bd_addr, dev_type, addr_type);
232 }
BTM_SecAddBleKey(const RawAddress & bd_addr,tBTM_LE_KEY_VALUE * p_le_key,tBTM_LE_KEY_TYPE key_type)233 void BTM_SecAddBleKey(const RawAddress& bd_addr, tBTM_LE_KEY_VALUE* p_le_key,
234                       tBTM_LE_KEY_TYPE key_type) {
235   inc_func_call_count(__func__);
236   test::mock::stack_btm_ble::BTM_SecAddBleKey(bd_addr, p_le_key, key_type);
237 }
BTM_SecurityGrant(const RawAddress & bd_addr,uint8_t res)238 void BTM_SecurityGrant(const RawAddress& bd_addr, uint8_t res) {
239   inc_func_call_count(__func__);
240   test::mock::stack_btm_ble::BTM_SecurityGrant(bd_addr, res);
241 }
BTM_SetBleDataLength(const RawAddress & bd_addr,uint16_t tx_pdu_length)242 tBTM_STATUS BTM_SetBleDataLength(const RawAddress& bd_addr,
243                                  uint16_t tx_pdu_length) {
244   inc_func_call_count(__func__);
245   return test::mock::stack_btm_ble::BTM_SetBleDataLength(bd_addr,
246                                                          tx_pdu_length);
247 }
BTM_UseLeLink(const RawAddress & bd_addr)248 bool BTM_UseLeLink(const RawAddress& bd_addr) {
249   inc_func_call_count(__func__);
250   return test::mock::stack_btm_ble::BTM_UseLeLink(bd_addr);
251 }
btm_ble_connected(const RawAddress & bda,uint16_t handle,uint8_t enc_mode,uint8_t role,tBLE_ADDR_TYPE addr_type,bool addr_matched,bool can_read_discoverable_characteristics)252 void btm_ble_connected(const RawAddress& bda, uint16_t handle, uint8_t enc_mode,
253                        uint8_t role, tBLE_ADDR_TYPE addr_type,
254                        bool addr_matched,
255                        bool can_read_discoverable_characteristics) {
256   inc_func_call_count(__func__);
257   test::mock::stack_btm_ble::btm_ble_connected(
258       bda, handle, enc_mode, role, addr_type, addr_matched,
259       can_read_discoverable_characteristics);
260 }
btm_ble_get_acl_remote_addr(uint16_t hci_handle,RawAddress & conn_addr,tBLE_ADDR_TYPE * p_addr_type)261 bool btm_ble_get_acl_remote_addr(uint16_t hci_handle, RawAddress& conn_addr,
262                                  tBLE_ADDR_TYPE* p_addr_type) {
263   inc_func_call_count(__func__);
264   return test::mock::stack_btm_ble::btm_ble_get_acl_remote_addr(
265       hci_handle, conn_addr, p_addr_type);
266 }
btm_ble_get_enc_key_type(const RawAddress & bd_addr,uint8_t * p_key_types)267 bool btm_ble_get_enc_key_type(const RawAddress& bd_addr, uint8_t* p_key_types) {
268   inc_func_call_count(__func__);
269   return test::mock::stack_btm_ble::btm_ble_get_enc_key_type(bd_addr,
270                                                              p_key_types);
271 }
btm_ble_link_encrypted(const RawAddress & bd_addr,uint8_t encr_enable)272 void btm_ble_link_encrypted(const RawAddress& bd_addr, uint8_t encr_enable) {
273   inc_func_call_count(__func__);
274   test::mock::stack_btm_ble::btm_ble_link_encrypted(bd_addr, encr_enable);
275 }
btm_ble_link_sec_check(const RawAddress & bd_addr,tBTM_LE_AUTH_REQ auth_req,tBTM_BLE_SEC_REQ_ACT * p_sec_req_act)276 void btm_ble_link_sec_check(const RawAddress& bd_addr,
277                             tBTM_LE_AUTH_REQ auth_req,
278                             tBTM_BLE_SEC_REQ_ACT* p_sec_req_act) {
279   inc_func_call_count(__func__);
280   test::mock::stack_btm_ble::btm_ble_link_sec_check(bd_addr, auth_req,
281                                                     p_sec_req_act);
282 }
btm_ble_ltk_request(uint16_t handle,BT_OCTET8 rand,uint16_t ediv)283 void btm_ble_ltk_request(uint16_t handle, BT_OCTET8 rand, uint16_t ediv) {
284   inc_func_call_count(__func__);
285   test::mock::stack_btm_ble::btm_ble_ltk_request(handle, rand, ediv);
286 }
btm_ble_ltk_request_reply(const RawAddress & bda,bool use_stk,const Octet16 & stk)287 void btm_ble_ltk_request_reply(const RawAddress& bda, bool use_stk,
288                                const Octet16& stk) {
289   inc_func_call_count(__func__);
290   test::mock::stack_btm_ble::btm_ble_ltk_request_reply(bda, use_stk, stk);
291 }
btm_ble_read_sec_key_size(const RawAddress & bd_addr)292 uint8_t btm_ble_read_sec_key_size(const RawAddress& bd_addr) {
293   inc_func_call_count(__func__);
294   return test::mock::stack_btm_ble::btm_ble_read_sec_key_size(bd_addr);
295 }
btm_ble_reset_id(void)296 void btm_ble_reset_id(void) {
297   inc_func_call_count(__func__);
298   test::mock::stack_btm_ble::btm_ble_reset_id();
299 }
btm_ble_set_encryption(const RawAddress & bd_addr,tBTM_BLE_SEC_ACT sec_act,uint8_t link_role)300 tBTM_STATUS btm_ble_set_encryption(const RawAddress& bd_addr,
301                                    tBTM_BLE_SEC_ACT sec_act,
302                                    uint8_t link_role) {
303   inc_func_call_count(__func__);
304   return test::mock::stack_btm_ble::btm_ble_set_encryption(bd_addr, sec_act,
305                                                            link_role);
306 }
btm_ble_set_keep_rfu_in_auth_req(bool keep_rfu)307 void btm_ble_set_keep_rfu_in_auth_req(bool keep_rfu) {
308   inc_func_call_count(__func__);
309   test::mock::stack_btm_ble::btm_ble_set_keep_rfu_in_auth_req(keep_rfu);
310 }
btm_ble_set_no_disc_if_pair_fail(bool disable_disc)311 void btm_ble_set_no_disc_if_pair_fail(bool disable_disc) {
312   inc_func_call_count(__func__);
313   test::mock::stack_btm_ble::btm_ble_set_no_disc_if_pair_fail(disable_disc);
314 }
btm_ble_set_test_local_sign_cntr_value(bool enable,uint32_t test_local_sign_cntr)315 void btm_ble_set_test_local_sign_cntr_value(bool enable,
316                                             uint32_t test_local_sign_cntr) {
317   inc_func_call_count(__func__);
318   test::mock::stack_btm_ble::btm_ble_set_test_local_sign_cntr_value(
319       enable, test_local_sign_cntr);
320 }
btm_ble_set_test_mac_value(bool enable,uint8_t * p_test_mac_val)321 void btm_ble_set_test_mac_value(bool enable, uint8_t* p_test_mac_val) {
322   inc_func_call_count(__func__);
323   test::mock::stack_btm_ble::btm_ble_set_test_mac_value(enable, p_test_mac_val);
324 }
btm_ble_start_encrypt(const RawAddress & bda,bool use_stk,Octet16 * p_stk)325 tBTM_STATUS btm_ble_start_encrypt(const RawAddress& bda, bool use_stk,
326                                   Octet16* p_stk) {
327   inc_func_call_count(__func__);
328   return test::mock::stack_btm_ble::btm_ble_start_encrypt(bda, use_stk, p_stk);
329 }
btm_ble_start_sec_check(const RawAddress & bd_addr,uint16_t psm,bool is_originator,tBTM_SEC_CALLBACK * p_callback,void * p_ref_data)330 tBTM_STATUS btm_ble_start_sec_check(const RawAddress& bd_addr, uint16_t psm,
331                                     bool is_originator,
332                                     tBTM_SEC_CALLBACK* p_callback,
333                                     void* p_ref_data) {
334   inc_func_call_count(__func__);
335   return test::mock::stack_btm_ble::btm_ble_start_sec_check(
336       bd_addr, psm, is_originator, p_callback, p_ref_data);
337 }
btm_ble_test_command_complete(uint8_t * p)338 void btm_ble_test_command_complete(uint8_t* p) {
339   inc_func_call_count(__func__);
340   test::mock::stack_btm_ble::btm_ble_test_command_complete(p);
341 }
btm_ble_update_sec_key_size(const RawAddress & bd_addr,uint8_t enc_key_size)342 void btm_ble_update_sec_key_size(const RawAddress& bd_addr,
343                                  uint8_t enc_key_size) {
344   inc_func_call_count(__func__);
345   test::mock::stack_btm_ble::btm_ble_update_sec_key_size(bd_addr, enc_key_size);
346 }
btm_get_local_div(const RawAddress & bd_addr,uint16_t * p_div)347 bool btm_get_local_div(const RawAddress& bd_addr, uint16_t* p_div) {
348   inc_func_call_count(__func__);
349   return test::mock::stack_btm_ble::btm_get_local_div(bd_addr, p_div);
350 }
btm_proc_smp_cback(tSMP_EVT event,const RawAddress & bd_addr,const tSMP_EVT_DATA * p_data)351 tBTM_STATUS btm_proc_smp_cback(tSMP_EVT event, const RawAddress& bd_addr,
352                                const tSMP_EVT_DATA* p_data) {
353   inc_func_call_count(__func__);
354   return test::mock::stack_btm_ble::btm_proc_smp_cback(event, bd_addr, p_data);
355 }
btm_sec_save_le_key(const RawAddress & bd_addr,tBTM_LE_KEY_TYPE key_type,tBTM_LE_KEY_VALUE * p_keys,bool pass_to_application)356 void btm_sec_save_le_key(const RawAddress& bd_addr, tBTM_LE_KEY_TYPE key_type,
357                          tBTM_LE_KEY_VALUE* p_keys, bool pass_to_application) {
358   inc_func_call_count(__func__);
359   test::mock::stack_btm_ble::btm_sec_save_le_key(bd_addr, key_type, p_keys,
360                                                  pass_to_application);
361 }
doNothing(uint8_t * data,uint16_t len)362 void doNothing(uint8_t* data, uint16_t len) {
363   inc_func_call_count(__func__);
364   test::mock::stack_btm_ble::doNothing(data, len);
365 }
read_phy_cb(base::Callback<void (uint8_t tx_phy,uint8_t rx_phy,uint8_t status)> cb,uint8_t * data,uint16_t len)366 void read_phy_cb(
367     base::Callback<void(uint8_t tx_phy, uint8_t rx_phy, uint8_t status)> cb,
368     uint8_t* data, uint16_t len) {
369   inc_func_call_count(__func__);
370   test::mock::stack_btm_ble::read_phy_cb(cb, data, len);
371 }
372 // Mocked functions complete
373 // END mockcify generation
374 
BTM_BleGetPeerLTK(const RawAddress)375 std::optional<Octet16> BTM_BleGetPeerLTK(const RawAddress /* address */) {
376   return std::nullopt;
377 }
378