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 "stack/include/smp_api.h"
23 #include "test/common/mock_functions.h"
24 #include "types/raw_address.h"
25 
SMP_PairCancel(const RawAddress &)26 bool SMP_PairCancel(const RawAddress& /* bd_addr */) {
27   inc_func_call_count(__func__);
28   return false;
29 }
SMP_Register(tSMP_CALLBACK *)30 bool SMP_Register(tSMP_CALLBACK* /* p_cback */) {
31   inc_func_call_count(__func__);
32   return false;
33 }
SMP_BR_PairWith(const RawAddress &)34 tSMP_STATUS SMP_BR_PairWith(const RawAddress& /* bd_addr */) {
35   inc_func_call_count(__func__);
36   return SMP_SUCCESS;
37 }
SMP_Pair(const RawAddress &,tBLE_ADDR_TYPE)38 tSMP_STATUS SMP_Pair(const RawAddress& /* bd_addr */,
39                      tBLE_ADDR_TYPE /* addr_type */) {
40   inc_func_call_count(__func__);
41   return SMP_SUCCESS;
42 }
SMP_Pair(const RawAddress &)43 tSMP_STATUS SMP_Pair(const RawAddress& /* bd_addr */) {
44   inc_func_call_count(__func__);
45   return SMP_SUCCESS;
46 }
SMP_ConfirmReply(const RawAddress &,uint8_t)47 void SMP_ConfirmReply(const RawAddress& /* bd_addr */, uint8_t /* res */) {
48   inc_func_call_count(__func__);
49 }
SMP_Init(uint8_t)50 void SMP_Init(uint8_t /* init_security_mode */) {
51   inc_func_call_count(__func__);
52 }
SMP_OobDataReply(const RawAddress &,tSMP_STATUS,uint8_t,uint8_t *)53 void SMP_OobDataReply(const RawAddress& /* bd_addr */, tSMP_STATUS /* res */,
54                       uint8_t /* len */, uint8_t* /* p_data */) {
55   inc_func_call_count(__func__);
56 }
SMP_PasskeyReply(const RawAddress &,uint8_t,uint32_t)57 void SMP_PasskeyReply(const RawAddress& /* bd_addr */, uint8_t /* res */,
58                       uint32_t /* passkey */) {
59   inc_func_call_count(__func__);
60 }
SMP_SecureConnectionOobDataReply(uint8_t *)61 void SMP_SecureConnectionOobDataReply(uint8_t* /* p_data */) {
62   inc_func_call_count(__func__);
63 }
SMP_SecurityGrant(const RawAddress &,tSMP_STATUS)64 void SMP_SecurityGrant(const RawAddress& /* bd_addr */, tSMP_STATUS /* res */) {
65   inc_func_call_count(__func__);
66 }
67 
SMP_CrLocScOobData()68 bool SMP_CrLocScOobData() {
69   inc_func_call_count(__func__);
70   return false;
71 }
72 
SMP_ClearLocScOobData()73 void SMP_ClearLocScOobData() { inc_func_call_count(__func__); }
74 
SMP_SirkConfirmDeviceReply(const RawAddress &,uint8_t)75 void SMP_SirkConfirmDeviceReply(const RawAddress& /* bd_addr */,
76                                 uint8_t /* res */) {
77   inc_func_call_count(__func__);
78 }
79