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:13
20  *
21  *  mockcify.pl ver 0.2
22  */
23 
24 #include <cstdint>
25 #include <functional>
26 
27 // Original included files, if any
28 #include "stack/btm/security_device_record.h"
29 
30 // Mocked compile conditionals, if any
31 namespace test {
32 namespace mock {
33 namespace stack_btm_ble_privacy {
34 
35 // Shared state between mocked functions and tests
36 // Name: btm_ble_clear_resolving_list_complete
37 // Params: uint8_t* p, uint16_t evt_len
38 // Returns: void
39 struct btm_ble_clear_resolving_list_complete {
40   std::function<void(uint8_t* p, uint16_t evt_len)> body{
41       [](uint8_t* /* p */, uint16_t /* evt_len */) {}};
operatorbtm_ble_clear_resolving_list_complete42   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
43 };
44 extern struct btm_ble_clear_resolving_list_complete
45     btm_ble_clear_resolving_list_complete;
46 // Name: btm_ble_add_resolving_list_entry_complete
47 // Params: uint8_t* p, uint16_t evt_len
48 // Returns: void
49 struct btm_ble_add_resolving_list_entry_complete {
50   std::function<void(uint8_t* p, uint16_t evt_len)> body{
51       [](uint8_t* /* p */, uint16_t /* evt_len */) {}};
operatorbtm_ble_add_resolving_list_entry_complete52   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
53 };
54 extern struct btm_ble_add_resolving_list_entry_complete
55     btm_ble_add_resolving_list_entry_complete;
56 // Name: btm_ble_remove_resolving_list_entry_complete
57 // Params: uint8_t* p, uint16_t evt_len
58 // Returns: void
59 struct btm_ble_remove_resolving_list_entry_complete {
60   std::function<void(uint8_t* p, uint16_t evt_len)> body{
61       [](uint8_t* /* p */, uint16_t /* evt_len */) {}};
operatorbtm_ble_remove_resolving_list_entry_complete62   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
63 };
64 extern struct btm_ble_remove_resolving_list_entry_complete
65     btm_ble_remove_resolving_list_entry_complete;
66 // Name: btm_ble_read_resolving_list_entry_complete
67 // Params: uint8_t* p, uint16_t evt_len
68 // Returns: void
69 struct btm_ble_read_resolving_list_entry_complete {
70   std::function<void(const uint8_t* p, uint16_t evt_len)> body{
71       [](const uint8_t* /* p */, uint16_t /* evt_len */) {}};
operatorbtm_ble_read_resolving_list_entry_complete72   void operator()(const uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
73 };
74 extern struct btm_ble_read_resolving_list_entry_complete
75     btm_ble_read_resolving_list_entry_complete;
76 // Name: btm_ble_remove_resolving_list_entry
77 // Params: tBTM_SEC_DEV_REC* p_dev_rec
78 // Returns: tBTM_STATUS
79 struct btm_ble_remove_resolving_list_entry {
80   std::function<tBTM_STATUS(tBTM_SEC_DEV_REC* p_dev_rec)> body{
81       [](tBTM_SEC_DEV_REC* /* p_dev_rec */) { return 0; }};
operatorbtm_ble_remove_resolving_list_entry82   tBTM_STATUS operator()(tBTM_SEC_DEV_REC* p_dev_rec) {
83     return body(p_dev_rec);
84   };
85 };
86 extern struct btm_ble_remove_resolving_list_entry
87     btm_ble_remove_resolving_list_entry;
88 // Name: btm_ble_clear_resolving_list
89 // Params: void
90 // Returns: void
91 struct btm_ble_clear_resolving_list {
92   std::function<void(void)> body{[](void) {}};
operatorbtm_ble_clear_resolving_list93   void operator()(void) { body(); };
94 };
95 extern struct btm_ble_clear_resolving_list btm_ble_clear_resolving_list;
96 // Name: btm_ble_read_resolving_list_entry
97 // Params: tBTM_SEC_DEV_REC* p_dev_rec
98 // Returns: bool
99 struct btm_ble_read_resolving_list_entry {
100   std::function<bool(tBTM_SEC_DEV_REC* p_dev_rec)> body{
101       [](tBTM_SEC_DEV_REC* /* p_dev_rec */) { return false; }};
operatorbtm_ble_read_resolving_list_entry102   bool operator()(tBTM_SEC_DEV_REC* p_dev_rec) { return body(p_dev_rec); };
103 };
104 extern struct btm_ble_read_resolving_list_entry
105     btm_ble_read_resolving_list_entry;
106 // Name: btm_ble_resolving_list_load_dev
107 // Params: tBTM_SEC_DEV_REC* p_dev_rec
108 // Returns: void
109 struct btm_ble_resolving_list_load_dev {
110   std::function<void(const tBTM_SEC_DEV_REC& p_dev_rec)> body{
111       [](const tBTM_SEC_DEV_REC& /* p_dev_rec */) {}};
operatorbtm_ble_resolving_list_load_dev112   void operator()(const tBTM_SEC_DEV_REC& p_dev_rec) { body(p_dev_rec); };
113 };
114 extern struct btm_ble_resolving_list_load_dev btm_ble_resolving_list_load_dev;
115 // Name: btm_ble_resolving_list_remove_dev
116 // Params: tBTM_SEC_DEV_REC* p_dev_rec
117 // Returns: void
118 struct btm_ble_resolving_list_remove_dev {
119   std::function<void(tBTM_SEC_DEV_REC* p_dev_rec)> body{
120       [](tBTM_SEC_DEV_REC* /* p_dev_rec */) {}};
operatorbtm_ble_resolving_list_remove_dev121   void operator()(tBTM_SEC_DEV_REC* p_dev_rec) { body(p_dev_rec); };
122 };
123 extern struct btm_ble_resolving_list_remove_dev
124     btm_ble_resolving_list_remove_dev;
125 // Name: btm_ble_enable_resolving_list_for_platform
126 // Params: uint8_t rl_mask
127 // Returns: void
128 struct btm_ble_enable_resolving_list_for_platform {
129   std::function<void(uint8_t rl_mask)> body{[](uint8_t /* rl_mask */) {}};
operatorbtm_ble_enable_resolving_list_for_platform130   void operator()(uint8_t rl_mask) { body(rl_mask); };
131 };
132 extern struct btm_ble_enable_resolving_list_for_platform
133     btm_ble_enable_resolving_list_for_platform;
134 // Name: btm_ble_resolving_list_init
135 // Params: uint8_t max_irk_list_sz
136 // Returns: void
137 struct btm_ble_resolving_list_init {
138   std::function<void(uint8_t max_irk_list_sz)> body{
139       [](uint8_t /* max_irk_list_sz */) {}};
operatorbtm_ble_resolving_list_init140   void operator()(uint8_t max_irk_list_sz) { body(max_irk_list_sz); };
141 };
142 extern struct btm_ble_resolving_list_init btm_ble_resolving_list_init;
143 
144 }  // namespace stack_btm_ble_privacy
145 }  // namespace mock
146 }  // namespace test
147 
148 // END mockcify generation
149