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:23
20 */
21
22 #include "l2c_api.h"
23 #include "stack/gatt/gatt_int.h"
24 #include "stack/include/bt_hdr.h"
25 #include "test/common/mock_functions.h"
26 #include "types/raw_address.h"
27
gatt_init(void)28 void gatt_init(void) { inc_func_call_count(__func__); }
gatt_act_connect(tGATT_REG *,const RawAddress &,tBLE_ADDR_TYPE,tBT_TRANSPORT,int8_t)29 bool gatt_act_connect(tGATT_REG* /* p_reg */, const RawAddress& /* bd_addr */,
30 tBLE_ADDR_TYPE /* addr_type */,
31 tBT_TRANSPORT /* transport */,
32 int8_t /* initiating_phys */) {
33 inc_func_call_count(__func__);
34 return false;
35 }
gatt_connect(const RawAddress &,tGATT_TCB *,tBLE_ADDR_TYPE,tBT_TRANSPORT,uint8_t,tGATT_IF)36 bool gatt_connect(const RawAddress& /* rem_bda */, tGATT_TCB* /* p_tcb */,
37 tBLE_ADDR_TYPE /* addr_type */, tBT_TRANSPORT /* transport */,
38 uint8_t /* initiating_phys */, tGATT_IF /* gatt_if */) {
39 inc_func_call_count(__func__);
40 return false;
41 }
gatt_disconnect(tGATT_TCB *)42 bool gatt_disconnect(tGATT_TCB* /* p_tcb */) {
43 inc_func_call_count(__func__);
44 return false;
45 }
gatt_get_ch_state(tGATT_TCB *)46 tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB* /* p_tcb */) {
47 inc_func_call_count(__func__);
48 return GATT_CH_CLOSE;
49 }
gatt_add_a_bonded_dev_for_srv_chg(const RawAddress &)50 void gatt_add_a_bonded_dev_for_srv_chg(const RawAddress& /* bda */) {
51 inc_func_call_count(__func__);
52 }
gatt_chk_srv_chg(tGATTS_SRV_CHG *)53 void gatt_chk_srv_chg(tGATTS_SRV_CHG* /* p_srv_chg_clt */) {
54 inc_func_call_count(__func__);
55 }
gatt_data_process(tGATT_TCB &,uint16_t,BT_HDR *)56 void gatt_data_process(tGATT_TCB& /* tcb */, uint16_t /* cid */,
57 BT_HDR* /* p_buf */) {
58 inc_func_call_count(__func__);
59 }
gatt_consolidate(const RawAddress &,const RawAddress &)60 void gatt_consolidate(const RawAddress& /* identity_addr */,
61 const RawAddress& /* rpa */) {
62 inc_func_call_count(__func__);
63 }
gatt_free(void)64 void gatt_free(void) { inc_func_call_count(__func__); }
gatt_init_srv_chg(void)65 void gatt_init_srv_chg(void) { inc_func_call_count(__func__); }
gatt_l2cif_config_cfm_cback(uint16_t,uint16_t,tL2CAP_CFG_INFO *)66 void gatt_l2cif_config_cfm_cback(uint16_t /* lcid */, uint16_t /* initiator */,
67 tL2CAP_CFG_INFO* /* p_cfg */) {
68 inc_func_call_count(__func__);
69 }
gatt_l2cif_config_ind_cback(uint16_t,tL2CAP_CFG_INFO *)70 void gatt_l2cif_config_ind_cback(uint16_t /* lcid */,
71 tL2CAP_CFG_INFO* /* p_cfg */) {
72 inc_func_call_count(__func__);
73 }
gatt_l2cif_disconnect_ind_cback(uint16_t,bool)74 void gatt_l2cif_disconnect_ind_cback(uint16_t /* lcid */,
75 bool /* ack_needed */) {
76 inc_func_call_count(__func__);
77 }
gatt_notify_conn_update(const RawAddress &,uint16_t,uint16_t,uint16_t,tHCI_STATUS)78 void gatt_notify_conn_update(const RawAddress& /* remote */,
79 uint16_t /* interval */, uint16_t /* latency */,
80 uint16_t /* timeout */, tHCI_STATUS /* status */) {
81 inc_func_call_count(__func__);
82 }
gatt_notify_phy_updated(tHCI_STATUS,uint16_t,uint8_t,uint8_t)83 void gatt_notify_phy_updated(tHCI_STATUS /* status */, uint16_t /* handle */,
84 uint8_t /* tx_phy */, uint8_t /* rx_phy */) {
85 inc_func_call_count(__func__);
86 }
gatt_notify_subrate_change(uint16_t,uint16_t,uint16_t,uint16_t,uint16_t,uint8_t)87 void gatt_notify_subrate_change(uint16_t /* handle */,
88 uint16_t /* subrate_factor */,
89 uint16_t /* latency */, uint16_t /* cont_num */,
90 uint16_t /* timeout */, uint8_t /* status */) {
91 inc_func_call_count(__func__);
92 }
gatt_proc_srv_chg(void)93 void gatt_proc_srv_chg(void) { inc_func_call_count(__func__); }
gatt_send_srv_chg_ind(const RawAddress &)94 void gatt_send_srv_chg_ind(const RawAddress& /* peer_bda */) {
95 inc_func_call_count(__func__);
96 }
gatt_set_ch_state(tGATT_TCB *,tGATT_CH_STATE)97 void gatt_set_ch_state(tGATT_TCB* /* p_tcb */, tGATT_CH_STATE /* ch_state */) {
98 inc_func_call_count(__func__);
99 }
gatt_update_app_use_link_flag(tGATT_IF,tGATT_TCB *,bool,bool)100 void gatt_update_app_use_link_flag(tGATT_IF /* gatt_if */,
101 tGATT_TCB* /* p_tcb */, bool /* is_add */,
102 bool /* check_acl_link */) {
103 inc_func_call_count(__func__);
104 }
105
gatt_tcb_dump(int)106 void gatt_tcb_dump(int /* fd */) { inc_func_call_count(__func__); }
107