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/btm/internal/btm_api.h"
28 #include "stack/include/btm_api_types.h"
29 #include "stack/include/btm_status.h"
30 #include "stack/include/hci_error_code.h"
31 #include "stack/include/sco_hci_link_interface.h"
32 #include "test/common/mock_functions.h"
33 #include "types/raw_address.h"
34
BTM_ReadScoBdAddr(uint16_t)35 const RawAddress* BTM_ReadScoBdAddr(uint16_t /* sco_inx */) {
36 inc_func_call_count(__func__);
37 return nullptr;
38 }
BTM_CreateSco(const RawAddress *,bool,uint16_t,uint16_t *,tBTM_SCO_CB *,tBTM_SCO_CB *)39 tBTM_STATUS BTM_CreateSco(const RawAddress* /* remote_bda */, bool /* is_orig */,
40 uint16_t /* pkt_types */, uint16_t* /* p_sco_inx */,
41 tBTM_SCO_CB* /* p_conn_cb */, tBTM_SCO_CB* /* p_disc_cb */) {
42 inc_func_call_count(__func__);
43 return tBTM_STATUS::BTM_SUCCESS;
44 }
BTM_GetNumScoLinks(void)45 uint8_t BTM_GetNumScoLinks(void) {
46 inc_func_call_count(__func__);
47 return 0;
48 }
BTM_GetScoDebugDump(void)49 tBTM_SCO_DEBUG_DUMP BTM_GetScoDebugDump(void) {
50 inc_func_call_count(__func__);
51 return {};
52 }
BTM_EScoConnRsp(uint16_t,tHCI_STATUS,enh_esco_params_t *)53 void BTM_EScoConnRsp(uint16_t /* sco_inx */, tHCI_STATUS /* hci_status */,
54 enh_esco_params_t* /* p_parms */) {
55 inc_func_call_count(__func__);
56 }
BTM_RemoveScoByBdaddr(const RawAddress &)57 void BTM_RemoveScoByBdaddr(const RawAddress& /* bd_addr */) { inc_func_call_count(__func__); }
btm_sco_acl_removed(const RawAddress *)58 void btm_sco_acl_removed(const RawAddress* /* bda */) { inc_func_call_count(__func__); }
btm_sco_chk_pend_rolechange(uint16_t)59 void btm_sco_chk_pend_rolechange(uint16_t /* hci_handle */) { inc_func_call_count(__func__); }
btm_sco_chk_pend_unpark(tHCI_STATUS,uint16_t)60 void btm_sco_chk_pend_unpark(tHCI_STATUS /* hci_status */, uint16_t /* hci_handle */) {
61 inc_func_call_count(__func__);
62 }
btm_sco_conn_req(const RawAddress &,const DEV_CLASS &,uint8_t)63 void btm_sco_conn_req(const RawAddress& /* bda */, const DEV_CLASS& /* dev_class */,
64 uint8_t /* link_type */) {
65 inc_func_call_count(__func__);
66 }
btm_sco_connected(const RawAddress &,uint16_t,tBTM_ESCO_DATA *)67 void btm_sco_connected(const RawAddress& /* bda */, uint16_t /* hci_handle */,
68 tBTM_ESCO_DATA* /* p_esco_data */) {
69 inc_func_call_count(__func__);
70 }
btm_sco_connection_failed(tHCI_STATUS,const RawAddress &,uint16_t,tBTM_ESCO_DATA *)71 void btm_sco_connection_failed(tHCI_STATUS /* hci_status */, const RawAddress& /* bda */,
72 uint16_t /* hci_handle */, tBTM_ESCO_DATA* /* p_esco_data */) {
73 inc_func_call_count(__func__);
74 }
btm_sco_create_command_status_failed(tHCI_STATUS)75 void btm_sco_create_command_status_failed(tHCI_STATUS /* hci_status */) {
76 inc_func_call_count(__func__);
77 }
btm_sco_disc_chk_pend_for_modechange(uint16_t)78 void btm_sco_disc_chk_pend_for_modechange(uint16_t /* hci_handle */) {
79 inc_func_call_count(__func__);
80 }
btm_sco_on_esco_connect_request(const RawAddress &,const bluetooth::hci::ClassOfDevice &)81 void btm_sco_on_esco_connect_request(const RawAddress& /* bda */,
82 const bluetooth::hci::ClassOfDevice& /* cod */) {
83 inc_func_call_count(__func__);
84 }
btm_sco_on_sco_connect_request(const RawAddress &,const bluetooth::hci::ClassOfDevice &)85 void btm_sco_on_sco_connect_request(const RawAddress& /* bda */,
86 const bluetooth::hci::ClassOfDevice& /* cod */) {
87 inc_func_call_count(__func__);
88 }
btm_peer_supports_esco_2m_phy(RawAddress)89 bool btm_peer_supports_esco_2m_phy(RawAddress /* bd_addr */) {
90 inc_func_call_count(__func__);
91 return true;
92 }
btm_peer_supports_esco_3m_phy(RawAddress)93 bool btm_peer_supports_esco_3m_phy(RawAddress /* bd_addr */) {
94 inc_func_call_count(__func__);
95 return true;
96 }
btm_peer_supports_esco_ev3(RawAddress)97 bool btm_peer_supports_esco_ev3(RawAddress /* bd_addr */) {
98 inc_func_call_count(__func__);
99 return true;
100 }
101