1 /*
2 * Copyright 2020 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 */
20
21 #include <cstdint>
22
23 #include "stack/include/bt_hdr.h"
24 #include "stack/include/btm_status.h"
25 #include "stack/include/l2cap_acl_interface.h"
26 #include "stack/include/l2cap_controller_interface.h"
27 #include "stack/include/l2cap_hci_link_interface.h"
28 #include "stack/include/l2cap_security_interface.h"
29 #include "stack/l2cap/l2c_int.h"
30 #include "test/common/mock_functions.h"
31 #include "types/raw_address.h"
32
l2c_link_hci_disc_comp(uint16_t,tHCI_REASON)33 bool l2c_link_hci_disc_comp(uint16_t /* handle */, tHCI_REASON /* reason */) {
34 inc_func_call_count(__func__);
35 return false;
36 }
l2cu_ConnectAclForSecurity(const RawAddress &)37 tBTM_STATUS l2cu_ConnectAclForSecurity(const RawAddress& /* bd_addr */) {
38 inc_func_call_count(__func__);
39 return tBTM_STATUS::BTM_SUCCESS;
40 }
l2c_OnHciModeChangeSendPendingPackets(RawAddress)41 void l2c_OnHciModeChangeSendPendingPackets(RawAddress /* remote */) {
42 inc_func_call_count(__func__);
43 }
l2c_info_resp_timer_timeout(void *)44 void l2c_info_resp_timer_timeout(void* /* data */) { inc_func_call_count(__func__); }
l2c_link_adjust_allocation(void)45 void l2c_link_adjust_allocation(void) { inc_func_call_count(__func__); }
l2c_link_adjust_chnl_allocation(void)46 void l2c_link_adjust_chnl_allocation(void) { inc_func_call_count(__func__); }
l2c_link_check_send_pkts(tL2C_LCB *,uint16_t,BT_HDR *)47 void l2c_link_check_send_pkts(tL2C_LCB* /* p_lcb */, uint16_t /* local_cid */,
48 BT_HDR* /* p_buf */) {
49 inc_func_call_count(__func__);
50 }
l2c_link_hci_conn_comp(tHCI_STATUS,uint16_t,const RawAddress &)51 void l2c_link_hci_conn_comp(tHCI_STATUS /* status */, uint16_t /* handle */,
52 const RawAddress& /* p_bda */) {
53 inc_func_call_count(__func__);
54 }
l2c_link_init(const uint16_t)55 void l2c_link_init(const uint16_t /* acl_buffer_count_classic */) { inc_func_call_count(__func__); }
l2c_link_role_changed(const RawAddress *,tHCI_ROLE,tHCI_STATUS)56 void l2c_link_role_changed(const RawAddress* /* bd_addr */, tHCI_ROLE /* new_role */,
57 tHCI_STATUS /* hci_status */) {
58 inc_func_call_count(__func__);
59 }
l2c_link_sec_comp(const RawAddress,tBT_TRANSPORT,void *,tBTM_STATUS)60 void l2c_link_sec_comp(const RawAddress /* bda */, tBT_TRANSPORT /* transport */,
61 void* /* p_ref_data */, tBTM_STATUS /* status */) {
62 inc_func_call_count(__func__);
63 }
64
l2c_link_timeout(tL2C_LCB *)65 void l2c_link_timeout(tL2C_LCB* /* p_lcb */) { inc_func_call_count(__func__); }
l2c_packets_completed(uint16_t,uint16_t)66 void l2c_packets_completed(uint16_t /* handle */, uint16_t /* num_sent */) {
67 inc_func_call_count(__func__);
68 }
l2c_pin_code_request(const RawAddress &)69 void l2c_pin_code_request(const RawAddress& /* bd_addr */) { inc_func_call_count(__func__); }
l2cble_update_sec_act(const RawAddress &,uint16_t)70 void l2cble_update_sec_act(const RawAddress& /* bd_addr */, uint16_t /* sec_act */) {
71 inc_func_call_count(__func__);
72 }
73