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