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 <base/logging.h>
28 #include <string.h>
29 #include "bt_common.h"
30 #include "osi/include/fixed_queue.h"
31 #include "osi/include/log.h"
32 #include "osi/include/osi.h"
33 #include "osi/include/properties.h"
34 #include "stack/avrc/avrc_int.h"
35 #include "stack/include/avrc_api.h"
36 #include "stack/include/btu.h"
37 
38 #ifndef UNUSED_ATTR
39 #define UNUSED_ATTR
40 #endif
41 
AVRC_Close(uint8_t handle)42 uint16_t AVRC_Close(uint8_t handle) {
43   mock_function_count_map[__func__]++;
44   return 0;
45 }
AVRC_CloseBrowse(uint8_t handle)46 uint16_t AVRC_CloseBrowse(uint8_t handle) {
47   mock_function_count_map[__func__]++;
48   return 0;
49 }
AVRC_GetProfileVersion()50 uint16_t AVRC_GetProfileVersion() {
51   mock_function_count_map[__func__]++;
52   return 0;
53 }
AVRC_MsgReq(uint8_t handle,uint8_t label,uint8_t ctype,BT_HDR * p_pkt)54 uint16_t AVRC_MsgReq(uint8_t handle, uint8_t label, uint8_t ctype,
55                      BT_HDR* p_pkt) {
56   mock_function_count_map[__func__]++;
57   return 0;
58 }
AVRC_Open(uint8_t * p_handle,tAVRC_CONN_CB * p_ccb,const RawAddress & peer_addr)59 uint16_t AVRC_Open(uint8_t* p_handle, tAVRC_CONN_CB* p_ccb,
60                    const RawAddress& peer_addr) {
61   mock_function_count_map[__func__]++;
62   return 0;
63 }
AVRC_OpenBrowse(uint8_t handle,uint8_t conn_role)64 uint16_t AVRC_OpenBrowse(uint8_t handle, uint8_t conn_role) {
65   mock_function_count_map[__func__]++;
66   return 0;
67 }
AVRC_PassCmd(uint8_t handle,uint8_t label,tAVRC_MSG_PASS * p_msg)68 uint16_t AVRC_PassCmd(uint8_t handle, uint8_t label, tAVRC_MSG_PASS* p_msg) {
69   mock_function_count_map[__func__]++;
70   return 0;
71 }
AVRC_PassRsp(uint8_t handle,uint8_t label,tAVRC_MSG_PASS * p_msg)72 uint16_t AVRC_PassRsp(uint8_t handle, uint8_t label, tAVRC_MSG_PASS* p_msg) {
73   mock_function_count_map[__func__]++;
74   return 0;
75 }
avrc_flush_cmd_q(uint8_t handle)76 void avrc_flush_cmd_q(uint8_t handle) { mock_function_count_map[__func__]++; }
avrc_process_timeout(void * data)77 void avrc_process_timeout(void* data) { mock_function_count_map[__func__]++; }
avrc_send_next_vendor_cmd(uint8_t handle)78 void avrc_send_next_vendor_cmd(uint8_t handle) {
79   mock_function_count_map[__func__]++;
80 }
avrc_start_cmd_timer(uint8_t handle,uint8_t label,uint8_t msg_mask)81 void avrc_start_cmd_timer(uint8_t handle, uint8_t label, uint8_t msg_mask) {
82   mock_function_count_map[__func__]++;
83 }
84