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
|
/*
* Copyright 2021 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:22
*/
#include <map>
#include <string>
extern std::map<std::string, int> mock_function_count_map;
#include <base/bind.h>
#include <base/location.h>
#include <base/logging.h>
#include <cstdint>
#include <memory>
#include "bt_target.h"
#include "bta/jv/bta_jv_int.h"
#include "stack/include/bt_hdr.h"
#include "stack/include/gap_api.h"
#include "types/bluetooth/uuid.h"
#include "types/raw_address.h"
#ifndef UNUSED_ATTR
#define UNUSED_ATTR
#endif
tBTA_JV_STATUS BTA_JvCreateRecordByUser(uint32_t rfcomm_slot_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvDeleteRecord(uint32_t handle) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvEnable(tBTA_JV_DM_CBACK* p_cback) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvFreeChannel(uint16_t channel, int conn_type) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvL2capClose(uint32_t handle) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvL2capRead(uint32_t handle, uint32_t req_id,
uint8_t* p_data, uint16_t len) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvL2capReady(uint32_t handle, uint32_t* p_data_size) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvL2capStopServer(uint16_t local_psm,
uint32_t l2cap_socket_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvL2capWrite(uint32_t handle, uint32_t req_id, BT_HDR* msg,
uint32_t user_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvRfcommClose(uint32_t handle, uint32_t rfcomm_slot_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvRfcommConnect(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
uint8_t remote_scn,
const RawAddress& peer_bd_addr,
tBTA_JV_RFCOMM_CBACK* p_cback,
uint32_t rfcomm_slot_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvRfcommStartServer(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
uint8_t local_scn, uint8_t max_session,
tBTA_JV_RFCOMM_CBACK* p_cback,
uint32_t rfcomm_slot_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvRfcommStopServer(uint32_t handle,
uint32_t rfcomm_slot_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvRfcommWrite(uint32_t handle, uint32_t req_id) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvSetPmProfile(uint32_t handle, tBTA_JV_PM_ID app_id,
tBTA_JV_CONN_STATE init_st) {
mock_function_count_map[__func__]++;
return 0;
}
tBTA_JV_STATUS BTA_JvStartDiscovery(const RawAddress& bd_addr,
uint16_t num_uuid,
const bluetooth::Uuid* p_uuid_list,
uint32_t rfcomm_slot_id) {
mock_function_count_map[__func__]++;
return 0;
}
uint16_t BTA_JvRfcommGetPortHdl(uint32_t handle) {
mock_function_count_map[__func__]++;
return 0;
}
void BTA_JvDisable(void) { mock_function_count_map[__func__]++; }
void BTA_JvGetChannelId(int conn_type, uint32_t id, int32_t channel) {
mock_function_count_map[__func__]++;
}
void BTA_JvL2capConnect(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role,
std::unique_ptr<tL2CAP_ERTM_INFO> ertm_info,
uint16_t remote_psm, uint16_t rx_mtu,
std::unique_ptr<tL2CAP_CFG_INFO> cfg,
const RawAddress& peer_bd_addr,
tBTA_JV_L2CAP_CBACK* p_cback,
uint32_t l2cap_socket_id) {
mock_function_count_map[__func__]++;
}
void BTA_JvL2capStartServer(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role,
std::unique_ptr<tL2CAP_ERTM_INFO> ertm_info,
uint16_t local_psm, uint16_t rx_mtu,
std::unique_ptr<tL2CAP_CFG_INFO> cfg,
tBTA_JV_L2CAP_CBACK* p_cback,
uint32_t l2cap_socket_id) {
mock_function_count_map[__func__]++;
}
|