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 // Mock include file to share data between tests and mock
24 #include "test/mock/mock_stack_btm_ble_privacy.h"
25 
26 // Original included files, if any
27 
28 #include "test/common/mock_functions.h"
29 
30 // Mocked compile conditionals, if any
31 // Mocked internal structures, if any
32 
33 namespace test {
34 namespace mock {
35 namespace stack_btm_ble_privacy {
36 
37 // Function state capture and return values, if needed
38 struct btm_ble_clear_resolving_list_complete
39     btm_ble_clear_resolving_list_complete;
40 struct btm_ble_add_resolving_list_entry_complete
41     btm_ble_add_resolving_list_entry_complete;
42 struct btm_ble_remove_resolving_list_entry_complete
43     btm_ble_remove_resolving_list_entry_complete;
44 struct btm_ble_read_resolving_list_entry_complete
45     btm_ble_read_resolving_list_entry_complete;
46 struct btm_ble_remove_resolving_list_entry btm_ble_remove_resolving_list_entry;
47 struct btm_ble_clear_resolving_list btm_ble_clear_resolving_list;
48 struct btm_ble_read_resolving_list_entry btm_ble_read_resolving_list_entry;
49 struct btm_ble_resolving_list_load_dev btm_ble_resolving_list_load_dev;
50 struct btm_ble_resolving_list_remove_dev btm_ble_resolving_list_remove_dev;
51 struct btm_ble_resolving_list_init btm_ble_resolving_list_init;
52 
53 }  // namespace stack_btm_ble_privacy
54 }  // namespace mock
55 }  // namespace test
56 
57 // Mocked functions, if any
btm_ble_clear_resolving_list_complete(uint8_t * p,uint16_t evt_len)58 void btm_ble_clear_resolving_list_complete(uint8_t* p, uint16_t evt_len) {
59   inc_func_call_count(__func__);
60   test::mock::stack_btm_ble_privacy::btm_ble_clear_resolving_list_complete(
61       p, evt_len);
62 }
btm_ble_add_resolving_list_entry_complete(uint8_t * p,uint16_t evt_len)63 void btm_ble_add_resolving_list_entry_complete(uint8_t* p, uint16_t evt_len) {
64   inc_func_call_count(__func__);
65   test::mock::stack_btm_ble_privacy::btm_ble_add_resolving_list_entry_complete(
66       p, evt_len);
67 }
btm_ble_remove_resolving_list_entry_complete(uint8_t * p,uint16_t evt_len)68 void btm_ble_remove_resolving_list_entry_complete(uint8_t* p,
69                                                   uint16_t evt_len) {
70   inc_func_call_count(__func__);
71   test::mock::stack_btm_ble_privacy::
72       btm_ble_remove_resolving_list_entry_complete(p, evt_len);
73 }
btm_ble_read_resolving_list_entry_complete(const uint8_t * p,uint16_t evt_len)74 void btm_ble_read_resolving_list_entry_complete(const uint8_t* p,
75                                                 uint16_t evt_len) {
76   inc_func_call_count(__func__);
77   test::mock::stack_btm_ble_privacy::btm_ble_read_resolving_list_entry_complete(
78       p, evt_len);
79 }
btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC * p_dev_rec)80 tBTM_STATUS btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) {
81   inc_func_call_count(__func__);
82   return test::mock::stack_btm_ble_privacy::btm_ble_remove_resolving_list_entry(
83       p_dev_rec);
84 }
btm_ble_clear_resolving_list(void)85 void btm_ble_clear_resolving_list(void) {
86   inc_func_call_count(__func__);
87   test::mock::stack_btm_ble_privacy::btm_ble_clear_resolving_list();
88 }
btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC * p_dev_rec)89 bool btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) {
90   inc_func_call_count(__func__);
91   return test::mock::stack_btm_ble_privacy::btm_ble_read_resolving_list_entry(
92       p_dev_rec);
93 }
btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC &)94 void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& /* p_dev_rec */) {
95   inc_func_call_count(__func__);
96 }
btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC * p_dev_rec)97 void btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC* p_dev_rec) {
98   inc_func_call_count(__func__);
99   test::mock::stack_btm_ble_privacy::btm_ble_resolving_list_remove_dev(
100       p_dev_rec);
101 }
btm_ble_resolving_list_init(uint8_t max_irk_list_sz)102 void btm_ble_resolving_list_init(uint8_t max_irk_list_sz) {
103   inc_func_call_count(__func__);
104   test::mock::stack_btm_ble_privacy::btm_ble_resolving_list_init(
105       max_irk_list_sz);
106 }
107 
108 // END mockcify generation
109