• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include <map>
27 #include <string>
28 
29 // Original included files, if any
30 // NOTE: Since this is a mock file with mock definitions some number of
31 //       include files may not be required.  The include-what-you-use
32 //       still applies, but crafting proper inclusion is out of scope
33 //       for this effort.  This compilation unit may compile as-is, or
34 //       may need attention to prune the inclusion set.
35 #include "stack/btm/security_device_record.h"
36 #include "test/common/mock_functions.h"
37 
38 // Mocked compile conditionals, if any
39 #ifndef UNUSED_ATTR
40 #define UNUSED_ATTR
41 #endif
42 
43 namespace test {
44 namespace mock {
45 namespace stack_btm_ble_privacy {
46 
47 // Shared state between mocked functions and tests
48 // Name: btm_ble_clear_resolving_list_complete
49 // Params: uint8_t* p, uint16_t evt_len
50 // Returns: void
51 struct btm_ble_clear_resolving_list_complete {
52   std::function<void(uint8_t* p, uint16_t evt_len)> body{
53       [](uint8_t* p, uint16_t evt_len) {}};
operatorbtm_ble_clear_resolving_list_complete54   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
55 };
56 extern struct btm_ble_clear_resolving_list_complete
57     btm_ble_clear_resolving_list_complete;
58 // Name: btm_ble_add_resolving_list_entry_complete
59 // Params: uint8_t* p, uint16_t evt_len
60 // Returns: void
61 struct btm_ble_add_resolving_list_entry_complete {
62   std::function<void(uint8_t* p, uint16_t evt_len)> body{
63       [](uint8_t* p, uint16_t evt_len) {}};
operatorbtm_ble_add_resolving_list_entry_complete64   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
65 };
66 extern struct btm_ble_add_resolving_list_entry_complete
67     btm_ble_add_resolving_list_entry_complete;
68 // Name: btm_ble_remove_resolving_list_entry_complete
69 // Params: uint8_t* p, uint16_t evt_len
70 // Returns: void
71 struct btm_ble_remove_resolving_list_entry_complete {
72   std::function<void(uint8_t* p, uint16_t evt_len)> body{
73       [](uint8_t* p, uint16_t evt_len) {}};
operatorbtm_ble_remove_resolving_list_entry_complete74   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
75 };
76 extern struct btm_ble_remove_resolving_list_entry_complete
77     btm_ble_remove_resolving_list_entry_complete;
78 // Name: btm_ble_read_resolving_list_entry_complete
79 // Params: uint8_t* p, uint16_t evt_len
80 // Returns: void
81 struct btm_ble_read_resolving_list_entry_complete {
82   std::function<void(const uint8_t* p, uint16_t evt_len)> body{
83       [](const uint8_t* p, uint16_t evt_len) {}};
operatorbtm_ble_read_resolving_list_entry_complete84   void operator()(const uint8_t* p, uint16_t evt_len) { body(p, evt_len); };
85 };
86 extern struct btm_ble_read_resolving_list_entry_complete
87     btm_ble_read_resolving_list_entry_complete;
88 // Name: btm_ble_remove_resolving_list_entry
89 // Params: tBTM_SEC_DEV_REC* p_dev_rec
90 // Returns: tBTM_STATUS
91 struct btm_ble_remove_resolving_list_entry {
92   std::function<tBTM_STATUS(tBTM_SEC_DEV_REC* p_dev_rec)> body{
93       [](tBTM_SEC_DEV_REC* p_dev_rec) { return 0; }};
operatorbtm_ble_remove_resolving_list_entry94   tBTM_STATUS operator()(tBTM_SEC_DEV_REC* p_dev_rec) {
95     return body(p_dev_rec);
96   };
97 };
98 extern struct btm_ble_remove_resolving_list_entry
99     btm_ble_remove_resolving_list_entry;
100 // Name: btm_ble_clear_resolving_list
101 // Params: void
102 // Returns: void
103 struct btm_ble_clear_resolving_list {
104   std::function<void(void)> body{[](void) {}};
operatorbtm_ble_clear_resolving_list105   void operator()(void) { body(); };
106 };
107 extern struct btm_ble_clear_resolving_list btm_ble_clear_resolving_list;
108 // Name: btm_ble_read_resolving_list_entry
109 // Params: tBTM_SEC_DEV_REC* p_dev_rec
110 // Returns: bool
111 struct btm_ble_read_resolving_list_entry {
112   std::function<bool(tBTM_SEC_DEV_REC* p_dev_rec)> body{
113       [](tBTM_SEC_DEV_REC* p_dev_rec) { return false; }};
operatorbtm_ble_read_resolving_list_entry114   bool operator()(tBTM_SEC_DEV_REC* p_dev_rec) { return body(p_dev_rec); };
115 };
116 extern struct btm_ble_read_resolving_list_entry
117     btm_ble_read_resolving_list_entry;
118 // Name: btm_ble_resolving_list_load_dev
119 // Params: tBTM_SEC_DEV_REC* p_dev_rec
120 // Returns: void
121 struct btm_ble_resolving_list_load_dev {
122   std::function<void(const tBTM_SEC_DEV_REC& p_dev_rec)> body{
123       [](const tBTM_SEC_DEV_REC& p_dev_rec) {}};
operatorbtm_ble_resolving_list_load_dev124   void operator()(const tBTM_SEC_DEV_REC& p_dev_rec) { body(p_dev_rec); };
125 };
126 extern struct btm_ble_resolving_list_load_dev btm_ble_resolving_list_load_dev;
127 // Name: btm_ble_resolving_list_remove_dev
128 // Params: tBTM_SEC_DEV_REC* p_dev_rec
129 // Returns: void
130 struct btm_ble_resolving_list_remove_dev {
131   std::function<void(tBTM_SEC_DEV_REC* p_dev_rec)> body{
132       [](tBTM_SEC_DEV_REC* p_dev_rec) {}};
operatorbtm_ble_resolving_list_remove_dev133   void operator()(tBTM_SEC_DEV_REC* p_dev_rec) { body(p_dev_rec); };
134 };
135 extern struct btm_ble_resolving_list_remove_dev
136     btm_ble_resolving_list_remove_dev;
137 // Name: btm_ble_enable_resolving_list_for_platform
138 // Params: uint8_t rl_mask
139 // Returns: void
140 struct btm_ble_enable_resolving_list_for_platform {
141   std::function<void(uint8_t rl_mask)> body{[](uint8_t rl_mask) {}};
operatorbtm_ble_enable_resolving_list_for_platform142   void operator()(uint8_t rl_mask) { body(rl_mask); };
143 };
144 extern struct btm_ble_enable_resolving_list_for_platform
145     btm_ble_enable_resolving_list_for_platform;
146 // Name: btm_ble_resolving_list_init
147 // Params: uint8_t max_irk_list_sz
148 // Returns: void
149 struct btm_ble_resolving_list_init {
150   std::function<void(uint8_t max_irk_list_sz)> body{
151       [](uint8_t max_irk_list_sz) {}};
operatorbtm_ble_resolving_list_init152   void operator()(uint8_t max_irk_list_sz) { body(max_irk_list_sz); };
153 };
154 extern struct btm_ble_resolving_list_init btm_ble_resolving_list_init;
155 
156 }  // namespace stack_btm_ble_privacy
157 }  // namespace mock
158 }  // namespace test
159 
160 // END mockcify generation
161