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 "stack/avrc/avrc_int.h"
23 #include "stack/include/avrc_api.h"
24 #include "stack/include/bt_hdr.h"
25 #include "test/common/mock_functions.h"
26 #include "types/raw_address.h"
27 
avrcp_absolute_volume_is_enabled()28 bool avrcp_absolute_volume_is_enabled() {
29   inc_func_call_count(__func__);
30   return true;
31 }
AVRC_Close(uint8_t)32 uint16_t AVRC_Close(uint8_t /* handle */) {
33   inc_func_call_count(__func__);
34   return 0;
35 }
AVRC_CloseBrowse(uint8_t)36 uint16_t AVRC_CloseBrowse(uint8_t /* handle */) {
37   inc_func_call_count(__func__);
38   return 0;
39 }
AVRC_GetControlProfileVersion()40 uint16_t AVRC_GetControlProfileVersion() {
41   inc_func_call_count(__func__);
42   return 0;
43 }
AVRC_GetProfileVersion()44 uint16_t AVRC_GetProfileVersion() {
45   inc_func_call_count(__func__);
46   return 0;
47 }
AVRC_MsgReq(uint8_t,uint8_t,uint8_t,BT_HDR *,bool)48 uint16_t AVRC_MsgReq(uint8_t /* handle */, uint8_t /* label */,
49                      uint8_t /* ctype */, BT_HDR* /* p_pkt */,
50                      bool /* is_new_avrcp */) {
51   inc_func_call_count(__func__);
52   return 0;
53 }
AVRC_Open(uint8_t *,tAVRC_CONN_CB *,const RawAddress &)54 uint16_t AVRC_Open(uint8_t* /* p_handle */, tAVRC_CONN_CB* /* p_ccb */,
55                    const RawAddress& /* peer_addr */) {
56   inc_func_call_count(__func__);
57   return 0;
58 }
AVRC_OpenBrowse(uint8_t,uint8_t)59 uint16_t AVRC_OpenBrowse(uint8_t /* handle */, uint8_t /* conn_role */) {
60   inc_func_call_count(__func__);
61   return 0;
62 }
AVRC_SaveControllerVersion(const RawAddress &,uint16_t)63 void AVRC_SaveControllerVersion(const RawAddress& /* bdaddr */,
64                                 uint16_t /* version */) {
65   inc_func_call_count(__func__);
66 }
67 
AVRC_UpdateCcb(RawAddress *,uint32_t)68 void AVRC_UpdateCcb(RawAddress* /* addr */, uint32_t /* company_id */) {
69   inc_func_call_count(__func__);
70 }
71 
AVRC_PassCmd(uint8_t,uint8_t,tAVRC_MSG_PASS *)72 uint16_t AVRC_PassCmd(uint8_t /* handle */, uint8_t /* label */,
73                       tAVRC_MSG_PASS* /* p_msg */) {
74   inc_func_call_count(__func__);
75   return 0;
76 }
AVRC_PassRsp(uint8_t,uint8_t,tAVRC_MSG_PASS *)77 uint16_t AVRC_PassRsp(uint8_t /* handle */, uint8_t /* label */,
78                       tAVRC_MSG_PASS* /* p_msg */) {
79   inc_func_call_count(__func__);
80   return 0;
81 }
avrc_flush_cmd_q(uint8_t)82 void avrc_flush_cmd_q(uint8_t /* handle */) { inc_func_call_count(__func__); }
avrc_process_timeout(void *)83 void avrc_process_timeout(void* /* data */) { inc_func_call_count(__func__); }
avrc_send_next_vendor_cmd(uint8_t)84 void avrc_send_next_vendor_cmd(uint8_t /* handle */) {
85   inc_func_call_count(__func__);
86 }
avrc_start_cmd_timer(uint8_t,uint8_t,uint8_t)87 void avrc_start_cmd_timer(uint8_t /* handle */, uint8_t /* label */,
88                           uint8_t /* msg_mask */) {
89   inc_func_call_count(__func__);
90 }
91