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:14
20 */
21
22 #include <base/functional/callback.h>
23
24 #include <cstdint>
25
26 #include "stack/gatt/gatt_int.h"
27 #include "test/common/mock_functions.h"
28 #include "types/bt_transport.h"
29 #include "types/raw_address.h"
30
gatt_profile_find_conn_id_by_bd_addr(const RawAddress &)31 uint16_t gatt_profile_find_conn_id_by_bd_addr(
32 const RawAddress& /* remote_bda */) {
33 inc_func_call_count(__func__);
34 return 0;
35 }
gatt_profile_get_eatt_support(const RawAddress &,base::OnceCallback<void (const RawAddress &,bool)>)36 bool gatt_profile_get_eatt_support(
37 const RawAddress& /* remote_bda */,
38 base::OnceCallback<void(const RawAddress&, bool)> /* cb */) {
39 inc_func_call_count(__func__);
40 return false;
41 }
gatt_sr_is_cl_change_aware(tGATT_TCB &)42 bool gatt_sr_is_cl_change_aware(tGATT_TCB& /* tcb */) {
43 inc_func_call_count(__func__);
44 return false;
45 }
gatt_profile_clcb_alloc(uint16_t,const RawAddress &,tBT_TRANSPORT)46 tGATT_PROFILE_CLCB* gatt_profile_clcb_alloc(uint16_t /* conn_id */,
47 const RawAddress& /* bda */,
48 tBT_TRANSPORT /* tranport */) {
49 inc_func_call_count(__func__);
50 return nullptr;
51 }
proc_read_req(uint16_t,tGATTS_REQ_TYPE,tGATT_READ_REQ *,tGATTS_RSP *)52 tGATT_STATUS proc_read_req(uint16_t /* conn_id */, tGATTS_REQ_TYPE,
53 tGATT_READ_REQ* /* p_data */,
54 tGATTS_RSP* /* p_rsp */) {
55 inc_func_call_count(__func__);
56 return GATT_SUCCESS;
57 }
proc_write_req(uint16_t,tGATTS_REQ_TYPE,tGATT_WRITE_REQ *)58 tGATT_STATUS proc_write_req(uint16_t /* conn_id */, tGATTS_REQ_TYPE,
59 tGATT_WRITE_REQ* /* p_data */) {
60 inc_func_call_count(__func__);
61 return GATT_SUCCESS;
62 }
read_attr_value(uint16_t,uint16_t,tGATT_VALUE *,bool)63 tGATT_STATUS read_attr_value(uint16_t /* conn_id */, uint16_t /* handle */,
64 tGATT_VALUE* /* p_value */, bool /* is_long */) {
65 inc_func_call_count(__func__);
66 return GATT_SUCCESS;
67 }
GATT_ConfigServiceChangeCCC(const RawAddress &,bool,tBT_TRANSPORT)68 void GATT_ConfigServiceChangeCCC(const RawAddress& /* remote_bda */,
69 bool /* enable */,
70 tBT_TRANSPORT /* transport */) {
71 inc_func_call_count(__func__);
72 }
gatt_profile_clcb_dealloc(tGATT_PROFILE_CLCB *)73 void gatt_profile_clcb_dealloc(tGATT_PROFILE_CLCB* /* p_clcb */) {
74 inc_func_call_count(__func__);
75 }
gatt_profile_db_init(void)76 void gatt_profile_db_init(void) { inc_func_call_count(__func__); }
gatt_sr_init_cl_status(tGATT_TCB &)77 void gatt_sr_init_cl_status(tGATT_TCB& /* tcb */) {
78 inc_func_call_count(__func__);
79 }
gatt_sr_update_cl_status(tGATT_TCB &,bool)80 void gatt_sr_update_cl_status(tGATT_TCB& /* tcb */, bool /* chg_aware */) {
81 inc_func_call_count(__func__);
82 }
gatt_cl_read_sirk_req(const RawAddress &,base::OnceCallback<void (tGATT_STATUS status,const RawAddress &,uint8_t sirk_type,Octet16 & sirk)>)83 bool gatt_cl_read_sirk_req(
84 const RawAddress& /* peer_bda */,
85 base::OnceCallback<void(tGATT_STATUS status, const RawAddress&,
86 uint8_t sirk_type, Octet16& sirk)>
87 /* cb */) {
88 return false;
89 }
90