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