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
|
/*
* 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:23
*/
#include <cstdint>
#include <map>
#include <string>
extern std::map<std::string, int> mock_function_count_map;
#include "device/include/esco_parameters.h"
#include "stack/include/bt_hdr.h"
#include "stack/include/btm_api_types.h"
#include "stack/include/btm_status.h"
#include "stack/include/hci_error_code.h"
#include "types/class_of_device.h"
#include "types/raw_address.h"
#ifndef UNUSED_ATTR
#define UNUSED_ATTR
#endif
bool BTM_IsScoActiveByBdaddr(const RawAddress& remote_bda) {
mock_function_count_map[__func__]++;
return false;
}
bool btm_is_sco_active(uint16_t handle) {
mock_function_count_map[__func__]++;
return false;
}
bool btm_sco_removed(uint16_t hci_handle, tHCI_REASON reason) {
mock_function_count_map[__func__]++;
return false;
}
const RawAddress* BTM_ReadScoBdAddr(uint16_t sco_inx) {
mock_function_count_map[__func__]++;
return nullptr;
}
tBTM_STATUS BTM_CreateSco(const RawAddress* remote_bda, bool is_orig,
uint16_t pkt_types, uint16_t* p_sco_inx,
tBTM_SCO_CB* p_conn_cb, tBTM_SCO_CB* p_disc_cb) {
mock_function_count_map[__func__]++;
return BTM_SUCCESS;
}
tBTM_STATUS BTM_RegForEScoEvts(uint16_t sco_inx,
tBTM_ESCO_CBACK* p_esco_cback) {
mock_function_count_map[__func__]++;
return BTM_SUCCESS;
}
tBTM_STATUS BTM_RemoveSco(uint16_t sco_inx) {
mock_function_count_map[__func__]++;
return BTM_SUCCESS;
}
tBTM_STATUS BTM_SetEScoMode(enh_esco_params_t* p_parms) {
mock_function_count_map[__func__]++;
return BTM_SUCCESS;
}
uint8_t BTM_GetNumScoLinks(void) {
mock_function_count_map[__func__]++;
return 0;
}
void BTM_EScoConnRsp(uint16_t sco_inx, uint8_t hci_status,
enh_esco_params_t* p_parms) {
mock_function_count_map[__func__]++;
}
void BTM_RemoveSco(const RawAddress& bda) {
mock_function_count_map[__func__]++;
}
void btm_route_sco_data(BT_HDR* p_msg) { mock_function_count_map[__func__]++; }
void btm_sco_acl_removed(const RawAddress* bda) {
mock_function_count_map[__func__]++;
}
void btm_sco_chk_pend_rolechange(uint16_t hci_handle) {
mock_function_count_map[__func__]++;
}
void btm_sco_chk_pend_unpark(tHCI_STATUS hci_status, uint16_t hci_handle) {
mock_function_count_map[__func__]++;
}
void btm_sco_conn_req(const RawAddress& bda, const DEV_CLASS& dev_class,
uint8_t link_type) {
mock_function_count_map[__func__]++;
}
void btm_sco_connected(const RawAddress& bda, uint16_t hci_handle,
tBTM_ESCO_DATA* p_esco_data) {
mock_function_count_map[__func__]++;
}
void btm_sco_connection_failed(tHCI_STATUS hci_status, const RawAddress& bda,
uint16_t hci_handle,
tBTM_ESCO_DATA* p_esco_data) {
mock_function_count_map[__func__]++;
}
void btm_sco_disc_chk_pend_for_modechange(uint16_t hci_handle) {
mock_function_count_map[__func__]++;
}
void btm_sco_on_esco_connect_request(
const RawAddress& bda, const bluetooth::types::ClassOfDevice& cod) {
mock_function_count_map[__func__]++;
}
void btm_sco_on_sco_connect_request(
const RawAddress& bda, const bluetooth::types::ClassOfDevice& cod) {
mock_function_count_map[__func__]++;
}
void btm_sco_on_disconnected(uint16_t hci_handle, tHCI_REASON reason) {
mock_function_count_map[__func__]++;
}
|