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:21
20  */
21 
22 #include <cstdint>
23 
24 #include "bta/av/bta_av_int.h"
25 #include "stack/include/bt_hdr.h"
26 #include "test/common/mock_functions.h"
27 #include "types/raw_address.h"
28 
bta_av_chk_start(tBTA_AV_SCB *)29 bool bta_av_chk_start(tBTA_AV_SCB* /* p_scb */) {
30   inc_func_call_count(__func__);
31   return false;
32 }
bta_av_hdl_event(const BT_HDR_RIGID *)33 bool bta_av_hdl_event(const BT_HDR_RIGID* /* p_msg */) {
34   inc_func_call_count(__func__);
35   return false;
36 }
bta_av_link_role_ok(tBTA_AV_SCB *,uint8_t)37 bool bta_av_link_role_ok(tBTA_AV_SCB* /* p_scb */, uint8_t /* bits */) {
38   inc_func_call_count(__func__);
39   return false;
40 }
bta_av_switch_if_needed(tBTA_AV_SCB *)41 bool bta_av_switch_if_needed(tBTA_AV_SCB* /* p_scb */) {
42   inc_func_call_count(__func__);
43   return false;
44 }
bta_av_evt_code(uint16_t)45 const char* bta_av_evt_code(uint16_t /* evt_code */) {
46   inc_func_call_count(__func__);
47   return nullptr;
48 }
BTA_AvObtainPeerChannelIndex(const RawAddress &)49 int BTA_AvObtainPeerChannelIndex(const RawAddress& /* peer_address */) {
50   inc_func_call_count(__func__);
51   return 0;
52 }
bta_av_addr_to_scb(const RawAddress &)53 tBTA_AV_SCB* bta_av_addr_to_scb(const RawAddress& /* bd_addr */) {
54   inc_func_call_count(__func__);
55   return nullptr;
56 }
bta_av_hndl_to_scb(uint16_t)57 tBTA_AV_SCB* bta_av_hndl_to_scb(uint16_t /* handle */) {
58   inc_func_call_count(__func__);
59   return nullptr;
60 }
bta_av_api_deregister(tBTA_AV_DATA *)61 void bta_av_api_deregister(tBTA_AV_DATA* /* p_data */) {
62   inc_func_call_count(__func__);
63 }
bta_av_conn_cback(uint8_t,const RawAddress &,uint8_t,tAVDT_CTRL *,uint8_t)64 void bta_av_conn_cback(uint8_t /* handle */, const RawAddress& /* bd_addr */,
65                        uint8_t /* event */, tAVDT_CTRL* /* p_data */,
66                        uint8_t /* scb_index */) {
67   inc_func_call_count(__func__);
68 }
bta_av_dup_audio_buf(tBTA_AV_SCB *,BT_HDR *)69 void bta_av_dup_audio_buf(tBTA_AV_SCB* /* p_scb */, BT_HDR* /* p_buf */) {
70   inc_func_call_count(__func__);
71 }
bta_av_free_scb(tBTA_AV_SCB *)72 void bta_av_free_scb(tBTA_AV_SCB* /* p_scb */) {
73   inc_func_call_count(__func__);
74 }
bta_av_restore_switch(void)75 void bta_av_restore_switch(void) { inc_func_call_count(__func__); }
bta_av_sm_execute(tBTA_AV_CB *,uint16_t,tBTA_AV_DATA *)76 void bta_av_sm_execute(tBTA_AV_CB* /* p_cb */, uint16_t /* event */,
77                        tBTA_AV_DATA* /* p_data */) {
78   inc_func_call_count(__func__);
79 }
bta_debug_av_dump(int)80 void bta_debug_av_dump(int /* fd */) { inc_func_call_count(__func__); }
OnConnected(const RawAddress &)81 void tBTA_AV_SCB::OnConnected(const RawAddress& /* peer_address */) {
82   inc_func_call_count(__func__);
83 }
OnDisconnected()84 void tBTA_AV_SCB::OnDisconnected() { inc_func_call_count(__func__); }
SetAvdtpVersion(uint16_t)85 void tBTA_AV_SCB::SetAvdtpVersion(uint16_t /* avdtp_version */) {
86   inc_func_call_count(__func__);
87 }
88