1 /*
2  * Copyright 2024 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:0
21  *
22  *  mockcify.pl ver 0.7.0
23  */
24 
25 #include <functional>
26 
27 #include "include/hardware/bluetooth_headset_interface.h"
28 #include "types/raw_address.h"
29 
30 // Original included files, if any
31 // NOTE: Since this is a mock file with mock definitions some number of
32 //       include files may not be required.  The include-what-you-use
33 //       still applies, but crafting proper inclusion is out of scope
34 //       for this effort.  This compilation unit may compile as-is, or
35 //       may need attention to prune from (or add to ) the inclusion set.
36 
37 // Original usings
38 
39 // Mocked compile conditionals, if any
40 
41 namespace test {
42 namespace mock {
43 namespace btif_hf {
44 
45 // Shared state between mocked functions and tests
46 // Name: GetInterface
47 // Params:
48 // Returns: bluetooth::headset::Interface*
49 
50 struct GetInterface {
51   std::function<bluetooth::headset::Interface*()> body{[]() { return nullptr; }};
operatorGetInterface52   bluetooth::headset::Interface* operator()() { return body(); }
53 };
54 extern struct GetInterface GetInterface;
55 
56 struct IsCallIdle {
57   std::function<bool()> body{[]() { return false; }};
operatorIsCallIdle58   bool operator()() { return body(); }
59 };
60 extern struct IsCallIdle IsCallIdle;
61 
62 struct IsDuringVoiceRecognition {
63   std::function<bool(RawAddress* bd_addr)> body{
64           [](RawAddress* bd_addr) { return bd_addr != nullptr; }};
operatorIsDuringVoiceRecognition65   bool operator()(RawAddress* bd_addr) { return body(bd_addr); }
66 };
67 extern struct IsDuringVoiceRecognition IsDuringVoiceRecognition;
68 
69 // Shared state between mocked functions and tests
70 }  // namespace btif_hf
71 }  // namespace mock
72 }  // namespace test
73 
74 // END mockcify generation
75