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 <base/logging.h>
28 #include <string.h>
29 #include "bnep_api.h"
30 #include "bt_common.h"
31 #include "bt_types.h"
32 #include "btm_api.h"
33 #include "hcidefs.h"
34 #include "l2c_api.h"
35 #include "pan_api.h"
36 #include "sdp_api.h"
37 #include "sdpdefs.h"
38 #include "stack/btm/btm_sec.h"
39 #include "stack/pan/pan_int.h"
40
41 #ifndef UNUSED_ATTR
42 #define UNUSED_ATTR
43 #endif
44
PAN_SetMulticastFilters(uint16_t handle,uint16_t num_mcast_filters,uint8_t * p_start_array,uint8_t * p_end_array)45 tBNEP_RESULT PAN_SetMulticastFilters(uint16_t handle,
46 uint16_t num_mcast_filters,
47 uint8_t* p_start_array,
48 uint8_t* p_end_array) {
49 mock_function_count_map[__func__]++;
50 return 0;
51 }
PAN_Connect(const RawAddress & rem_bda,uint8_t src_role,uint8_t dst_role,uint16_t * handle)52 tPAN_RESULT PAN_Connect(const RawAddress& rem_bda, uint8_t src_role,
53 uint8_t dst_role, uint16_t* handle) {
54 mock_function_count_map[__func__]++;
55 return 0;
56 }
PAN_Disconnect(uint16_t handle)57 tPAN_RESULT PAN_Disconnect(uint16_t handle) {
58 mock_function_count_map[__func__]++;
59 return 0;
60 }
PAN_SetProtocolFilters(uint16_t handle,uint16_t num_filters,uint16_t * p_start_array,uint16_t * p_end_array)61 tPAN_RESULT PAN_SetProtocolFilters(uint16_t handle, uint16_t num_filters,
62 uint16_t* p_start_array,
63 uint16_t* p_end_array) {
64 mock_function_count_map[__func__]++;
65 return 0;
66 }
PAN_SetRole(uint8_t role,const char * p_user_name,const char * p_nap_name)67 tPAN_RESULT PAN_SetRole(uint8_t role, const char* p_user_name,
68 const char* p_nap_name) {
69 mock_function_count_map[__func__]++;
70 return 0;
71 }
PAN_Write(uint16_t handle,const RawAddress & dst,const RawAddress & src,uint16_t protocol,uint8_t * p_data,uint16_t len,bool ext)72 tPAN_RESULT PAN_Write(uint16_t handle, const RawAddress& dst,
73 const RawAddress& src, uint16_t protocol, uint8_t* p_data,
74 uint16_t len, bool ext) {
75 mock_function_count_map[__func__]++;
76 return 0;
77 }
PAN_WriteBuf(uint16_t handle,const RawAddress & dst,const RawAddress & src,uint16_t protocol,BT_HDR * p_buf,bool ext)78 tPAN_RESULT PAN_WriteBuf(uint16_t handle, const RawAddress& dst,
79 const RawAddress& src, uint16_t protocol,
80 BT_HDR* p_buf, bool ext) {
81 mock_function_count_map[__func__]++;
82 return 0;
83 }
PAN_SetTraceLevel(uint8_t new_level)84 uint8_t PAN_SetTraceLevel(uint8_t new_level) {
85 mock_function_count_map[__func__]++;
86 return 0;
87 }
PAN_Deregister(void)88 void PAN_Deregister(void) { mock_function_count_map[__func__]++; }
PAN_Init(void)89 void PAN_Init(void) { mock_function_count_map[__func__]++; }
PAN_Register(tPAN_REGISTER * p_register)90 void PAN_Register(tPAN_REGISTER* p_register) {
91 mock_function_count_map[__func__]++;
92 }
93