• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <string.h>
28 
29 #include "bt_target.h"
30 #include "main/shim/shim.h"
31 #include "stack/btm/btm_dev.h"
32 #include "stack/include/l2c_api.h"
33 #include "stack/include/l2cdefs.h"
34 #include "stack/include/smp_api.h"
35 #include "stack/smp/smp_int.h"
36 #include "stack_config.h"
37 #include "types/raw_address.h"
38 #include "utils/include/bt_utils.h"
39 
40 #ifndef UNUSED_ATTR
41 #define UNUSED_ATTR
42 #endif
43 
SMP_PairCancel(const RawAddress & bd_addr)44 bool SMP_PairCancel(const RawAddress& bd_addr) {
45   mock_function_count_map[__func__]++;
46   return false;
47 }
SMP_Register(tSMP_CALLBACK * p_cback)48 bool SMP_Register(tSMP_CALLBACK* p_cback) {
49   mock_function_count_map[__func__]++;
50   return false;
51 }
SMP_BR_PairWith(const RawAddress & bd_addr)52 tSMP_STATUS SMP_BR_PairWith(const RawAddress& bd_addr) {
53   mock_function_count_map[__func__]++;
54   return SMP_SUCCESS;
55 }
SMP_Pair(const RawAddress & bd_addr,tBLE_ADDR_TYPE addr_type)56 tSMP_STATUS SMP_Pair(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type) {
57   mock_function_count_map[__func__]++;
58   return SMP_SUCCESS;
59 }
SMP_Pair(const RawAddress & bd_addr)60 tSMP_STATUS SMP_Pair(const RawAddress& bd_addr) {
61   mock_function_count_map[__func__]++;
62   return SMP_SUCCESS;
63 }
SMP_SetTraceLevel(uint8_t new_level)64 uint8_t SMP_SetTraceLevel(uint8_t new_level) {
65   mock_function_count_map[__func__]++;
66   return 0;
67 }
SMP_ConfirmReply(const RawAddress & bd_addr,uint8_t res)68 void SMP_ConfirmReply(const RawAddress& bd_addr, uint8_t res) {
69   mock_function_count_map[__func__]++;
70 }
SMP_Init(void)71 void SMP_Init(void) { mock_function_count_map[__func__]++; }
SMP_OobDataReply(const RawAddress & bd_addr,tSMP_STATUS res,uint8_t len,uint8_t * p_data)72 void SMP_OobDataReply(const RawAddress& bd_addr, tSMP_STATUS res, uint8_t len,
73                       uint8_t* p_data) {
74   mock_function_count_map[__func__]++;
75 }
SMP_PasskeyReply(const RawAddress & bd_addr,uint8_t res,uint32_t passkey)76 void SMP_PasskeyReply(const RawAddress& bd_addr, uint8_t res,
77                       uint32_t passkey) {
78   mock_function_count_map[__func__]++;
79 }
SMP_SecureConnectionOobDataReply(uint8_t * p_data)80 void SMP_SecureConnectionOobDataReply(uint8_t* p_data) {
81   mock_function_count_map[__func__]++;
82 }
SMP_SecurityGrant(const RawAddress & bd_addr,tSMP_STATUS res)83 void SMP_SecurityGrant(const RawAddress& bd_addr, tSMP_STATUS res) {
84   mock_function_count_map[__func__]++;
85 }
86 
SMP_CrLocScOobData()87 bool SMP_CrLocScOobData() {
88   mock_function_count_map[__func__]++;
89   return false;
90 }
91 
SMP_ClearLocScOobData()92 void SMP_ClearLocScOobData() { mock_function_count_map[__func__]++; }
93