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:9
20 */
21
22 #include "a2dp_api.h"
23 #include "stack/a2dp/a2dp_int.h"
24 #include "test/common/mock_functions.h"
25 #include "types/raw_address.h"
26
A2DP_AddRecord(uint16_t,char *,char *,uint16_t,uint32_t)27 tA2DP_STATUS A2DP_AddRecord(uint16_t /* service_uuid */,
28 char* /* p_service_name */,
29 char* /* p_provider_name */,
30 uint16_t /* features */,
31 uint32_t /* sdp_handle */) {
32 inc_func_call_count(__func__);
33 return A2DP_SUCCESS;
34 }
A2DP_FindService(uint16_t,const RawAddress &,tA2DP_SDP_DB_PARAMS *,tA2DP_FIND_CBACK)35 tA2DP_STATUS A2DP_FindService(uint16_t /* service_uuid */,
36 const RawAddress& /* bd_addr */,
37 tA2DP_SDP_DB_PARAMS* /* p_db */,
38 tA2DP_FIND_CBACK /* p_cback */) {
39 inc_func_call_count(__func__);
40 return A2DP_SUCCESS;
41 }
A2DP_GetAvdtpVersion()42 uint16_t A2DP_GetAvdtpVersion() {
43 inc_func_call_count(__func__);
44 return 0;
45 }
A2DP_BitsSet(uint64_t)46 uint8_t A2DP_BitsSet(uint64_t /* num */) {
47 inc_func_call_count(__func__);
48 return 1;
49 }
A2DP_Init(void)50 void A2DP_Init(void) { inc_func_call_count(__func__); }
a2dp_set_avdt_sdp_ver(uint16_t)51 void a2dp_set_avdt_sdp_ver(uint16_t /* avdt_sdp_ver */) {
52 inc_func_call_count(__func__);
53 }
54