1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
|
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Generated mock file from original source file
* Functions generated:72
*/
#include <map>
#include <string>
extern std::map<std::string, int> mock_function_count_map;
#include <cstdint>
#include "stack/include/bt_hdr.h"
#include "stack/l2cap/l2c_int.h"
#include "types/raw_address.h"
#ifndef UNUSED_ATTR
#define UNUSED_ATTR
#endif
BT_HDR* l2cu_build_header(tL2C_LCB* p_lcb, uint16_t len, uint8_t cmd,
uint8_t signal_id) {
mock_function_count_map[__func__]++;
return nullptr;
}
bool l2c_is_cmd_rejected(uint8_t cmd_code, uint8_t signal_id, tL2C_LCB* p_lcb) {
mock_function_count_map[__func__]++;
return false;
}
bool l2cu_create_conn_le(tL2C_LCB* p_lcb) {
mock_function_count_map[__func__]++;
return false;
}
bool l2cu_create_conn_le(tL2C_LCB* p_lcb, uint8_t initiating_phys) {
mock_function_count_map[__func__]++;
return false;
}
bool l2cu_initialize_fixed_ccb(tL2C_LCB* p_lcb, uint16_t fixed_cid) {
mock_function_count_map[__func__]++;
return false;
}
bool l2cu_is_ccb_active(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
return false;
}
bool l2cu_lcb_disconnecting(void) {
mock_function_count_map[__func__]++;
return false;
}
bool l2cu_set_acl_priority(const RawAddress& bd_addr, tL2CAP_PRIORITY priority,
bool reset_after_rs) {
mock_function_count_map[__func__]++;
return false;
}
bool l2cu_start_post_bond_timer(uint16_t handle) {
mock_function_count_map[__func__]++;
return false;
}
tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* p_lcb, uint16_t cid) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* p_lcb, uint16_t remote_cid) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding,
tBT_TRANSPORT transport) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& p_bd_addr,
tBT_TRANSPORT transport) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_LCB* l2cu_find_lcb_by_handle(uint16_t handle) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_LCB* l2cu_find_lcb_by_state(tL2C_LINK_STATE state) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_RCB* l2cu_allocate_ble_rcb(uint16_t psm) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_RCB* l2cu_allocate_rcb(uint16_t psm) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_RCB* l2cu_find_ble_rcb_by_psm(uint16_t psm) {
mock_function_count_map[__func__]++;
return nullptr;
}
tL2C_RCB* l2cu_find_rcb_by_psm(uint16_t psm) {
mock_function_count_map[__func__]++;
return nullptr;
}
uint8_t l2cu_get_num_hi_priority(void) {
mock_function_count_map[__func__]++;
return 0;
}
uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
mock_function_count_map[__func__]++;
return 0;
}
void l2cu_adj_id(tL2C_LCB* p_lcb) { mock_function_count_map[__func__]++; }
void l2cu_adjust_out_mps(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_change_pri_ccb(tL2C_CCB* p_ccb, tL2CAP_CHNL_PRIORITY priority) {
mock_function_count_map[__func__]++;
}
void l2cu_check_channel_congestion(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_create_conn_after_switch(tL2C_LCB* p_lcb) {
mock_function_count_map[__func__]++;
}
void l2cu_create_conn_br_edr(tL2C_LCB* p_lcb) {
mock_function_count_map[__func__]++;
}
void l2cu_dequeue_ccb(tL2C_CCB* p_ccb) { mock_function_count_map[__func__]++; }
void l2cu_device_reset(void) { mock_function_count_map[__func__]++; }
void l2cu_disconnect_chnl(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_enqueue_ccb(tL2C_CCB* p_ccb) { mock_function_count_map[__func__]++; }
void l2cu_no_dynamic_ccbs(tL2C_LCB* p_lcb) {
mock_function_count_map[__func__]++;
}
void l2cu_process_fixed_chnl_resp(tL2C_LCB* p_lcb) {
mock_function_count_map[__func__]++;
}
void l2cu_process_fixed_disc_cback(tL2C_LCB* p_lcb) {
mock_function_count_map[__func__]++;
}
void l2cu_process_our_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
mock_function_count_map[__func__]++;
}
void l2cu_process_our_cfg_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
mock_function_count_map[__func__]++;
}
void l2cu_process_peer_cfg_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
mock_function_count_map[__func__]++;
}
void l2cu_reject_ble_coc_connection(tL2C_LCB* p_lcb, uint8_t rem_id,
uint16_t result) {
mock_function_count_map[__func__]++;
}
void l2cu_reject_ble_connection(tL2C_CCB* p_ccb, uint8_t rem_id,
uint16_t result) {
mock_function_count_map[__func__]++;
}
void l2cu_reject_connection(tL2C_LCB* p_lcb, uint16_t remote_cid,
uint8_t rem_id, uint16_t result) {
mock_function_count_map[__func__]++;
}
void l2cu_reject_credit_based_conn_req(tL2C_LCB* p_lcb, uint8_t rem_id,
uint8_t num_of_channels,
uint16_t result) {
mock_function_count_map[__func__]++;
}
void l2cu_release_ble_rcb(tL2C_RCB* p_rcb) {
mock_function_count_map[__func__]++;
}
void l2cu_release_ccb(tL2C_CCB* p_ccb) { mock_function_count_map[__func__]++; }
void l2cu_release_lcb(tL2C_LCB* p_lcb) { mock_function_count_map[__func__]++; }
void l2cu_release_rcb(tL2C_RCB* p_rcb) { mock_function_count_map[__func__]++; }
void l2cu_resubmit_pending_sec_req(const RawAddress* p_bda) {
mock_function_count_map[__func__]++;
}
void l2cu_send_ble_reconfig_rsp(tL2C_LCB* p_lcb, uint8_t rem_id,
uint16_t result) {
mock_function_count_map[__func__]++;
}
void l2cu_send_credit_based_reconfig_req(tL2C_CCB* p_ccb,
tL2CAP_LE_CFG_INFO* p_cfg) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_ble_credit_based_conn_req(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_ble_credit_based_conn_res(tL2C_CCB* p_ccb,
uint16_t result) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_ble_credit_based_disconn_req(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_ble_flow_control_credit(tL2C_CCB* p_ccb,
uint16_t credit_value) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_ble_par_req(tL2C_LCB* p_lcb, uint16_t min_int,
uint16_t max_int, uint16_t latency,
uint16_t timeout) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_ble_par_rsp(tL2C_LCB* p_lcb, uint16_t reason,
uint8_t rem_id) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_cmd_reject(tL2C_LCB* p_lcb, uint16_t reason, uint8_t rem_id,
uint16_t p1, uint16_t p2) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_config_rej(tL2C_CCB* p_ccb, uint8_t* p_data,
uint16_t data_len, uint16_t rej_len) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_config_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_config_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_connect_rsp(tL2C_CCB* p_ccb, uint16_t result,
uint16_t status) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_credit_based_conn_req(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_credit_based_conn_res(tL2C_CCB* p_ccb,
std::vector<uint16_t>& accepted_cids,
uint16_t result) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_disc_req(tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_disc_rsp(tL2C_LCB* p_lcb, uint8_t remote_id,
uint16_t local_cid, uint16_t remote_cid) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_echo_rsp(tL2C_LCB* p_lcb, uint8_t signal_id,
uint8_t* p_data, uint16_t data_len) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_info_req(tL2C_LCB* p_lcb, uint16_t info_type) {
mock_function_count_map[__func__]++;
}
void l2cu_send_peer_info_rsp(tL2C_LCB* p_lcb, uint8_t remote_id,
uint16_t info_type) {
mock_function_count_map[__func__]++;
}
void l2cu_set_acl_hci_header(BT_HDR* p_buf, tL2C_CCB* p_ccb) {
mock_function_count_map[__func__]++;
}
void l2cu_set_lcb_handle(struct t_l2c_linkcb& p_lcb, uint16_t handle) {
mock_function_count_map[__func__]++;
}
void l2cu_set_non_flushable_pbf(bool is_supported) {
mock_function_count_map[__func__]++;
}
void l2cu_update_lcb_4_bonding(const RawAddress& p_bd_addr, bool is_bonding) {
mock_function_count_map[__func__]++;
}
|