• 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 
27 // Original included files, if any
28 #include "stack/btm/security_device_record.h"
29 #include "stack/include/btm_status.h"
30 
31 // Mocked compile conditionals, if any
32 namespace test {
33 namespace mock {
34 namespace stack_btm_ble_privacy {
35 
36 // Shared state between mocked functions and tests
37 // Name: btm_ble_clear_resolving_list_complete
38 // Params: uint8_t* p, uint16_t evt_len
39 // Returns: void
40 struct btm_ble_clear_resolving_list_complete {
41   std::function<void(uint8_t* p, uint16_t evt_len)> body{
42           [](uint8_t* /* p */, uint16_t /* evt_len */) {}};
operatorbtm_ble_clear_resolving_list_complete43   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); }
44 };
45 extern struct btm_ble_clear_resolving_list_complete 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 btm_ble_add_resolving_list_entry_complete;
55 // Name: btm_ble_remove_resolving_list_entry_complete
56 // Params: uint8_t* p, uint16_t evt_len
57 // Returns: void
58 struct btm_ble_remove_resolving_list_entry_complete {
59   std::function<void(uint8_t* p, uint16_t evt_len)> body{
60           [](uint8_t* /* p */, uint16_t /* evt_len */) {}};
operatorbtm_ble_remove_resolving_list_entry_complete61   void operator()(uint8_t* p, uint16_t evt_len) { body(p, evt_len); }
62 };
63 extern struct btm_ble_remove_resolving_list_entry_complete
64         btm_ble_remove_resolving_list_entry_complete;
65 // Name: btm_ble_read_resolving_list_entry_complete
66 // Params: uint8_t* p, uint16_t evt_len
67 // Returns: void
68 struct btm_ble_read_resolving_list_entry_complete {
69   std::function<void(const uint8_t* p, uint16_t evt_len)> body{
70           [](const uint8_t* /* p */, uint16_t /* evt_len */) {}};
operatorbtm_ble_read_resolving_list_entry_complete71   void operator()(const uint8_t* p, uint16_t evt_len) { body(p, evt_len); }
72 };
73 extern struct btm_ble_read_resolving_list_entry_complete btm_ble_read_resolving_list_entry_complete;
74 // Name: btm_ble_read_resolving_list_entry
75 // Params: tBTM_SEC_DEV_REC* p_dev_rec
76 // Returns: bool
77 struct btm_ble_read_resolving_list_entry {
78   std::function<bool(tBTM_SEC_DEV_REC* p_dev_rec)> body{
79           [](tBTM_SEC_DEV_REC* /* p_dev_rec */) { return false; }};
operatorbtm_ble_read_resolving_list_entry80   bool operator()(tBTM_SEC_DEV_REC* p_dev_rec) { return body(p_dev_rec); }
81 };
82 extern struct btm_ble_read_resolving_list_entry btm_ble_read_resolving_list_entry;
83 // Name: btm_ble_resolving_list_load_dev
84 // Params: tBTM_SEC_DEV_REC* p_dev_rec
85 // Returns: void
86 struct btm_ble_resolving_list_load_dev {
87   std::function<void(const tBTM_SEC_DEV_REC& p_dev_rec)> body{
88           [](const tBTM_SEC_DEV_REC& /* p_dev_rec */) {}};
operatorbtm_ble_resolving_list_load_dev89   void operator()(const tBTM_SEC_DEV_REC& p_dev_rec) { body(p_dev_rec); }
90 };
91 extern struct btm_ble_resolving_list_load_dev btm_ble_resolving_list_load_dev;
92 // Name: btm_ble_resolving_list_remove_dev
93 // Params: tBTM_SEC_DEV_REC* p_dev_rec
94 // Returns: void
95 struct btm_ble_resolving_list_remove_dev {
96   std::function<void(tBTM_SEC_DEV_REC* p_dev_rec)> body{[](tBTM_SEC_DEV_REC* /* p_dev_rec */) {}};
operatorbtm_ble_resolving_list_remove_dev97   void operator()(tBTM_SEC_DEV_REC* p_dev_rec) { body(p_dev_rec); }
98 };
99 extern struct btm_ble_resolving_list_remove_dev btm_ble_resolving_list_remove_dev;
100 // Name: btm_ble_enable_resolving_list_for_platform
101 // Params: uint8_t rl_mask
102 // Returns: void
103 struct btm_ble_enable_resolving_list_for_platform {
104   std::function<void(uint8_t rl_mask)> body{[](uint8_t /* rl_mask */) {}};
operatorbtm_ble_enable_resolving_list_for_platform105   void operator()(uint8_t rl_mask) { body(rl_mask); }
106 };
107 extern struct btm_ble_enable_resolving_list_for_platform btm_ble_enable_resolving_list_for_platform;
108 // Name: btm_ble_resolving_list_init
109 // Params: uint8_t max_irk_list_sz
110 // Returns: void
111 struct btm_ble_resolving_list_init {
112   std::function<void(uint8_t max_irk_list_sz)> body{[](uint8_t /* max_irk_list_sz */) {}};
operatorbtm_ble_resolving_list_init113   void operator()(uint8_t max_irk_list_sz) { body(max_irk_list_sz); }
114 };
115 extern struct btm_ble_resolving_list_init btm_ble_resolving_list_init;
116 
117 }  // namespace stack_btm_ble_privacy
118 }  // namespace mock
119 }  // namespace test
120 
121 // END mockcify generation
122