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:16
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 "bt_target.h"
29 #include "bta/hh/bta_hh_int.h"
30 #include "bta/sys/bta_sys.h"
31 #include "osi/include/allocator.h"
32 #include "osi/include/osi.h"
33 #include "types/raw_address.h"
34 
35 #ifndef UNUSED_ATTR
36 #define UNUSED_ATTR
37 #endif
38 
BTA_HhEnable(tBTA_HH_CBACK * p_cback)39 void BTA_HhEnable(tBTA_HH_CBACK* p_cback) {
40   mock_function_count_map[__func__]++;
41 }
BTA_HhAddDev(const RawAddress & bda,tBTA_HH_ATTR_MASK attr_mask,uint8_t sub_class,uint8_t app_id,tBTA_HH_DEV_DSCP_INFO dscp_info)42 void BTA_HhAddDev(const RawAddress& bda, tBTA_HH_ATTR_MASK attr_mask,
43                   uint8_t sub_class, uint8_t app_id,
44                   tBTA_HH_DEV_DSCP_INFO dscp_info) {
45   mock_function_count_map[__func__]++;
46 }
BTA_HhClose(uint8_t dev_handle)47 void BTA_HhClose(uint8_t dev_handle) { mock_function_count_map[__func__]++; }
BTA_HhDisable(void)48 void BTA_HhDisable(void) { mock_function_count_map[__func__]++; }
BTA_HhGetDscpInfo(uint8_t dev_handle)49 void BTA_HhGetDscpInfo(uint8_t dev_handle) {
50   mock_function_count_map[__func__]++;
51 }
BTA_HhGetIdle(uint8_t dev_handle)52 void BTA_HhGetIdle(uint8_t dev_handle) { mock_function_count_map[__func__]++; }
BTA_HhGetProtoMode(uint8_t dev_handle)53 void BTA_HhGetProtoMode(uint8_t dev_handle) {
54   mock_function_count_map[__func__]++;
55 }
BTA_HhGetReport(uint8_t dev_handle,tBTA_HH_RPT_TYPE r_type,uint8_t rpt_id,uint16_t buf_size)56 void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type,
57                      uint8_t rpt_id, uint16_t buf_size) {
58   mock_function_count_map[__func__]++;
59 }
BTA_HhOpen(const RawAddress & dev_bda)60 void BTA_HhOpen(const RawAddress& dev_bda) {
61   mock_function_count_map[__func__]++;
62 }
BTA_HhRemoveDev(uint8_t dev_handle)63 void BTA_HhRemoveDev(uint8_t dev_handle) {
64   mock_function_count_map[__func__]++;
65 }
BTA_HhSendCtrl(uint8_t dev_handle,tBTA_HH_TRANS_CTRL_TYPE c_type)66 void BTA_HhSendCtrl(uint8_t dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type) {
67   mock_function_count_map[__func__]++;
68 }
BTA_HhSendData(uint8_t dev_handle,UNUSED_ATTR const RawAddress & dev_bda,BT_HDR * p_data)69 void BTA_HhSendData(uint8_t dev_handle, UNUSED_ATTR const RawAddress& dev_bda,
70                     BT_HDR* p_data) {
71   mock_function_count_map[__func__]++;
72 }
BTA_HhSetIdle(uint8_t dev_handle,uint16_t idle_rate)73 void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate) {
74   mock_function_count_map[__func__]++;
75 }
BTA_HhSetProtoMode(uint8_t dev_handle,tBTA_HH_PROTO_MODE p_type)76 void BTA_HhSetProtoMode(uint8_t dev_handle, tBTA_HH_PROTO_MODE p_type) {
77   mock_function_count_map[__func__]++;
78 }
BTA_HhSetReport(uint8_t dev_handle,tBTA_HH_RPT_TYPE r_type,BT_HDR * p_data)79 void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type,
80                      BT_HDR* p_data) {
81   mock_function_count_map[__func__]++;
82 }
83