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