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 <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <string.h>
28 #include "a2dp_api.h"
29 #include "avdt_api.h"
30 #include "bt_common.h"
31 #include "bt_target.h"
32 #include "osi/include/log.h"
33 #include "sdpdefs.h"
34 #include "stack/a2dp/a2dp_int.h"
35 
36 #ifndef UNUSED_ATTR
37 #define UNUSED_ATTR
38 #endif
39 
A2DP_AddRecord(uint16_t service_uuid,char * p_service_name,char * p_provider_name,uint16_t features,uint32_t sdp_handle)40 tA2DP_STATUS A2DP_AddRecord(uint16_t service_uuid, char* p_service_name,
41                             char* p_provider_name, uint16_t features,
42                             uint32_t sdp_handle) {
43   mock_function_count_map[__func__]++;
44   return A2DP_SUCCESS;
45 }
A2DP_FindService(uint16_t service_uuid,const RawAddress & bd_addr,tA2DP_SDP_DB_PARAMS * p_db,tA2DP_FIND_CBACK * p_cback)46 tA2DP_STATUS A2DP_FindService(uint16_t service_uuid, const RawAddress& bd_addr,
47                               tA2DP_SDP_DB_PARAMS* p_db,
48                               tA2DP_FIND_CBACK* p_cback) {
49   mock_function_count_map[__func__]++;
50   return A2DP_SUCCESS;
51 }
A2DP_GetAvdtpVersion()52 uint16_t A2DP_GetAvdtpVersion() {
53   mock_function_count_map[__func__]++;
54   return 0;
55 }
A2DP_BitsSet(uint64_t num)56 uint8_t A2DP_BitsSet(uint64_t num) {
57   mock_function_count_map[__func__]++;
58   return 0;
59 }
A2DP_SetTraceLevel(uint8_t new_level)60 uint8_t A2DP_SetTraceLevel(uint8_t new_level) {
61   mock_function_count_map[__func__]++;
62   return 0;
63 }
A2DP_Init(void)64 void A2DP_Init(void) { mock_function_count_map[__func__]++; }
a2dp_set_avdt_sdp_ver(uint16_t avdt_sdp_ver)65 void a2dp_set_avdt_sdp_ver(uint16_t avdt_sdp_ver) {
66   mock_function_count_map[__func__]++;
67 }
68