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