summaryrefslogtreecommitdiff
path: root/system/test/mock/mock_stack_sdp_db.cc
blob: 75586b9ae93300063a63f8628013e5b55ce5d706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
 * Copyright 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Generated mock file from original source file
 *   Functions generated:14
 */

#include <map>
#include <string>

extern std::map<std::string, int> mock_function_count_map;

#include <stdio.h>
#include <string.h>

#include "bt_target.h"
#include "stack/include/sdp_api.h"
#include "stack/sdp/sdpint.h"
#include "types/bluetooth/uuid.h"

#ifndef UNUSED_ATTR
#define UNUSED_ATTR
#endif

bool SDP_AddAdditionProtoLists(uint32_t handle, uint16_t num_elem,
                               tSDP_PROTO_LIST_ELEM* p_proto_list) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_AddAttribute(uint32_t handle, uint16_t attr_id, uint8_t attr_type,
                      uint32_t attr_len, uint8_t* p_val) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_AddLanguageBaseAttrIDList(uint32_t handle, uint16_t lang,
                                   uint16_t char_enc, uint16_t base_id) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_AddProfileDescriptorList(uint32_t handle, uint16_t profile_uuid,
                                  uint16_t version) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_AddProtocolList(uint32_t handle, uint16_t num_elem,
                         tSDP_PROTOCOL_ELEM* p_elem_list) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_AddSequence(uint32_t handle, uint16_t attr_id, uint16_t num_elem,
                     uint8_t type[], uint8_t len[], uint8_t* p_val[]) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_AddServiceClassIdList(uint32_t handle, uint16_t num_services,
                               uint16_t* p_service_uuids) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_AddUuidSequence(uint32_t handle, uint16_t attr_id, uint16_t num_uuids,
                         uint16_t* p_uuids) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_DeleteAttribute(uint32_t handle, uint16_t attr_id) {
  mock_function_count_map[__func__]++;
  return false;
}
bool SDP_DeleteRecord(uint32_t handle) {
  mock_function_count_map[__func__]++;
  return false;
}
tSDP_ATTRIBUTE* sdp_db_find_attr_in_rec(tSDP_RECORD* p_rec, uint16_t start_attr,
                                        uint16_t end_attr) {
  mock_function_count_map[__func__]++;
  return nullptr;
}
tSDP_RECORD* sdp_db_find_record(uint32_t handle) {
  mock_function_count_map[__func__]++;
  return nullptr;
}
const tSDP_RECORD* sdp_db_service_search(const tSDP_RECORD* p_rec,
                                         tSDP_UUID_SEQ* p_seq) {
  mock_function_count_map[__func__]++;
  return nullptr;
}
uint32_t SDP_CreateRecord(void) {
  mock_function_count_map[__func__]++;
  return 0;
}