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:27
20 */
21
22 #include <cstdint>
23 #include <map>
24 #include <string>
25
26 #include "stack/gatt/gatt_int.h"
27 #include "stack/include/gatt_api.h"
28 #include "test/common/mock_functions.h"
29 #include "types/bluetooth/uuid.h"
30 #include "types/bt_transport.h"
31 #include "types/raw_address.h"
32
33 using namespace bluetooth;
34
35 tGATT_HDL_LIST_ELEM elem; // gatt_add_an_item_to_list
36
37 #ifndef UNUSED_ATTR
38 #define UNUSED_ATTR
39 #endif
40
gatt_add_an_item_to_list(uint16_t s_handle)41 tGATT_HDL_LIST_ELEM& gatt_add_an_item_to_list(uint16_t s_handle) {
42 inc_func_call_count(__func__);
43 return elem;
44 }
GATTC_Discover(uint16_t conn_id,tGATT_DISC_TYPE disc_type,uint16_t start_handle,uint16_t end_handle,const Uuid & uuid)45 tGATT_STATUS GATTC_Discover(uint16_t conn_id, tGATT_DISC_TYPE disc_type,
46 uint16_t start_handle, uint16_t end_handle,
47 const Uuid& uuid) {
48 inc_func_call_count(__func__);
49 return GATT_SUCCESS;
50 }
51