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:11
20  *
21  *  mockcify.pl ver 0.2
22  */
23 
24 #include <functional>
25 
26 // Original included files, if any
27 #include "stack/include/btm_ble_api_types.h"
28 #include "types/raw_address.h"
29 
30 // Mocked compile conditionals, if any
31 namespace test {
32 namespace mock {
33 namespace stack_btm_ble_bgconn {
34 
35 // Name: btm_update_scanner_filter_policy
36 // Params: tBTM_BLE_SFP scan_policy
37 // Returns: void
38 struct btm_update_scanner_filter_policy {
39   std::function<void(tBTM_BLE_SFP scan_policy)> body{
40       [](tBTM_BLE_SFP /* scan_policy */) {}};
operatorbtm_update_scanner_filter_policy41   void operator()(tBTM_BLE_SFP scan_policy) { body(scan_policy); };
42 };
43 extern struct btm_update_scanner_filter_policy btm_update_scanner_filter_policy;
44 // Name: BTM_SetLeConnectionModeToFast
45 // Params:
46 // Returns: bool
47 struct BTM_SetLeConnectionModeToFast {
48   std::function<bool()> body{[]() { return false; }};
operatorBTM_SetLeConnectionModeToFast49   bool operator()() { return body(); };
50 };
51 extern struct BTM_SetLeConnectionModeToFast BTM_SetLeConnectionModeToFast;
52 // Name: BTM_SetLeConnectionModeToSlow
53 // Params:
54 // Returns: void
55 struct BTM_SetLeConnectionModeToSlow {
56   std::function<void()> body{[]() {}};
operatorBTM_SetLeConnectionModeToSlow57   void operator()() { body(); };
58 };
59 extern struct BTM_SetLeConnectionModeToSlow BTM_SetLeConnectionModeToSlow;
60 // Name: BTM_AcceptlistAdd
61 // Params: const RawAddress& address
62 // Returns: bool
63 struct BTM_AcceptlistAdd {
64   std::function<bool(const RawAddress& address)> body{
65       [](const RawAddress& /* address */) { return false; }};
operatorBTM_AcceptlistAdd66   bool operator()(const RawAddress& address) { return body(address); };
67 };
68 extern struct BTM_AcceptlistAdd BTM_AcceptlistAdd;
69 // Name: BTM_AcceptlistAddDirect
70 // Params: const RawAddress& address, bool is_direct
71 // Returns: bool
72 struct BTM_AcceptlistAddDirect {
73   std::function<bool(const RawAddress& address, bool is_direct)> body{
74       [](const RawAddress& /* address */, bool /* is_direct */) {
75         return false;
76       }};
operatorBTM_AcceptlistAddDirect77   bool operator()(const RawAddress& address, bool is_direct) {
78     return body(address, is_direct);
79   };
80 };
81 extern struct BTM_AcceptlistAddDirect BTM_AcceptlistAddDirect;
82 // Name: BTM_AcceptlistRemove
83 // Params: const RawAddress& address
84 // Returns: void
85 struct BTM_AcceptlistRemove {
86   std::function<void(const RawAddress& address)> body{
87       [](const RawAddress& /* address */) {}};
operatorBTM_AcceptlistRemove88   void operator()(const RawAddress& address) { body(address); };
89 };
90 extern struct BTM_AcceptlistRemove BTM_AcceptlistRemove;
91 // Name: BTM_AcceptlistClear
92 // Params:
93 // Returns: void
94 struct BTM_AcceptlistClear {
95   std::function<void()> body{[]() {}};
operatorBTM_AcceptlistClear96   void operator()() { body(); };
97 };
98 extern struct BTM_AcceptlistClear BTM_AcceptlistClear;
99 
100 }  // namespace stack_btm_ble_bgconn
101 }  // namespace mock
102 }  // namespace test
103 
104 // END mockcify generation
105