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:7
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
29 #include "bt_common.h"
30 #include "stack/avrc/avrc_int.h"
31 #include "stack/include/avrc_api.h"
32
33 #ifndef UNUSED_ATTR
34 #define UNUSED_ATTR
35 #endif
36
AVRC_AddRecord(uint16_t service_uuid,const char * p_service_name,const char * p_provider_name,uint16_t categories,uint32_t sdp_handle,bool browse_supported,uint16_t profile_version,uint16_t cover_art_psm)37 uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name,
38 const char* p_provider_name, uint16_t categories,
39 uint32_t sdp_handle, bool browse_supported,
40 uint16_t profile_version, uint16_t cover_art_psm) {
41 mock_function_count_map[__func__]++;
42 return 0;
43 }
AVRC_FindService(uint16_t service_uuid,const RawAddress & bd_addr,tAVRC_SDP_DB_PARAMS * p_db,const tAVRC_FIND_CBACK & find_cback)44 uint16_t AVRC_FindService(uint16_t service_uuid, const RawAddress& bd_addr,
45 tAVRC_SDP_DB_PARAMS* p_db,
46 const tAVRC_FIND_CBACK& find_cback) {
47 mock_function_count_map[__func__]++;
48 return 0;
49 }
AVRC_RemoveRecord(uint32_t sdp_handle)50 uint16_t AVRC_RemoveRecord(uint32_t sdp_handle) {
51 mock_function_count_map[__func__]++;
52 return 0;
53 }
AVRC_SetTraceLevel(uint8_t new_level)54 uint8_t AVRC_SetTraceLevel(uint8_t new_level) {
55 mock_function_count_map[__func__]++;
56 return 0;
57 }
AVRC_Init(void)58 void AVRC_Init(void) { mock_function_count_map[__func__]++; }
59