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/l2cap/l2c_int.h"
25 #include "test/common/mock_functions.h"
26 #include "types/raw_address.h"
27
l2cu_get_next_buffer_to_send(tL2C_LCB *)28 BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* /* p_lcb */) {
29 inc_func_call_count(__func__);
30 return nullptr;
31 }
l2c_link_hci_disc_comp(uint16_t,tHCI_REASON)32 bool l2c_link_hci_disc_comp(uint16_t /* handle */, tHCI_REASON /* reason */) {
33 inc_func_call_count(__func__);
34 return false;
35 }
l2cu_ConnectAclForSecurity(const RawAddress &)36 tBTM_STATUS l2cu_ConnectAclForSecurity(const RawAddress& /* bd_addr */) {
37 inc_func_call_count(__func__);
38 return BTM_SUCCESS;
39 }
l2cu_get_next_channel_in_rr(tL2C_LCB *)40 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* /* p_lcb */) {
41 inc_func_call_count(__func__);
42 return nullptr;
43 }
l2c_OnHciModeChangeSendPendingPackets(RawAddress)44 void l2c_OnHciModeChangeSendPendingPackets(RawAddress /* remote */) {
45 inc_func_call_count(__func__);
46 }
l2c_info_resp_timer_timeout(void *)47 void l2c_info_resp_timer_timeout(void* /* data */) {
48 inc_func_call_count(__func__);
49 }
l2c_link_adjust_allocation(void)50 void l2c_link_adjust_allocation(void) { inc_func_call_count(__func__); }
l2c_link_adjust_chnl_allocation(void)51 void l2c_link_adjust_chnl_allocation(void) { inc_func_call_count(__func__); }
l2c_link_check_send_pkts(tL2C_LCB *,uint16_t,BT_HDR *)52 void l2c_link_check_send_pkts(tL2C_LCB* /* p_lcb */, uint16_t /* local_cid */,
53 BT_HDR* /* p_buf */) {
54 inc_func_call_count(__func__);
55 }
l2c_link_hci_conn_comp(tHCI_STATUS,uint16_t,const RawAddress &)56 void l2c_link_hci_conn_comp(tHCI_STATUS /* status */, uint16_t /* handle */,
57 const RawAddress& /* p_bda */) {
58 inc_func_call_count(__func__);
59 }
l2c_link_init(const uint16_t)60 void l2c_link_init(const uint16_t /* acl_buffer_count_classic */) {
61 inc_func_call_count(__func__);
62 }
l2c_link_role_changed(const RawAddress *,tHCI_ROLE,tHCI_STATUS)63 void l2c_link_role_changed(const RawAddress* /* bd_addr */,
64 tHCI_ROLE /* new_role */,
65 tHCI_STATUS /* hci_status */) {
66 inc_func_call_count(__func__);
67 }
l2c_link_sec_comp(const RawAddress *,tBT_TRANSPORT,void *,uint8_t)68 void l2c_link_sec_comp(const RawAddress* /* p_bda */,
69 tBT_TRANSPORT /* transport */, void* /* p_ref_data */,
70 uint8_t /* status */) {
71 inc_func_call_count(__func__);
72 }
73
l2c_link_segments_xmitted(BT_HDR *)74 void l2c_link_segments_xmitted(BT_HDR* /* p_msg */) {
75 inc_func_call_count(__func__);
76 }
l2c_link_timeout(tL2C_LCB *)77 void l2c_link_timeout(tL2C_LCB* /* p_lcb */) { inc_func_call_count(__func__); }
l2c_packets_completed(uint16_t,uint16_t)78 void l2c_packets_completed(uint16_t /* handle */, uint16_t /* num_sent */) {
79 inc_func_call_count(__func__);
80 }
l2c_pin_code_request(const RawAddress &)81 void l2c_pin_code_request(const RawAddress& /* bd_addr */) {
82 inc_func_call_count(__func__);
83 }
l2cble_update_sec_act(const RawAddress &,uint16_t)84 void l2cble_update_sec_act(const RawAddress& /* bd_addr */,
85 uint16_t /* sec_act */) {
86 inc_func_call_count(__func__);
87 }
88