summaryrefslogtreecommitdiff
path: root/system/test/mock/mock_stack_l2cap_link.cc
blob: 87a6eaa407b9463e6932072e3f6564b4bac3d127 (plain)
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
/*
 * 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
 */

#include <map>
#include <string>

extern std::map<std::string, int> mock_function_count_map;
#define UNUSED_ATTR

#include <cstdint>

#include "stack/include/bt_hdr.h"
#include "stack/l2cap/l2c_int.h"
#include "types/raw_address.h"
BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* p_lcb) {
  mock_function_count_map[__func__]++;
  return nullptr;
}
bool l2c_link_hci_disc_comp(uint16_t handle, tHCI_REASON reason) {
  mock_function_count_map[__func__]++;
  return false;
}
tBTM_STATUS l2cu_ConnectAclForSecurity(const RawAddress& bd_addr) {
  mock_function_count_map[__func__]++;
  return BTM_SUCCESS;
}
tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* p_lcb) {
  mock_function_count_map[__func__]++;
  return nullptr;
}
void l2c_OnHciModeChangeSendPendingPackets(RawAddress remote) {
  mock_function_count_map[__func__]++;
}
void l2c_info_resp_timer_timeout(void* data) {
  mock_function_count_map[__func__]++;
}
void l2c_link_adjust_allocation(void) { mock_function_count_map[__func__]++; }
void l2c_link_adjust_chnl_allocation(void) {
  mock_function_count_map[__func__]++;
}
void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid,
                              BT_HDR* p_buf) {
  mock_function_count_map[__func__]++;
}
void l2c_link_hci_conn_comp(tHCI_STATUS status, uint16_t handle,
                            const RawAddress& p_bda) {
  mock_function_count_map[__func__]++;
}
void l2c_link_hci_conn_req(const RawAddress& bd_addr) {
  mock_function_count_map[__func__]++;
}
void l2c_link_init() { mock_function_count_map[__func__]++; }
void l2c_link_process_num_completed_pkts(uint8_t* p, uint8_t evt_len) {
  mock_function_count_map[__func__]++;
}
void l2c_link_role_changed(const RawAddress* bd_addr, uint8_t new_role,
                           uint8_t hci_status) {
  mock_function_count_map[__func__]++;
}
void l2c_link_sec_comp(const RawAddress* p_bda,
                       UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data,
                       uint8_t status) {
  mock_function_count_map[__func__]++;
}
void l2c_link_sec_comp2(const RawAddress& p_bda,
                        UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data,
                        uint8_t status) {
  mock_function_count_map[__func__]++;
}
void l2c_link_segments_xmitted(BT_HDR* p_msg) {
  mock_function_count_map[__func__]++;
}
void l2c_link_timeout(tL2C_LCB* p_lcb) { mock_function_count_map[__func__]++; }
void l2c_packets_completed(uint16_t handle, uint16_t num_sent) {
  mock_function_count_map[__func__]++;
}
void l2c_pin_code_request(const RawAddress& bd_addr) {
  mock_function_count_map[__func__]++;
}
void l2cble_update_sec_act(const RawAddress& bd_addr, uint16_t sec_act) {
  mock_function_count_map[__func__]++;
}