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:11
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 "bta/include/bta_api.h"
29 #include "stack/bnep/bnep_int.h"
30 #include "stack/btm/btm_sec.h"
31 #include "stack/include/bnep_api.h"
32 
33 #ifndef UNUSED_ATTR
34 #define UNUSED_ATTR
35 #endif
36 
37 using namespace bluetooth;
38 
BNEP_Connect(const RawAddress & p_rem_bda,const Uuid & src_uuid,const Uuid & dst_uuid,uint16_t * p_handle,uint32_t mx_chan_id)39 tBNEP_RESULT BNEP_Connect(const RawAddress& p_rem_bda, const Uuid& src_uuid,
40                           const Uuid& dst_uuid, uint16_t* p_handle,
41                           uint32_t mx_chan_id) {
42   mock_function_count_map[__func__]++;
43   return 0;
44 }
BNEP_ConnectResp(uint16_t handle,tBNEP_RESULT resp)45 tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp) {
46   mock_function_count_map[__func__]++;
47   return 0;
48 }
BNEP_Disconnect(uint16_t handle)49 tBNEP_RESULT BNEP_Disconnect(uint16_t handle) {
50   mock_function_count_map[__func__]++;
51   return 0;
52 }
BNEP_Register(tBNEP_REGISTER * p_reg_info)53 tBNEP_RESULT BNEP_Register(tBNEP_REGISTER* p_reg_info) {
54   mock_function_count_map[__func__]++;
55   return 0;
56 }
BNEP_SetMulticastFilters(uint16_t handle,uint16_t num_filters,uint8_t * p_start_array,uint8_t * p_end_array)57 tBNEP_RESULT BNEP_SetMulticastFilters(uint16_t handle, uint16_t num_filters,
58                                       uint8_t* p_start_array,
59                                       uint8_t* p_end_array) {
60   mock_function_count_map[__func__]++;
61   return 0;
62 }
BNEP_SetProtocolFilters(uint16_t handle,uint16_t num_filters,uint16_t * p_start_array,uint16_t * p_end_array)63 tBNEP_RESULT BNEP_SetProtocolFilters(uint16_t handle, uint16_t num_filters,
64                                      uint16_t* p_start_array,
65                                      uint16_t* p_end_array) {
66   mock_function_count_map[__func__]++;
67   return 0;
68 }
BNEP_Write(uint16_t handle,const RawAddress & p_dest_addr,uint8_t * p_data,uint16_t len,uint16_t protocol,const RawAddress * p_src_addr,bool fw_ext_present)69 tBNEP_RESULT BNEP_Write(uint16_t handle, const RawAddress& p_dest_addr,
70                         uint8_t* p_data, uint16_t len, uint16_t protocol,
71                         const RawAddress* p_src_addr, bool fw_ext_present) {
72   mock_function_count_map[__func__]++;
73   return 0;
74 }
BNEP_WriteBuf(uint16_t handle,const RawAddress & p_dest_addr,BT_HDR * p_buf,uint16_t protocol,const RawAddress * p_src_addr,bool fw_ext_present)75 tBNEP_RESULT BNEP_WriteBuf(uint16_t handle, const RawAddress& p_dest_addr,
76                            BT_HDR* p_buf, uint16_t protocol,
77                            const RawAddress* p_src_addr, bool fw_ext_present) {
78   mock_function_count_map[__func__]++;
79   return 0;
80 }
BNEP_SetTraceLevel(uint8_t new_level)81 uint8_t BNEP_SetTraceLevel(uint8_t new_level) {
82   mock_function_count_map[__func__]++;
83   return 0;
84 }
BNEP_Deregister(void)85 void BNEP_Deregister(void) { mock_function_count_map[__func__]++; }
BNEP_Init(void)86 void BNEP_Init(void) { mock_function_count_map[__func__]++; }
87