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:9
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <string.h>
28 #include "avct_api.h"
29 #include "bt_common.h"
30 #include "bt_target.h"
31 #include "bt_types.h"
32 #include "bta/include/bta_api.h"
33 #include "btm_api.h"
34 #include "l2c_api.h"
35 #include "l2cdefs.h"
36 #include "osi/include/osi.h"
37 #include "stack/avct/avct_int.h"
38 #include "stack/btm/btm_sec.h"
39 
40 #ifndef UNUSED_ATTR
41 #define UNUSED_ATTR
42 #endif
43 
AVCT_CreateBrowse(uint8_t handle,uint8_t role)44 uint16_t AVCT_CreateBrowse(uint8_t handle, uint8_t role) {
45   mock_function_count_map[__func__]++;
46   return 0;
47 }
AVCT_CreateConn(uint8_t * p_handle,tAVCT_CC * p_cc,const RawAddress & peer_addr)48 uint16_t AVCT_CreateConn(uint8_t* p_handle, tAVCT_CC* p_cc,
49                          const RawAddress& peer_addr) {
50   mock_function_count_map[__func__]++;
51   return 0;
52 }
AVCT_GetBrowseMtu(uint8_t handle)53 uint16_t AVCT_GetBrowseMtu(uint8_t handle) {
54   mock_function_count_map[__func__]++;
55   return 0;
56 }
AVCT_GetPeerMtu(uint8_t handle)57 uint16_t AVCT_GetPeerMtu(uint8_t handle) {
58   mock_function_count_map[__func__]++;
59   return 0;
60 }
AVCT_MsgReq(uint8_t handle,uint8_t label,uint8_t cr,BT_HDR * p_msg)61 uint16_t AVCT_MsgReq(uint8_t handle, uint8_t label, uint8_t cr, BT_HDR* p_msg) {
62   mock_function_count_map[__func__]++;
63   return 0;
64 }
AVCT_RemoveBrowse(uint8_t handle)65 uint16_t AVCT_RemoveBrowse(uint8_t handle) {
66   mock_function_count_map[__func__]++;
67   return 0;
68 }
AVCT_RemoveConn(uint8_t handle)69 uint16_t AVCT_RemoveConn(uint8_t handle) {
70   mock_function_count_map[__func__]++;
71   return 0;
72 }
AVCT_Deregister(void)73 void AVCT_Deregister(void) { mock_function_count_map[__func__]++; }
AVCT_Register()74 void AVCT_Register() { mock_function_count_map[__func__]++; }
75