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 <map>
25 #include <string>
26
27 // Original included files, if any
28 // NOTE: Since this is a mock file with mock definitions some number of
29 // include files may not be required. The include-what-you-use
30 // still applies, but crafting proper inclusion is out of scope
31 // for this effort. This compilation unit may compile as-is, or
32 // may need attention to prune the inclusion set.
33
34 // Mock include file to share data between tests and mock
35 #include "test/mock/mock_stack_btm_ble_privacy.h"
36
37 // Mocked compile conditionals, if any
38 #ifndef UNUSED_ATTR
39 #define UNUSED_ATTR
40 #endif
41
42 // Mocked internal structures, if any
43
44 namespace test {
45 namespace mock {
46 namespace stack_btm_ble_privacy {
47
48 // Function state capture and return values, if needed
49 struct btm_ble_clear_resolving_list_complete
50 btm_ble_clear_resolving_list_complete;
51 struct btm_ble_add_resolving_list_entry_complete
52 btm_ble_add_resolving_list_entry_complete;
53 struct btm_ble_remove_resolving_list_entry_complete
54 btm_ble_remove_resolving_list_entry_complete;
55 struct btm_ble_read_resolving_list_entry_complete
56 btm_ble_read_resolving_list_entry_complete;
57 struct btm_ble_remove_resolving_list_entry btm_ble_remove_resolving_list_entry;
58 struct btm_ble_clear_resolving_list btm_ble_clear_resolving_list;
59 struct btm_ble_read_resolving_list_entry btm_ble_read_resolving_list_entry;
60 struct btm_ble_resolving_list_load_dev btm_ble_resolving_list_load_dev;
61 struct btm_ble_resolving_list_remove_dev btm_ble_resolving_list_remove_dev;
62 struct btm_ble_resolving_list_init btm_ble_resolving_list_init;
63
64 } // namespace stack_btm_ble_privacy
65 } // namespace mock
66 } // namespace test
67
68 // Mocked functions, if any
btm_ble_clear_resolving_list_complete(uint8_t * p,uint16_t evt_len)69 void btm_ble_clear_resolving_list_complete(uint8_t* p, uint16_t evt_len) {
70 inc_func_call_count(__func__);
71 test::mock::stack_btm_ble_privacy::btm_ble_clear_resolving_list_complete(
72 p, evt_len);
73 }
btm_ble_add_resolving_list_entry_complete(uint8_t * p,uint16_t evt_len)74 void btm_ble_add_resolving_list_entry_complete(uint8_t* p, uint16_t evt_len) {
75 inc_func_call_count(__func__);
76 test::mock::stack_btm_ble_privacy::btm_ble_add_resolving_list_entry_complete(
77 p, evt_len);
78 }
btm_ble_remove_resolving_list_entry_complete(uint8_t * p,uint16_t evt_len)79 void btm_ble_remove_resolving_list_entry_complete(uint8_t* p,
80 uint16_t evt_len) {
81 inc_func_call_count(__func__);
82 test::mock::stack_btm_ble_privacy::
83 btm_ble_remove_resolving_list_entry_complete(p, evt_len);
84 }
btm_ble_read_resolving_list_entry_complete(const uint8_t * p,uint16_t evt_len)85 void btm_ble_read_resolving_list_entry_complete(const uint8_t* p,
86 uint16_t evt_len) {
87 inc_func_call_count(__func__);
88 test::mock::stack_btm_ble_privacy::btm_ble_read_resolving_list_entry_complete(
89 p, evt_len);
90 }
btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC * p_dev_rec)91 tBTM_STATUS btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) {
92 inc_func_call_count(__func__);
93 return test::mock::stack_btm_ble_privacy::btm_ble_remove_resolving_list_entry(
94 p_dev_rec);
95 }
btm_ble_clear_resolving_list(void)96 void btm_ble_clear_resolving_list(void) {
97 inc_func_call_count(__func__);
98 test::mock::stack_btm_ble_privacy::btm_ble_clear_resolving_list();
99 }
btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC * p_dev_rec)100 bool btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) {
101 inc_func_call_count(__func__);
102 return test::mock::stack_btm_ble_privacy::btm_ble_read_resolving_list_entry(
103 p_dev_rec);
104 }
btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC & p_dev_rec)105 void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& p_dev_rec) {
106 inc_func_call_count(__func__);
107 }
btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC * p_dev_rec)108 void btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC* p_dev_rec) {
109 inc_func_call_count(__func__);
110 test::mock::stack_btm_ble_privacy::btm_ble_resolving_list_remove_dev(
111 p_dev_rec);
112 }
btm_ble_resolving_list_init(uint8_t max_irk_list_sz)113 void btm_ble_resolving_list_init(uint8_t max_irk_list_sz) {
114 inc_func_call_count(__func__);
115 test::mock::stack_btm_ble_privacy::btm_ble_resolving_list_init(
116 max_irk_list_sz);
117 }
118
119 // END mockcify generation
120