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 */,
31 uint16_t /* attr_mask */, 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 */,
44 tSDP_DISCOVERY_DB* /* p_db */,
45 uint32_t /* db_len */,
46 tHID_HOST_SDP_CALLBACK* /* sdp_cback */) {
47 inc_func_call_count(__func__);
48 return HID_SUCCESS;
49 }
HID_HostSDPDisable(const RawAddress &)50 bool HID_HostSDPDisable(const RawAddress& /* addr */) {
51 inc_func_call_count(__func__);
52 return false;
53 }
HID_HostOpenDev(uint8_t)54 tHID_STATUS HID_HostOpenDev(uint8_t /* dev_handle */) {
55 inc_func_call_count(__func__);
56 return HID_SUCCESS;
57 }
HID_HostRegister(tHID_HOST_DEV_CALLBACK *)58 tHID_STATUS HID_HostRegister(tHID_HOST_DEV_CALLBACK* /* dev_cback */) {
59 inc_func_call_count(__func__);
60 return HID_SUCCESS;
61 }
HID_HostRemoveDev(uint8_t)62 tHID_STATUS HID_HostRemoveDev(uint8_t /* dev_handle */) {
63 inc_func_call_count(__func__);
64 return HID_SUCCESS;
65 }
HID_HostWriteDev(uint8_t,uint8_t,uint8_t,uint16_t,uint8_t,BT_HDR *)66 tHID_STATUS HID_HostWriteDev(uint8_t /* dev_handle */, uint8_t /* t_type */,
67 uint8_t /* param */, uint16_t /* data */,
68 uint8_t /* report_id */, BT_HDR* /* pbuf */) {
69 inc_func_call_count(__func__);
70 return HID_SUCCESS;
71 }
HID_HostInit(void)72 void HID_HostInit(void) { inc_func_call_count(__func__); }
hidh_get_str_attr(tSDP_DISC_REC *,uint16_t,uint16_t,char *)73 void hidh_get_str_attr(tSDP_DISC_REC* /* p_rec */, uint16_t /* attr_id */,
74 uint16_t /* max_len */, char* /* str */) {
75 inc_func_call_count(__func__);
76 }
77