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 */) { inc_func_call_count(__func__); }
BTA_GATTS_AppRegister(const bluetooth::Uuid &,tBTA_GATTS_CBACK *,bool)37 void BTA_GATTS_AppRegister(const bluetooth::Uuid& /* app_uuid */, tBTA_GATTS_CBACK* /* p_cback */,
38 bool /* eatt_support */) {
39 inc_func_call_count(__func__);
40 }
BTA_GATTS_CancelOpen(tGATT_IF,const RawAddress &,bool)41 void BTA_GATTS_CancelOpen(tGATT_IF /* server_if */, const RawAddress& /* remote_bda */,
42 bool /* is_direct */) {
43 inc_func_call_count(__func__);
44 }
BTA_GATTS_Close(uint16_t)45 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)46 void BTA_GATTS_AddService(tGATT_IF /* server_if */, std::vector<btgatt_db_element_t> /* service */,
47 BTA_GATTS_AddServiceCb /* cb */) {
48 inc_func_call_count(__func__);
49 }
BTA_GATTS_DeleteService(uint16_t)50 void BTA_GATTS_DeleteService(uint16_t /* service_id */) { inc_func_call_count(__func__); }
BTA_GATTS_HandleValueIndication(uint16_t,uint16_t,std::vector<uint8_t>,bool)51 void BTA_GATTS_HandleValueIndication(uint16_t /* conn_id */, uint16_t /* attr_id */,
52 std::vector<uint8_t> /* value */, bool /* need_confirm */) {
53 inc_func_call_count(__func__);
54 }
BTA_GATTS_Open(tGATT_IF,const RawAddress &,tBLE_ADDR_TYPE,bool,tBT_TRANSPORT)55 void BTA_GATTS_Open(tGATT_IF /* server_if */, const RawAddress& /* remote_bda */,
56 tBLE_ADDR_TYPE /* addr_type */, bool /* is_direct */,
57 tBT_TRANSPORT /* transport */) {
58 inc_func_call_count(__func__);
59 }
BTA_GATTS_SendRsp(uint16_t,uint32_t,tGATT_STATUS,tGATTS_RSP *)60 void BTA_GATTS_SendRsp(uint16_t /* conn_id */, uint32_t /* trans_id */, tGATT_STATUS /* status */,
61 tGATTS_RSP* /* p_msg */) {
62 inc_func_call_count(__func__);
63 }
BTA_GATTS_StopService(uint16_t)64 void BTA_GATTS_StopService(uint16_t /* service_id */) { inc_func_call_count(__func__); }
BTA_GATTS_InitBonded(void)65 void BTA_GATTS_InitBonded(void) { inc_func_call_count(__func__); }
66