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:21
20  */
21 #include "test/mock/mock_stack_btm_devctl.h"
22 
23 #include <stddef.h>
24 #include <stdlib.h>
25 
26 #include "stack/include/bt_dev_class.h"
27 #include "stack/include/btm_api_types.h"
28 #include "stack/include/btm_status.h"
29 #include "test/common/mock_functions.h"
30 #include "types/raw_address.h"
31 
32 namespace test {
33 namespace mock {
34 namespace stack_btm_devctl {
35 
36 struct BTM_IsDeviceUp BTM_IsDeviceUp;
37 
38 }
39 }  // namespace mock
40 }  // namespace test
41 
BTM_IsDeviceUp(void)42 bool BTM_IsDeviceUp(void) {
43   inc_func_call_count(__func__);
44   return test::mock::stack_btm_devctl::BTM_IsDeviceUp();
45 }
46 
BTM_DeleteStoredLinkKey(const RawAddress *,tBTM_CMPL_CB *)47 tBTM_STATUS BTM_DeleteStoredLinkKey(const RawAddress* /* bd_addr */,
48                                     tBTM_CMPL_CB* /* p_cb */) {
49   inc_func_call_count(__func__);
50   return BTM_SUCCESS;
51 }
BTM_EnableTestMode(void)52 tBTM_STATUS BTM_EnableTestMode(void) {
53   inc_func_call_count(__func__);
54   return BTM_SUCCESS;
55 }
BTM_ReadLocalDeviceName(const char **)56 tBTM_STATUS BTM_ReadLocalDeviceName(const char** /* p_name */) {
57   inc_func_call_count(__func__);
58   return BTM_SUCCESS;
59 }
BTM_ReadLocalDeviceNameFromController(tBTM_CMPL_CB *)60 tBTM_STATUS BTM_ReadLocalDeviceNameFromController(
61     tBTM_CMPL_CB* /* p_rln_cmpl_cback */) {
62   inc_func_call_count(__func__);
63   return BTM_SUCCESS;
64 }
BTM_SetDeviceClass(DEV_CLASS)65 tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS /* dev_class */) {
66   inc_func_call_count(__func__);
67   return BTM_SUCCESS;
68 }
BTM_SetLocalDeviceName(const char *)69 tBTM_STATUS BTM_SetLocalDeviceName(const char* /* p_name */) {
70   inc_func_call_count(__func__);
71   return BTM_SUCCESS;
72 }
BTM_ReadDeviceClass(void)73 DEV_CLASS BTM_ReadDeviceClass(void) {
74   inc_func_call_count(__func__);
75   return kDevClassEmpty;
76 }
BTM_VendorSpecificCommand(uint16_t,uint8_t,uint8_t *,tBTM_VSC_CMPL_CB *)77 void BTM_VendorSpecificCommand(uint16_t /* opcode */, uint8_t /* param_len */,
78                                uint8_t* /* p_param_buf */,
79                                tBTM_VSC_CMPL_CB* /* p_cb */) {
80   inc_func_call_count(__func__);
81 }
BTM_WritePageTimeout(uint16_t)82 void BTM_WritePageTimeout(uint16_t /* timeout */) {
83   inc_func_call_count(__func__);
84 }
BTM_WriteVoiceSettings(uint16_t)85 void BTM_WriteVoiceSettings(uint16_t /* settings */) {
86   inc_func_call_count(__func__);
87 }
BTM_db_reset(void)88 void BTM_db_reset(void) { inc_func_call_count(__func__); }
BTM_reset_complete()89 void BTM_reset_complete() { inc_func_call_count(__func__); }
btm_delete_stored_link_key_complete(uint8_t *,uint16_t)90 void btm_delete_stored_link_key_complete(uint8_t* /* p */,
91                                          uint16_t /* evt_len */) {
92   inc_func_call_count(__func__);
93 }
btm_dev_free()94 void btm_dev_free() { inc_func_call_count(__func__); }
btm_dev_init()95 void btm_dev_init() { inc_func_call_count(__func__); }
btm_read_local_name_complete(uint8_t *,uint16_t)96 void btm_read_local_name_complete(uint8_t* /* p */, uint16_t /* evt_len */) {
97   inc_func_call_count(__func__);
98 }
99