• 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: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(const RawAddress& /* remote_bda */) {
32   inc_func_call_count(__func__);
33   return 0;
34 }
gatt_profile_get_eatt_support(const RawAddress &)35 bool gatt_profile_get_eatt_support(const RawAddress& /* remote_bda */) {
36   inc_func_call_count(__func__);
37   return false;
38 }
gatt_profile_get_eatt_support_by_conn_id(uint16_t)39 bool gatt_profile_get_eatt_support_by_conn_id(uint16_t /* conn_id */) {
40   inc_func_call_count(__func__);
41   return true;
42 }
gatt_sr_is_cl_change_aware(tGATT_TCB &)43 bool gatt_sr_is_cl_change_aware(tGATT_TCB& /* tcb */) {
44   inc_func_call_count(__func__);
45   return false;
46 }
GATT_ConfigServiceChangeCCC(const RawAddress &,bool,tBT_TRANSPORT)47 void GATT_ConfigServiceChangeCCC(const RawAddress& /* remote_bda */, bool /* enable */,
48                                  tBT_TRANSPORT /* transport */) {
49   inc_func_call_count(__func__);
50 }
gatt_profile_db_init(void)51 void gatt_profile_db_init(void) { inc_func_call_count(__func__); }
gatt_sr_init_cl_status(tGATT_TCB &)52 void gatt_sr_init_cl_status(tGATT_TCB& /* tcb */) { inc_func_call_count(__func__); }
gatt_sr_update_cl_status(tGATT_TCB &,bool)53 void gatt_sr_update_cl_status(tGATT_TCB& /* tcb */, bool /* chg_aware */) {
54   inc_func_call_count(__func__);
55 }
gatt_cl_read_sirk_req(const RawAddress &,base::OnceCallback<void (tGATT_STATUS status,const RawAddress &,uint8_t sirk_type,Octet16 & sirk)>)56 bool gatt_cl_read_sirk_req(const RawAddress& /* peer_bda */,
57                            base::OnceCallback<void(tGATT_STATUS status, const RawAddress&,
58                                                    uint8_t sirk_type, Octet16& sirk)>
59                            /* cb */) {
60   return false;
61 }
62