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 // TODO(b/369381361) Enfore -Wmissing-prototypes
33 #pragma GCC diagnostic ignored "-Wmissing-prototypes"
34 
35 namespace test {
36 namespace mock {
37 namespace stack_btm_devctl {
38 
39 }
40 }  // namespace mock
41 }  // namespace test
42 
BTM_DeleteStoredLinkKey(const RawAddress *,tBTM_CMPL_CB *)43 tBTM_STATUS BTM_DeleteStoredLinkKey(const RawAddress* /* bd_addr */, tBTM_CMPL_CB* /* p_cb */) {
44   inc_func_call_count(__func__);
45   return tBTM_STATUS::BTM_SUCCESS;
46 }
BTM_EnableTestMode(void)47 tBTM_STATUS BTM_EnableTestMode(void) {
48   inc_func_call_count(__func__);
49   return tBTM_STATUS::BTM_SUCCESS;
50 }
BTM_ReadDeviceClass(void)51 DEV_CLASS BTM_ReadDeviceClass(void) {
52   inc_func_call_count(__func__);
53   return kDevClassEmpty;
54 }
BTM_db_reset(void)55 void BTM_db_reset(void) { inc_func_call_count(__func__); }
btm_delete_stored_link_key_complete(uint8_t *,uint16_t)56 void btm_delete_stored_link_key_complete(uint8_t* /* p */, uint16_t /* evt_len */) {
57   inc_func_call_count(__func__);
58 }
btm_dev_free()59 void btm_dev_free() { inc_func_call_count(__func__); }
btm_dev_init()60 void btm_dev_init() { inc_func_call_count(__func__); }
61