1 /*
2 * Copyright 2022 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 * Generated mock file from original source file
18 * Functions generated:4
19 *
20 * mockcify.pl ver 0.5.0
21 */
22 // Mock include file to share data between tests and mock
23 #include "test/mock/mock_stack_avrc_apt.h"
24
25 #include <cstdint>
26
27 #include "test/common/mock_functions.h"
28
29 // Original usings
30
31 // Mocked internal structures, if any
32
33 namespace test {
34 namespace mock {
35 namespace stack_avrc_apt {
36
37 // Function state capture and return values, if needed
38 struct AVRC_SubCmd AVRC_SubCmd;
39 struct AVRC_UnitCmd AVRC_UnitCmd;
40 struct AVRC_VendorCmd AVRC_VendorCmd;
41 struct AVRC_VendorRsp AVRC_VendorRsp;
42
43 } // namespace stack_avrc_apt
44 } // namespace mock
45 } // namespace test
46
47 // Mocked function return values, if any
48 namespace test {
49 namespace mock {
50 namespace stack_avrc_apt {
51
52 uint16_t AVRC_SubCmd::return_value = 0;
53 uint16_t AVRC_UnitCmd::return_value = 0;
54 uint16_t AVRC_VendorCmd::return_value = 0;
55 uint16_t AVRC_VendorRsp::return_value = 0;
56
57 } // namespace stack_avrc_apt
58 } // namespace mock
59 } // namespace test
60
61 // Mocked functions, if any
AVRC_SubCmd(uint8_t handle,uint8_t label,uint8_t page)62 uint16_t AVRC_SubCmd(uint8_t handle, uint8_t label, uint8_t page) {
63 inc_func_call_count(__func__);
64 return test::mock::stack_avrc_apt::AVRC_SubCmd(handle, label, page);
65 }
AVRC_UnitCmd(uint8_t handle,uint8_t label)66 uint16_t AVRC_UnitCmd(uint8_t handle, uint8_t label) {
67 inc_func_call_count(__func__);
68 return test::mock::stack_avrc_apt::AVRC_UnitCmd(handle, label);
69 }
AVRC_VendorCmd(uint8_t handle,uint8_t label,tAVRC_MSG_VENDOR * p_msg)70 uint16_t AVRC_VendorCmd(uint8_t handle, uint8_t label,
71 tAVRC_MSG_VENDOR* p_msg) {
72 inc_func_call_count(__func__);
73 return test::mock::stack_avrc_apt::AVRC_VendorCmd(handle, label, p_msg);
74 }
AVRC_VendorRsp(uint8_t handle,uint8_t label,tAVRC_MSG_VENDOR * p_msg)75 uint16_t AVRC_VendorRsp(uint8_t handle, uint8_t label,
76 tAVRC_MSG_VENDOR* p_msg) {
77 inc_func_call_count(__func__);
78 return test::mock::stack_avrc_apt::AVRC_VendorRsp(handle, label, p_msg);
79 }
80 // Mocked functions complete
81 // END mockcify generation
82