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 #pragma once
17 
18 /*
19  * Generated mock file from original source file
20  *   Functions generated:4
21  *
22  *  mockcify.pl ver 0.5.0
23  */
24 
25 #include <cstdint>
26 #include <functional>
27 
28 // Original included files, if any
29 #include "stack/include/avrc_defs.h"
30 
31 // Original usings
32 
33 // Mocked compile conditionals, if any
34 
35 namespace test {
36 namespace mock {
37 namespace stack_avrc_apt {
38 
39 // Shared state between mocked functions and tests
40 // Name: AVRC_SubCmd
41 // Params: uint8_t handle, uint8_t label, uint8_t page
42 // Return: uint16_t
43 struct AVRC_SubCmd {
44   static uint16_t return_value;
45   std::function<uint16_t(uint8_t handle, uint8_t label, uint8_t page)> body{
46       [](uint8_t /* handle */, uint8_t /* label */, uint8_t /* page */) {
47         return return_value;
48       }};
operatorAVRC_SubCmd49   uint16_t operator()(uint8_t handle, uint8_t label, uint8_t page) {
50     return body(handle, label, page);
51   };
52 };
53 extern struct AVRC_SubCmd AVRC_SubCmd;
54 
55 // Name: AVRC_UnitCmd
56 // Params: uint8_t handle, uint8_t label
57 // Return: uint16_t
58 struct AVRC_UnitCmd {
59   static uint16_t return_value;
60   std::function<uint16_t(uint8_t handle, uint8_t label)> body{
61       [](uint8_t /* handle */, uint8_t /* label */) { return return_value; }};
operatorAVRC_UnitCmd62   uint16_t operator()(uint8_t handle, uint8_t label) {
63     return body(handle, label);
64   };
65 };
66 extern struct AVRC_UnitCmd AVRC_UnitCmd;
67 
68 // Name: AVRC_VendorCmd
69 // Params: uint8_t handle, uint8_t label, tAVRC_MSG_VENDOR* p_msg
70 // Return: uint16_t
71 struct AVRC_VendorCmd {
72   static uint16_t return_value;
73   std::function<uint16_t(uint8_t handle, uint8_t label,
74                          tAVRC_MSG_VENDOR* p_msg)>
75       body{[](uint8_t /* handle */, uint8_t /* label */,
76               tAVRC_MSG_VENDOR* /* p_msg */) { return return_value; }};
operatorAVRC_VendorCmd77   uint16_t operator()(uint8_t handle, uint8_t label, tAVRC_MSG_VENDOR* p_msg) {
78     return body(handle, label, p_msg);
79   };
80 };
81 extern struct AVRC_VendorCmd AVRC_VendorCmd;
82 
83 // Name: AVRC_VendorRsp
84 // Params: uint8_t handle, uint8_t label, tAVRC_MSG_VENDOR* p_msg
85 // Return: uint16_t
86 struct AVRC_VendorRsp {
87   static uint16_t return_value;
88   std::function<uint16_t(uint8_t handle, uint8_t label,
89                          tAVRC_MSG_VENDOR* p_msg)>
90       body{[](uint8_t /* handle */, uint8_t /* label */,
91               tAVRC_MSG_VENDOR* /* p_msg */) { return return_value; }};
operatorAVRC_VendorRsp92   uint16_t operator()(uint8_t handle, uint8_t label, tAVRC_MSG_VENDOR* p_msg) {
93     return body(handle, label, p_msg);
94   };
95 };
96 extern struct AVRC_VendorRsp AVRC_VendorRsp;
97 
98 }  // namespace stack_avrc_apt
99 }  // namespace mock
100 }  // namespace test
101 
102 // END mockcify generation
103