1 /*
2 * Copyright 2020 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:10
20 */
21
22 #include <map>
23 #include <string>
24
25 extern std::map<std::string, int> mock_function_count_map;
26
27 #include <cstdint>
28 #include "stack/gatt/gatt_int.h"
29
30 #ifndef UNUSED_ATTR
31 #define UNUSED_ATTR
32 #endif
33
gatt_security_check_start(tGATT_CLCB * p_clcb)34 bool gatt_security_check_start(tGATT_CLCB* p_clcb) {
35 mock_function_count_map[__func__]++;
36 return false;
37 }
gatt_determine_sec_act(tGATT_CLCB * p_clcb)38 tGATT_SEC_ACTION gatt_determine_sec_act(tGATT_CLCB* p_clcb) {
39 mock_function_count_map[__func__]++;
40 return GATT_SEC_NONE;
41 }
gatt_get_sec_act(tGATT_TCB * p_tcb)42 tGATT_SEC_ACTION gatt_get_sec_act(tGATT_TCB* p_tcb) {
43 mock_function_count_map[__func__]++;
44 return GATT_SEC_NONE;
45 }
gatt_get_link_encrypt_status(tGATT_TCB & tcb)46 tGATT_STATUS gatt_get_link_encrypt_status(tGATT_TCB& tcb) {
47 mock_function_count_map[__func__]++;
48 return GATT_SUCCESS;
49 }
gatt_enc_cmpl_cback(const RawAddress * bd_addr,tBT_TRANSPORT transport,UNUSED_ATTR void * p_ref_data,tBTM_STATUS result)50 void gatt_enc_cmpl_cback(const RawAddress* bd_addr, tBT_TRANSPORT transport,
51 UNUSED_ATTR void* p_ref_data, tBTM_STATUS result) {
52 mock_function_count_map[__func__]++;
53 }
gatt_notify_enc_cmpl(const RawAddress & bd_addr)54 void gatt_notify_enc_cmpl(const RawAddress& bd_addr) {
55 mock_function_count_map[__func__]++;
56 }
gatt_sec_check_complete(bool sec_check_ok,tGATT_CLCB * p_clcb,uint8_t sec_act)57 void gatt_sec_check_complete(bool sec_check_ok, tGATT_CLCB* p_clcb,
58 uint8_t sec_act) {
59 mock_function_count_map[__func__]++;
60 }
gatt_set_sec_act(tGATT_TCB * p_tcb,tGATT_SEC_ACTION sec_act)61 void gatt_set_sec_act(tGATT_TCB* p_tcb, tGATT_SEC_ACTION sec_act) {
62 mock_function_count_map[__func__]++;
63 }
gatt_verify_signature(tGATT_TCB & tcb,uint16_t cid,BT_HDR * p_buf)64 void gatt_verify_signature(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_buf) {
65 mock_function_count_map[__func__]++;
66 }
67