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:26
20  */
21 
22 #include "stack/avdt/avdt_int.h"
23 #include "stack/include/avdt_api.h"
24 #include "stack/include/bt_hdr.h"
25 #include "test/common/mock_functions.h"
26 #include "types/raw_address.h"
27 
AVDT_CloseReq(uint8_t)28 uint16_t AVDT_CloseReq(uint8_t /* handle */) {
29   inc_func_call_count(__func__);
30   return 0;
31 }
AVDT_ConfigRsp(uint8_t,uint8_t,uint8_t,uint8_t)32 uint16_t AVDT_ConfigRsp(uint8_t /* handle */, uint8_t /* label */,
33                         uint8_t /* error_code */, uint8_t /* category */) {
34   inc_func_call_count(__func__);
35   return 0;
36 }
AVDT_ConnectReq(const RawAddress &,uint8_t,tAVDT_CTRL_CBACK *)37 uint16_t AVDT_ConnectReq(const RawAddress& /* bd_addr */,
38                          uint8_t /* channel_index */,
39                          tAVDT_CTRL_CBACK* /* p_cback */) {
40   inc_func_call_count(__func__);
41   return 0;
42 }
AVDT_CreateStream(uint8_t,uint8_t *,const AvdtpStreamConfig &)43 uint16_t AVDT_CreateStream(uint8_t /* peer_id */, uint8_t* /* p_handle */,
44                            const AvdtpStreamConfig& /* avdtp_stream_config */) {
45   inc_func_call_count(__func__);
46   return 0;
47 }
AVDT_DelayReport(uint8_t,uint8_t,uint16_t)48 uint16_t AVDT_DelayReport(uint8_t /* handle */, uint8_t /* seid */,
49                           uint16_t /* delay */) {
50   inc_func_call_count(__func__);
51   return 0;
52 }
AVDT_DisconnectReq(const RawAddress &,tAVDT_CTRL_CBACK *)53 uint16_t AVDT_DisconnectReq(const RawAddress& /* bd_addr */,
54                             tAVDT_CTRL_CBACK* /* p_cback */) {
55   inc_func_call_count(__func__);
56   return 0;
57 }
AVDT_DiscoverReq(const RawAddress &,uint8_t,tAVDT_SEP_INFO *,uint8_t,tAVDT_CTRL_CBACK *)58 uint16_t AVDT_DiscoverReq(const RawAddress& /* bd_addr */,
59                           uint8_t /* channel_index */,
60                           tAVDT_SEP_INFO* /* p_sep_info */,
61                           uint8_t /* max_seps */,
62                           tAVDT_CTRL_CBACK* /* p_cback */) {
63   inc_func_call_count(__func__);
64   return 0;
65 }
AVDT_GetCapReq(const RawAddress &,uint8_t,uint8_t,AvdtpSepConfig *,tAVDT_CTRL_CBACK *,bool)66 uint16_t AVDT_GetCapReq(const RawAddress& /* bd_addr */,
67                         uint8_t /* channel_index */, uint8_t /* seid */,
68                         AvdtpSepConfig* /* p_cfg */,
69                         tAVDT_CTRL_CBACK* /* p_cback */,
70                         bool /* get_all_cap */) {
71   inc_func_call_count(__func__);
72   return 0;
73 }
AVDT_GetL2CapChannel(uint8_t)74 uint16_t AVDT_GetL2CapChannel(uint8_t /* handle */) {
75   inc_func_call_count(__func__);
76   return 0;
77 }
AVDT_OpenReq(uint8_t,const RawAddress &,uint8_t,uint8_t,AvdtpSepConfig *)78 uint16_t AVDT_OpenReq(uint8_t /* handle */, const RawAddress& /* bd_addr */,
79                       uint8_t /* channel_index */, uint8_t /* seid */,
80                       AvdtpSepConfig* /* p_cfg */) {
81   inc_func_call_count(__func__);
82   return 0;
83 }
AVDT_ReconfigReq(uint8_t,AvdtpSepConfig *)84 uint16_t AVDT_ReconfigReq(uint8_t /* handle */, AvdtpSepConfig* /* p_cfg */) {
85   inc_func_call_count(__func__);
86   return 0;
87 }
AVDT_RemoveStream(uint8_t)88 uint16_t AVDT_RemoveStream(uint8_t /* handle */) {
89   inc_func_call_count(__func__);
90   return 0;
91 }
AVDT_SecurityReq(uint8_t,uint8_t *,uint16_t)92 uint16_t AVDT_SecurityReq(uint8_t /* handle */, uint8_t* /* p_data */,
93                           uint16_t /* len */) {
94   inc_func_call_count(__func__);
95   return 0;
96 }
AVDT_SecurityRsp(uint8_t,uint8_t,uint8_t,uint8_t *,uint16_t)97 uint16_t AVDT_SecurityRsp(uint8_t /* handle */, uint8_t /* label */,
98                           uint8_t /* error_code */, uint8_t* /* p_data */,
99                           uint16_t /* len */) {
100   inc_func_call_count(__func__);
101   return 0;
102 }
AVDT_StartReq(uint8_t *,uint8_t)103 uint16_t AVDT_StartReq(uint8_t* /* p_handles */, uint8_t /* num_handles */) {
104   inc_func_call_count(__func__);
105   return 0;
106 }
AVDT_SuspendReq(uint8_t *,uint8_t)107 uint16_t AVDT_SuspendReq(uint8_t* /* p_handles */, uint8_t /* num_handles */) {
108   inc_func_call_count(__func__);
109   return 0;
110 }
AVDT_WriteReqOpt(uint8_t,BT_HDR *,uint32_t,uint8_t,tAVDT_DATA_OPT_MASK)111 uint16_t AVDT_WriteReqOpt(uint8_t /* handle */, BT_HDR* /* p_pkt */,
112                           uint32_t /* time_stamp */, uint8_t /* m_pt */,
113                           tAVDT_DATA_OPT_MASK /* opt */) {
114   inc_func_call_count(__func__);
115   return 0;
116 }
AVDT_AbortReq(uint8_t)117 void AVDT_AbortReq(uint8_t /* handle */) { inc_func_call_count(__func__); }
AVDT_Deregister(void)118 void AVDT_Deregister(void) { inc_func_call_count(__func__); }
AVDT_Register(AvdtpRcb *,tAVDT_CTRL_CBACK *)119 void AVDT_Register(AvdtpRcb* /* p_reg */, tAVDT_CTRL_CBACK* /* p_cback */) {
120   inc_func_call_count(__func__);
121 }
avdt_ccb_idle_ccb_timer_timeout(void *)122 void avdt_ccb_idle_ccb_timer_timeout(void* /* data */) {
123   inc_func_call_count(__func__);
124 }
avdt_ccb_ret_ccb_timer_timeout(void *)125 void avdt_ccb_ret_ccb_timer_timeout(void* /* data */) {
126   inc_func_call_count(__func__);
127 }
avdt_ccb_rsp_ccb_timer_timeout(void *)128 void avdt_ccb_rsp_ccb_timer_timeout(void* /* data */) {
129   inc_func_call_count(__func__);
130 }
avdt_scb_transport_channel_timer_timeout(void *)131 void avdt_scb_transport_channel_timer_timeout(void* /* data */) {
132   inc_func_call_count(__func__);
133 }
stack_debug_avdtp_api_dump(int)134 void stack_debug_avdtp_api_dump(int /* fd */) { inc_func_call_count(__func__); }
135