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:23
20 */
21
22 #include <cstdint>
23
24 #include "device/include/esco_parameters.h"
25 #include "hci/class_of_device.h"
26 #include "stack/btm/btm_sco.h"
27 #include "stack/include/btm_api_types.h"
28 #include "stack/include/btm_status.h"
29 #include "stack/include/hci_error_code.h"
30 #include "test/common/mock_functions.h"
31 #include "types/raw_address.h"
32
BTM_IsScoActiveByBdaddr(const RawAddress &)33 bool BTM_IsScoActiveByBdaddr(const RawAddress& /* remote_bda */) {
34 inc_func_call_count(__func__);
35 return false;
36 }
btm_sco_removed(uint16_t,tHCI_REASON)37 bool btm_sco_removed(uint16_t /* hci_handle */, tHCI_REASON /* reason */) {
38 inc_func_call_count(__func__);
39 return false;
40 }
BTM_ReadScoBdAddr(uint16_t)41 const RawAddress* BTM_ReadScoBdAddr(uint16_t /* sco_inx */) {
42 inc_func_call_count(__func__);
43 return nullptr;
44 }
BTM_CreateSco(const RawAddress *,bool,uint16_t,uint16_t *,tBTM_SCO_CB *,tBTM_SCO_CB *)45 tBTM_STATUS BTM_CreateSco(const RawAddress* /* remote_bda */,
46 bool /* is_orig */, uint16_t /* pkt_types */,
47 uint16_t* /* p_sco_inx */,
48 tBTM_SCO_CB* /* p_conn_cb */,
49 tBTM_SCO_CB* /* p_disc_cb */) {
50 inc_func_call_count(__func__);
51 return BTM_SUCCESS;
52 }
BTM_RegForEScoEvts(uint16_t,tBTM_ESCO_CBACK *)53 tBTM_STATUS BTM_RegForEScoEvts(uint16_t /* sco_inx */,
54 tBTM_ESCO_CBACK* /* p_esco_cback */) {
55 inc_func_call_count(__func__);
56 return BTM_SUCCESS;
57 }
BTM_RemoveSco(uint16_t)58 tBTM_STATUS BTM_RemoveSco(uint16_t /* sco_inx */) {
59 inc_func_call_count(__func__);
60 return BTM_SUCCESS;
61 }
BTM_SetEScoMode(enh_esco_params_t *)62 tBTM_STATUS BTM_SetEScoMode(enh_esco_params_t* /* p_parms */) {
63 inc_func_call_count(__func__);
64 return BTM_SUCCESS;
65 }
BTM_GetNumScoLinks(void)66 uint8_t BTM_GetNumScoLinks(void) {
67 inc_func_call_count(__func__);
68 return 0;
69 }
BTM_GetScoDebugDump(void)70 tBTM_SCO_DEBUG_DUMP BTM_GetScoDebugDump(void) {
71 inc_func_call_count(__func__);
72 return {};
73 }
BTM_EScoConnRsp(uint16_t,tHCI_STATUS,enh_esco_params_t *)74 void BTM_EScoConnRsp(uint16_t /* sco_inx */, tHCI_STATUS /* hci_status */,
75 enh_esco_params_t* /* p_parms */) {
76 inc_func_call_count(__func__);
77 }
BTM_RemoveSco(const RawAddress &)78 void BTM_RemoveSco(const RawAddress& /* bda */) {
79 inc_func_call_count(__func__);
80 }
btm_sco_acl_removed(const RawAddress *)81 void btm_sco_acl_removed(const RawAddress* /* bda */) {
82 inc_func_call_count(__func__);
83 }
btm_sco_chk_pend_rolechange(uint16_t)84 void btm_sco_chk_pend_rolechange(uint16_t /* hci_handle */) {
85 inc_func_call_count(__func__);
86 }
btm_sco_chk_pend_unpark(tHCI_STATUS,uint16_t)87 void btm_sco_chk_pend_unpark(tHCI_STATUS /* hci_status */,
88 uint16_t /* hci_handle */) {
89 inc_func_call_count(__func__);
90 }
btm_sco_conn_req(const RawAddress &,const DEV_CLASS &,uint8_t)91 void btm_sco_conn_req(const RawAddress& /* bda */,
92 const DEV_CLASS& /* dev_class */,
93 uint8_t /* link_type */) {
94 inc_func_call_count(__func__);
95 }
btm_sco_connected(const RawAddress &,uint16_t,tBTM_ESCO_DATA *)96 void btm_sco_connected(const RawAddress& /* bda */, uint16_t /* hci_handle */,
97 tBTM_ESCO_DATA* /* p_esco_data */) {
98 inc_func_call_count(__func__);
99 }
btm_sco_connection_failed(tHCI_STATUS,const RawAddress &,uint16_t,tBTM_ESCO_DATA *)100 void btm_sco_connection_failed(tHCI_STATUS /* hci_status */,
101 const RawAddress& /* bda */,
102 uint16_t /* hci_handle */,
103 tBTM_ESCO_DATA* /* p_esco_data */) {
104 inc_func_call_count(__func__);
105 }
btm_sco_disc_chk_pend_for_modechange(uint16_t)106 void btm_sco_disc_chk_pend_for_modechange(uint16_t /* hci_handle */) {
107 inc_func_call_count(__func__);
108 }
btm_sco_on_esco_connect_request(const RawAddress &,const bluetooth::hci::ClassOfDevice &)109 void btm_sco_on_esco_connect_request(
110 const RawAddress& /* bda */,
111 const bluetooth::hci::ClassOfDevice& /* cod */) {
112 inc_func_call_count(__func__);
113 }
btm_sco_on_sco_connect_request(const RawAddress &,const bluetooth::hci::ClassOfDevice &)114 void btm_sco_on_sco_connect_request(
115 const RawAddress& /* bda */,
116 const bluetooth::hci::ClassOfDevice& /* cod */) {
117 inc_func_call_count(__func__);
118 }
btm_sco_on_disconnected(uint16_t,tHCI_REASON)119 void btm_sco_on_disconnected(uint16_t /* hci_handle */,
120 tHCI_REASON /* reason */) {
121 inc_func_call_count(__func__);
122 }
btm_peer_supports_esco_2m_phy(RawAddress)123 bool btm_peer_supports_esco_2m_phy(RawAddress /* bd_addr */) {
124 inc_func_call_count(__func__);
125 return true;
126 }
btm_peer_supports_esco_3m_phy(RawAddress)127 bool btm_peer_supports_esco_3m_phy(RawAddress /* bd_addr */) {
128 inc_func_call_count(__func__);
129 return true;
130 }
btm_peer_supports_esco_ev3(RawAddress)131 bool btm_peer_supports_esco_ev3(RawAddress /* bd_addr */) {
132 inc_func_call_count(__func__);
133 return true;
134 }
135