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 <cstdint>
23 
24 #include "stack/include/bt_hdr.h"
25 #include "stack/include/hiddefs.h"
26 #include "stack/include/hidh_api.h"
27 #include "test/common/mock_functions.h"
28 #include "types/raw_address.h"
29 
HID_HostAddDev(const RawAddress &,uint16_t,uint8_t *)30 tHID_STATUS HID_HostAddDev(const RawAddress& /* addr */, uint16_t /* attr_mask */,
31                            uint8_t* /* handle */) {
32   inc_func_call_count(__func__);
33   return HID_SUCCESS;
34 }
HID_HostCloseDev(uint8_t)35 tHID_STATUS HID_HostCloseDev(uint8_t /* dev_handle */) {
36   inc_func_call_count(__func__);
37   return HID_SUCCESS;
38 }
HID_HostDeregister(void)39 tHID_STATUS HID_HostDeregister(void) {
40   inc_func_call_count(__func__);
41   return HID_SUCCESS;
42 }
HID_HostGetSDPRecord(const RawAddress &,tSDP_DISCOVERY_DB *,uint32_t,tHID_HOST_SDP_CALLBACK *)43 tHID_STATUS HID_HostGetSDPRecord(const RawAddress& /* addr */, tSDP_DISCOVERY_DB* /* p_db */,
44                                  uint32_t /* db_len */, tHID_HOST_SDP_CALLBACK* /* sdp_cback */) {
45   inc_func_call_count(__func__);
46   return HID_SUCCESS;
47 }
HID_HostSDPDisable(const RawAddress &)48 bool HID_HostSDPDisable(const RawAddress& /* addr */) {
49   inc_func_call_count(__func__);
50   return false;
51 }
HID_HostOpenDev(uint8_t)52 tHID_STATUS HID_HostOpenDev(uint8_t /* dev_handle */) {
53   inc_func_call_count(__func__);
54   return HID_SUCCESS;
55 }
HID_HostRegister(tHID_HOST_DEV_CALLBACK *)56 tHID_STATUS HID_HostRegister(tHID_HOST_DEV_CALLBACK* /* dev_cback */) {
57   inc_func_call_count(__func__);
58   return HID_SUCCESS;
59 }
HID_HostRemoveDev(uint8_t)60 tHID_STATUS HID_HostRemoveDev(uint8_t /* dev_handle */) {
61   inc_func_call_count(__func__);
62   return HID_SUCCESS;
63 }
HID_HostWriteDev(uint8_t,uint8_t,uint8_t,uint16_t,uint8_t,BT_HDR *)64 tHID_STATUS HID_HostWriteDev(uint8_t /* dev_handle */, uint8_t /* t_type */, uint8_t /* param */,
65                              uint16_t /* data */, uint8_t /* report_id */, BT_HDR* /* pbuf */) {
66   inc_func_call_count(__func__);
67   return HID_SUCCESS;
68 }
HID_HostInit(void)69 void HID_HostInit(void) { inc_func_call_count(__func__); }
70