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 <cstdint>
23 
24 #include "bta/include/bta_hh_api.h"
25 #include "stack/include/bt_hdr.h"
26 #include "test/common/mock_functions.h"
27 
28 using namespace bluetooth;
29 
30 const Uuid ANDROID_HEADTRACKER_SERVICE_UUID =
31     Uuid::FromString(ANDROID_HEADTRACKER_SERVICE_UUID_STRING);
32 const Uuid ANDROID_HEADTRACKER_VERSION_CHARAC_UUID =
33     Uuid::FromString(ANDROID_HEADTRACKER_VERSION_CHARAC_UUID_STRING);
34 const Uuid ANDROID_HEADTRACKER_CONTROL_CHARAC_UUID =
35     Uuid::FromString(ANDROID_HEADTRACKER_CONTROL_CHARAC_UUID_STRING);
36 const Uuid ANDROID_HEADTRACKER_REPORT_CHARAC_UUID =
37     Uuid::FromString(ANDROID_HEADTRACKER_REPORT_CHARAC_UUID_STRING);
38 
BTA_HhEnable(tBTA_HH_CBACK *,bool,bool)39 void BTA_HhEnable(tBTA_HH_CBACK* /* p_cback */, bool /* enable_hidp */,
40                   bool /* enable_hogp */) {
41   inc_func_call_count(__func__);
42 }
BTA_HhAddDev(const tAclLinkSpec &,tBTA_HH_ATTR_MASK,uint8_t,uint8_t,tBTA_HH_DEV_DSCP_INFO)43 void BTA_HhAddDev(const tAclLinkSpec& /* link_spec */,
44                   tBTA_HH_ATTR_MASK /* attr_mask */, uint8_t /* sub_class */,
45                   uint8_t /* app_id */, tBTA_HH_DEV_DSCP_INFO /* dscp_info */) {
46   inc_func_call_count(__func__);
47 }
BTA_HhClose(uint8_t)48 void BTA_HhClose(uint8_t /* dev_handle */) { inc_func_call_count(__func__); }
BTA_HhDisable(void)49 void BTA_HhDisable(void) { inc_func_call_count(__func__); }
BTA_HhGetDscpInfo(uint8_t)50 void BTA_HhGetDscpInfo(uint8_t /* dev_handle */) {
51   inc_func_call_count(__func__);
52 }
BTA_HhGetIdle(uint8_t)53 void BTA_HhGetIdle(uint8_t /* dev_handle */) { inc_func_call_count(__func__); }
BTA_HhGetProtoMode(uint8_t)54 void BTA_HhGetProtoMode(uint8_t /* dev_handle */) {
55   inc_func_call_count(__func__);
56 }
BTA_HhGetReport(uint8_t,tBTA_HH_RPT_TYPE,uint8_t,uint16_t)57 void BTA_HhGetReport(uint8_t /* dev_handle */, tBTA_HH_RPT_TYPE /* r_type */,
58                      uint8_t /* rpt_id */, uint16_t /* buf_size */) {
59   inc_func_call_count(__func__);
60 }
BTA_HhOpen(const tAclLinkSpec &)61 void BTA_HhOpen(const tAclLinkSpec& /* link_spec */) {
62   inc_func_call_count(__func__);
63 }
BTA_HhRemoveDev(uint8_t)64 void BTA_HhRemoveDev(uint8_t /* dev_handle */) {
65   inc_func_call_count(__func__);
66 }
BTA_HhSendCtrl(uint8_t,tBTA_HH_TRANS_CTRL_TYPE)67 void BTA_HhSendCtrl(uint8_t /* dev_handle */,
68                     tBTA_HH_TRANS_CTRL_TYPE /* c_type */) {
69   inc_func_call_count(__func__);
70 }
BTA_HhSendData(uint8_t,const tAclLinkSpec &,BT_HDR *)71 void BTA_HhSendData(uint8_t /* dev_handle */,
72                     const tAclLinkSpec& /* link_spec */, BT_HDR* /* p_data */) {
73   inc_func_call_count(__func__);
74 }
BTA_HhSetIdle(uint8_t,uint16_t)75 void BTA_HhSetIdle(uint8_t /* dev_handle */, uint16_t /* idle_rate */) {
76   inc_func_call_count(__func__);
77 }
BTA_HhSetProtoMode(uint8_t,tBTA_HH_PROTO_MODE)78 void BTA_HhSetProtoMode(uint8_t /* dev_handle */,
79                         tBTA_HH_PROTO_MODE /* p_type */) {
80   inc_func_call_count(__func__);
81 }
BTA_HhSetReport(uint8_t,tBTA_HH_RPT_TYPE,BT_HDR *)82 void BTA_HhSetReport(uint8_t /* dev_handle */, tBTA_HH_RPT_TYPE /* r_type */,
83                      BT_HDR* /* p_data */) {
84   inc_func_call_count(__func__);
85 }
86