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:10
20 */
21
22 #include <cstdint>
23 #include <map>
24 #include <string>
25
26 #include "stack/include/srvc_api.h"
27 #include "stack/srvc/srvc_eng_int.h"
28 #include "test/common/mock_functions.h"
29 #include "types/raw_address.h"
30
31 #ifndef UNUSED_ATTR
32 #define UNUSED_ATTR
33 #endif
34
DIS_ReadDISInfo(const RawAddress & peer_bda,tDIS_READ_CBACK * p_cback,tDIS_ATTR_MASK mask)35 bool DIS_ReadDISInfo(const RawAddress& peer_bda, tDIS_READ_CBACK* p_cback,
36 tDIS_ATTR_MASK mask) {
37 inc_func_call_count(__func__);
38 return false;
39 }
dis_gatt_c_read_dis_req(uint16_t conn_id)40 bool dis_gatt_c_read_dis_req(uint16_t conn_id) {
41 inc_func_call_count(__func__);
42 return false;
43 }
dis_valid_handle_range(uint16_t handle)44 bool dis_valid_handle_range(uint16_t handle) {
45 inc_func_call_count(__func__);
46 return false;
47 }
DIS_SrInit(tDIS_ATTR_MASK dis_attr_mask)48 tDIS_STATUS DIS_SrInit(tDIS_ATTR_MASK dis_attr_mask) {
49 inc_func_call_count(__func__);
50 return 0;
51 }
DIS_SrUpdate(tDIS_ATTR_BIT dis_attr_bit,tDIS_ATTR * p_info)52 tDIS_STATUS DIS_SrUpdate(tDIS_ATTR_BIT dis_attr_bit, tDIS_ATTR* p_info) {
53 inc_func_call_count(__func__);
54 return 0;
55 }
dis_read_attr_value(UNUSED_ATTR uint8_t clcb_idx,uint16_t handle,tGATT_VALUE * p_value,bool is_long,tGATT_STATUS * p_status)56 uint8_t dis_read_attr_value(UNUSED_ATTR uint8_t clcb_idx, uint16_t handle,
57 tGATT_VALUE* p_value, bool is_long,
58 tGATT_STATUS* p_status) {
59 inc_func_call_count(__func__);
60 return 0;
61 }
dis_write_attr_value(UNUSED_ATTR tGATT_WRITE_REQ * p_data,tGATT_STATUS * p_status)62 uint8_t dis_write_attr_value(UNUSED_ATTR tGATT_WRITE_REQ* p_data,
63 tGATT_STATUS* p_status) {
64 inc_func_call_count(__func__);
65 return 0;
66 }
dis_c_cmpl_cback(tSRVC_CLCB * p_clcb,tGATTC_OPTYPE op,tGATT_STATUS status,tGATT_CL_COMPLETE * p_data)67 void dis_c_cmpl_cback(tSRVC_CLCB* p_clcb, tGATTC_OPTYPE op, tGATT_STATUS status,
68 tGATT_CL_COMPLETE* p_data) {
69 inc_func_call_count(__func__);
70 }
71