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 <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include "bt_target.h"
28 #include "bta/av/bta_av_int.h"
29 #include "osi/include/allocator.h"
30 #include "osi/include/compat.h"
31 #include "osi/include/log.h"
32 
33 #ifndef UNUSED_ATTR
34 #define UNUSED_ATTR
35 #endif
36 
BTA_AvEnable(tBTA_AV_FEAT features,tBTA_AV_CBACK * p_cback)37 void BTA_AvEnable(tBTA_AV_FEAT features, tBTA_AV_CBACK* p_cback) {
38   mock_function_count_map[__func__]++;
39 }
BTA_AvClose(tBTA_AV_HNDL handle)40 void BTA_AvClose(tBTA_AV_HNDL handle) { mock_function_count_map[__func__]++; }
BTA_AvCloseRc(uint8_t rc_handle)41 void BTA_AvCloseRc(uint8_t rc_handle) { mock_function_count_map[__func__]++; }
BTA_AvDeregister(tBTA_AV_HNDL hndl)42 void BTA_AvDeregister(tBTA_AV_HNDL hndl) {
43   mock_function_count_map[__func__]++;
44 }
BTA_AvDisable(void)45 void BTA_AvDisable(void) { mock_function_count_map[__func__]++; }
BTA_AvDisconnect(const RawAddress & bd_addr)46 void BTA_AvDisconnect(const RawAddress& bd_addr) {
47   mock_function_count_map[__func__]++;
48 }
BTA_AvMetaCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_CMD cmd_code,BT_HDR * p_pkt)49 void BTA_AvMetaCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code,
50                    BT_HDR* p_pkt) {
51   mock_function_count_map[__func__]++;
52 }
BTA_AvMetaRsp(uint8_t rc_handle,uint8_t label,tBTA_AV_CODE rsp_code,BT_HDR * p_pkt)53 void BTA_AvMetaRsp(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code,
54                    BT_HDR* p_pkt) {
55   mock_function_count_map[__func__]++;
56 }
BTA_AvOffloadStart(tBTA_AV_HNDL hndl)57 void BTA_AvOffloadStart(tBTA_AV_HNDL hndl) {
58   mock_function_count_map[__func__]++;
59 }
BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl,tBTA_AV_STATUS status)60 void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) {
61   mock_function_count_map[__func__]++;
62 }
BTA_AvOpen(const RawAddress & bd_addr,tBTA_AV_HNDL handle,bool use_rc,uint16_t uuid)63 void BTA_AvOpen(const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc,
64                 uint16_t uuid) {
65   mock_function_count_map[__func__]++;
66 }
BTA_AvOpenRc(tBTA_AV_HNDL handle)67 void BTA_AvOpenRc(tBTA_AV_HNDL handle) { mock_function_count_map[__func__]++; }
BTA_AvProtectReq(tBTA_AV_HNDL hndl,uint8_t * p_data,uint16_t len)68 void BTA_AvProtectReq(tBTA_AV_HNDL hndl, uint8_t* p_data, uint16_t len) {
69   mock_function_count_map[__func__]++;
70 }
BTA_AvProtectRsp(tBTA_AV_HNDL hndl,uint8_t error_code,uint8_t * p_data,uint16_t len)71 void BTA_AvProtectRsp(tBTA_AV_HNDL hndl, uint8_t error_code, uint8_t* p_data,
72                       uint16_t len) {
73   mock_function_count_map[__func__]++;
74 }
BTA_AvReconfig(tBTA_AV_HNDL hndl,bool suspend,uint8_t sep_info_idx,uint8_t * p_codec_info,uint8_t num_protect,const uint8_t * p_protect_info)75 void BTA_AvReconfig(tBTA_AV_HNDL hndl, bool suspend, uint8_t sep_info_idx,
76                     uint8_t* p_codec_info, uint8_t num_protect,
77                     const uint8_t* p_protect_info) {
78   mock_function_count_map[__func__]++;
79 }
BTA_AvRegister(tBTA_AV_CHNL chnl,const char * p_service_name,uint8_t app_id,tBTA_AV_SINK_DATA_CBACK * p_sink_data_cback,uint16_t service_uuid)80 void BTA_AvRegister(tBTA_AV_CHNL chnl, const char* p_service_name,
81                     uint8_t app_id, tBTA_AV_SINK_DATA_CBACK* p_sink_data_cback,
82                     uint16_t service_uuid) {
83   mock_function_count_map[__func__]++;
84 }
BTA_AvRemoteCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_RC rc_id,tBTA_AV_STATE key_state)85 void BTA_AvRemoteCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_RC rc_id,
86                      tBTA_AV_STATE key_state) {
87   mock_function_count_map[__func__]++;
88 }
BTA_AvRemoteVendorUniqueCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_STATE key_state,uint8_t * p_msg,uint8_t buf_len)89 void BTA_AvRemoteVendorUniqueCmd(uint8_t rc_handle, uint8_t label,
90                                  tBTA_AV_STATE key_state, uint8_t* p_msg,
91                                  uint8_t buf_len) {
92   mock_function_count_map[__func__]++;
93 }
BTA_AvStart(tBTA_AV_HNDL handle)94 void BTA_AvStart(tBTA_AV_HNDL handle) { mock_function_count_map[__func__]++; }
BTA_AvStop(tBTA_AV_HNDL handle,bool suspend)95 void BTA_AvStop(tBTA_AV_HNDL handle, bool suspend) {
96   mock_function_count_map[__func__]++;
97 }
BTA_AvVendorCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_CODE cmd_code,uint8_t * p_data,uint16_t len)98 void BTA_AvVendorCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code,
99                      uint8_t* p_data, uint16_t len) {
100   mock_function_count_map[__func__]++;
101 }
BTA_AvVendorRsp(uint8_t rc_handle,uint8_t label,tBTA_AV_CODE rsp_code,uint8_t * p_data,uint16_t len,uint32_t company_id)102 void BTA_AvVendorRsp(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code,
103                      uint8_t* p_data, uint16_t len, uint32_t company_id) {
104   mock_function_count_map[__func__]++;
105 }
106