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:14
20  */
21 
22 #include "stack/sdp/sdpint.h"
23 #include "test/common/mock_functions.h"
24 
SDP_AddAdditionProtoLists(uint32_t,uint16_t,tSDP_PROTO_LIST_ELEM *)25 bool SDP_AddAdditionProtoLists(uint32_t /* handle */, uint16_t /* num_elem */,
26                                tSDP_PROTO_LIST_ELEM* /* p_proto_list */) {
27   inc_func_call_count(__func__);
28   return false;
29 }
SDP_AddAttribute(uint32_t,uint16_t,uint8_t,uint32_t,uint8_t *)30 bool SDP_AddAttribute(uint32_t /* handle */, uint16_t /* attr_id */,
31                       uint8_t /* attr_type */, uint32_t /* attr_len */,
32                       uint8_t* /* p_val */) {
33   inc_func_call_count(__func__);
34   return false;
35 }
SDP_AddLanguageBaseAttrIDList(uint32_t,uint16_t,uint16_t,uint16_t)36 bool SDP_AddLanguageBaseAttrIDList(uint32_t /* handle */, uint16_t /* lang */,
37                                    uint16_t /* char_enc */,
38                                    uint16_t /* base_id */) {
39   inc_func_call_count(__func__);
40   return false;
41 }
SDP_AddProfileDescriptorList(uint32_t,uint16_t,uint16_t)42 bool SDP_AddProfileDescriptorList(uint32_t /* handle */,
43                                   uint16_t /* profile_uuid */,
44                                   uint16_t /* version */) {
45   inc_func_call_count(__func__);
46   return false;
47 }
SDP_AddProtocolList(uint32_t,uint16_t,tSDP_PROTOCOL_ELEM *)48 bool SDP_AddProtocolList(uint32_t /* handle */, uint16_t /* num_elem */,
49                          tSDP_PROTOCOL_ELEM* /* p_elem_list */) {
50   inc_func_call_count(__func__);
51   return false;
52 }
SDP_AddSequence(uint32_t,uint16_t,uint16_t,uint8_t[],uint8_t[],uint8_t * [])53 bool SDP_AddSequence(uint32_t /* handle */, uint16_t /* attr_id */,
54                      uint16_t /* num_elem */, uint8_t /* type */[],
55                      uint8_t /* len */[], uint8_t* /* p_val */[]) {
56   inc_func_call_count(__func__);
57   return false;
58 }
SDP_AddServiceClassIdList(uint32_t,uint16_t,uint16_t *)59 bool SDP_AddServiceClassIdList(uint32_t /* handle */,
60                                uint16_t /* num_services */,
61                                uint16_t* /* p_service_uuids */) {
62   inc_func_call_count(__func__);
63   return false;
64 }
SDP_AddUuidSequence(uint32_t,uint16_t,uint16_t,uint16_t *)65 bool SDP_AddUuidSequence(uint32_t /* handle */, uint16_t /* attr_id */,
66                          uint16_t /* num_uuids */, uint16_t* /* p_uuids */) {
67   inc_func_call_count(__func__);
68   return false;
69 }
SDP_DeleteRecord(uint32_t)70 bool SDP_DeleteRecord(uint32_t /* handle */) {
71   inc_func_call_count(__func__);
72   return false;
73 }
sdp_db_find_attr_in_rec(tSDP_RECORD *,uint16_t,uint16_t)74 tSDP_ATTRIBUTE* sdp_db_find_attr_in_rec(tSDP_RECORD* /* p_rec */,
75                                         uint16_t /* start_attr */,
76                                         uint16_t /* end_attr */) {
77   inc_func_call_count(__func__);
78   return nullptr;
79 }
sdp_db_find_record(uint32_t)80 tSDP_RECORD* sdp_db_find_record(uint32_t /* handle */) {
81   inc_func_call_count(__func__);
82   return nullptr;
83 }
sdp_db_service_search(const tSDP_RECORD *,tSDP_UUID_SEQ *)84 const tSDP_RECORD* sdp_db_service_search(const tSDP_RECORD* /* p_rec */,
85                                          tSDP_UUID_SEQ* /* p_seq */) {
86   inc_func_call_count(__func__);
87   return nullptr;
88 }
SDP_CreateRecord(void)89 uint32_t SDP_CreateRecord(void) {
90   inc_func_call_count(__func__);
91   return 0;
92 }
93