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