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:13
20 */
21
22 #include "gap_api.h"
23 #include "l2c_api.h"
24 #include "stack/include/bt_hdr.h"
25 #include "test/common/mock_functions.h"
26 #include "types/raw_address.h"
27
GAP_ConnGetRemoteAddr(uint16_t)28 const RawAddress* GAP_ConnGetRemoteAddr(uint16_t /* gap_handle */) {
29 inc_func_call_count(__func__);
30 return nullptr;
31 }
GAP_GetRxQueueCnt(uint16_t,uint32_t *)32 int GAP_GetRxQueueCnt(uint16_t /* handle */, uint32_t* /* p_rx_queue_count */) {
33 inc_func_call_count(__func__);
34 return 0;
35 }
GAP_ConnClose(uint16_t)36 uint16_t GAP_ConnClose(uint16_t /* gap_handle */) {
37 inc_func_call_count(__func__);
38 return 0;
39 }
GAP_ConnGetL2CAPCid(uint16_t)40 uint16_t GAP_ConnGetL2CAPCid(uint16_t /* gap_handle */) {
41 inc_func_call_count(__func__);
42 return 0;
43 }
GAP_ConnGetRemMtuSize(uint16_t)44 uint16_t GAP_ConnGetRemMtuSize(uint16_t /* gap_handle */) {
45 inc_func_call_count(__func__);
46 return 0;
47 }
GAP_ConnOpen(const char *,uint8_t,bool,const RawAddress *,uint16_t,uint16_t,tL2CAP_CFG_INFO *,tL2CAP_ERTM_INFO *,uint16_t,tGAP_CONN_CALLBACK *,tBT_TRANSPORT)48 uint16_t GAP_ConnOpen(const char* /* p_serv_name */, uint8_t /* service_id */,
49 bool /* is_server */, const RawAddress* /* p_rem_bda */,
50 uint16_t /* psm */, uint16_t /* le_mps */,
51 tL2CAP_CFG_INFO* /* p_cfg */,
52 tL2CAP_ERTM_INFO* /* ertm_info */,
53 uint16_t /* security */, tGAP_CONN_CALLBACK* /* p_cb */,
54 tBT_TRANSPORT /* transport */) {
55 inc_func_call_count(__func__);
56 return 0;
57 }
GAP_ConnReadData(uint16_t,uint8_t *,uint16_t,uint16_t *)58 uint16_t GAP_ConnReadData(uint16_t /* gap_handle */, uint8_t* /* p_data */,
59 uint16_t /* max_len */, uint16_t* /* p_len */) {
60 inc_func_call_count(__func__);
61 return 0;
62 }
GAP_ConnWriteData(uint16_t,BT_HDR *)63 uint16_t GAP_ConnWriteData(uint16_t /* gap_handle */, BT_HDR* /* msg */) {
64 inc_func_call_count(__func__);
65 return 0;
66 }
GAP_Init(void)67 void GAP_Init(void) { inc_func_call_count(__func__); }
gap_tx_complete_ind(uint16_t,uint16_t)68 void gap_tx_complete_ind(uint16_t /* l2cap_cid */, uint16_t /* sdu_sent */) {
69 inc_func_call_count(__func__);
70 }
71