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:8
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <cstdint>
28 #include "bta/ar/bta_ar_int.h"
29 #include "bta/sys/bta_sys.h"
30 #include "stack/include/avct_api.h"
31 #include "stack/include/avrc_api.h"
32 
33 #ifndef UNUSED_ATTR
34 #define UNUSED_ATTR
35 #endif
36 
bta_ar_avdt_conn(tBTA_SYS_ID sys_id,const RawAddress & bd_addr,uint8_t scb_index)37 void bta_ar_avdt_conn(tBTA_SYS_ID sys_id, const RawAddress& bd_addr,
38                       uint8_t scb_index) {
39   mock_function_count_map[__func__]++;
40 }
bta_ar_dereg_avct()41 void bta_ar_dereg_avct() { mock_function_count_map[__func__]++; }
bta_ar_dereg_avdt()42 void bta_ar_dereg_avdt() { mock_function_count_map[__func__]++; }
bta_ar_dereg_avrc(uint16_t service_uuid)43 void bta_ar_dereg_avrc(uint16_t service_uuid) {
44   mock_function_count_map[__func__]++;
45 }
bta_ar_init(void)46 void bta_ar_init(void) { mock_function_count_map[__func__]++; }
bta_ar_reg_avct()47 void bta_ar_reg_avct() { mock_function_count_map[__func__]++; }
bta_ar_reg_avdt(AvdtpRcb * p_reg,tAVDT_CTRL_CBACK * p_cback)48 void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) {
49   mock_function_count_map[__func__]++;
50 }
bta_ar_reg_avrc(uint16_t service_uuid,const char * service_name,const char * provider_name,uint16_t categories,bool browse_supported,uint16_t profile_version)51 void bta_ar_reg_avrc(uint16_t service_uuid, const char* service_name,
52                      const char* provider_name, uint16_t categories,
53                      bool browse_supported, uint16_t profile_version) {
54   mock_function_count_map[__func__]++;
55 }
56