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 "bt_target.h"
28 #include "bta/pan/bta_pan_int.h"
29 #include "osi/include/allocator.h"
30 #include "types/raw_address.h"
31 
32 #ifndef UNUSED_ATTR
33 #define UNUSED_ATTR
34 #endif
35 
bta_pan_ci_readbuf(uint16_t handle,RawAddress & src,RawAddress & dst,uint16_t * p_protocol,bool * p_ext,bool * p_forward)36 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst,
37                            uint16_t* p_protocol, bool* p_ext, bool* p_forward) {
38   mock_function_count_map[__func__]++;
39   return nullptr;
40 }
bta_pan_ci_rx_ready(uint16_t handle)41 void bta_pan_ci_rx_ready(uint16_t handle) {
42   mock_function_count_map[__func__]++;
43 }
bta_pan_ci_rx_write(uint16_t handle,const RawAddress & dst,const RawAddress & src,uint16_t protocol,uint8_t * p_data,uint16_t len,bool ext)44 void bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst,
45                          const RawAddress& src, uint16_t protocol,
46                          uint8_t* p_data, uint16_t len, bool ext) {
47   mock_function_count_map[__func__]++;
48 }
bta_pan_ci_rx_writebuf(uint16_t handle,const RawAddress & dst,const RawAddress & src,uint16_t protocol,BT_HDR * p_buf,bool ext)49 void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& dst,
50                             const RawAddress& src, uint16_t protocol,
51                             BT_HDR* p_buf, bool ext) {
52   mock_function_count_map[__func__]++;
53 }
bta_pan_ci_set_mfilters(uint16_t handle,uint16_t num_mcast_filters,uint8_t * p_start_array,uint8_t * p_end_array)54 void bta_pan_ci_set_mfilters(uint16_t handle, uint16_t num_mcast_filters,
55                              uint8_t* p_start_array, uint8_t* p_end_array) {
56   mock_function_count_map[__func__]++;
57 }
bta_pan_ci_set_pfilters(uint16_t handle,uint16_t num_filters,uint16_t * p_start_array,uint16_t * p_end_array)58 void bta_pan_ci_set_pfilters(uint16_t handle, uint16_t num_filters,
59                              uint16_t* p_start_array, uint16_t* p_end_array) {
60   mock_function_count_map[__func__]++;
61 }
bta_pan_ci_tx_flow(uint16_t handle,bool enable)62 void bta_pan_ci_tx_flow(uint16_t handle, bool enable) {
63   mock_function_count_map[__func__]++;
64 }
bta_pan_ci_tx_ready(uint16_t handle)65 void bta_pan_ci_tx_ready(uint16_t handle) {
66   mock_function_count_map[__func__]++;
67 }
68