• 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:13
20  */
21 
22 #include <base/functional/bind.h>
23 #include <base/functional/callback.h>
24 #include <base/location.h>
25 
26 #include <cstdint>
27 #include <vector>
28 
29 #include "bta/include/bta_gatt_api.h"
30 #include "test/common/mock_functions.h"
31 #include "types/bluetooth/uuid.h"
32 #include "types/bt_transport.h"
33 #include "types/raw_address.h"
34 
BTA_GATTS_Disable(void)35 void BTA_GATTS_Disable(void) { inc_func_call_count(__func__); }
BTA_GATTS_AppDeregister(tGATT_IF)36 void BTA_GATTS_AppDeregister(tGATT_IF /* server_if */) {
37   inc_func_call_count(__func__);
38 }
BTA_GATTS_AppRegister(const bluetooth::Uuid &,tBTA_GATTS_CBACK *,bool)39 void BTA_GATTS_AppRegister(const bluetooth::Uuid& /* app_uuid */,
40                            tBTA_GATTS_CBACK* /* p_cback */,
41                            bool /* eatt_support */) {
42   inc_func_call_count(__func__);
43 }
BTA_GATTS_CancelOpen(tGATT_IF,const RawAddress &,bool)44 void BTA_GATTS_CancelOpen(tGATT_IF /* server_if */,
45                           const RawAddress& /* remote_bda */,
46                           bool /* is_direct */) {
47   inc_func_call_count(__func__);
48 }
BTA_GATTS_Close(uint16_t)49 void BTA_GATTS_Close(uint16_t /* conn_id */) { inc_func_call_count(__func__); }
BTA_GATTS_AddService(tGATT_IF,std::vector<btgatt_db_element_t>,BTA_GATTS_AddServiceCb)50 void BTA_GATTS_AddService(tGATT_IF /* server_if */,
51                           std::vector<btgatt_db_element_t> /* service */,
52                           BTA_GATTS_AddServiceCb /* cb */) {
53   inc_func_call_count(__func__);
54 }
BTA_GATTS_DeleteService(uint16_t)55 void BTA_GATTS_DeleteService(uint16_t /* service_id */) {
56   inc_func_call_count(__func__);
57 }
BTA_GATTS_HandleValueIndication(uint16_t,uint16_t,std::vector<uint8_t>,bool)58 void BTA_GATTS_HandleValueIndication(uint16_t /* conn_id */,
59                                      uint16_t /* attr_id */,
60                                      std::vector<uint8_t> /* value */,
61                                      bool /* need_confirm */) {
62   inc_func_call_count(__func__);
63 }
BTA_GATTS_Open(tGATT_IF,const RawAddress &,tBLE_ADDR_TYPE,bool,tBT_TRANSPORT)64 void BTA_GATTS_Open(tGATT_IF /* server_if */,
65                     const RawAddress& /* remote_bda */,
66                     tBLE_ADDR_TYPE /* addr_type */, bool /* is_direct */,
67                     tBT_TRANSPORT /* transport */) {
68   inc_func_call_count(__func__);
69 }
BTA_GATTS_SendRsp(uint16_t,uint32_t,tGATT_STATUS,tGATTS_RSP *)70 void BTA_GATTS_SendRsp(uint16_t /* conn_id */, uint32_t /* trans_id */,
71                        tGATT_STATUS /* status */, tGATTS_RSP* /* p_msg */) {
72   inc_func_call_count(__func__);
73 }
BTA_GATTS_StopService(uint16_t)74 void BTA_GATTS_StopService(uint16_t /* service_id */) {
75   inc_func_call_count(__func__);
76 }
bta_gatts_add_service_impl(tGATT_IF,std::vector<btgatt_db_element_t>,BTA_GATTS_AddServiceCb)77 void bta_gatts_add_service_impl(tGATT_IF /* server_if */,
78                                 std::vector<btgatt_db_element_t> /* service */,
79                                 BTA_GATTS_AddServiceCb /* cb */) {
80   inc_func_call_count(__func__);
81 }
BTA_GATTS_InitBonded(void)82 void BTA_GATTS_InitBonded(void) { inc_func_call_count(__func__); }
83