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:6
20 *
21 * mockcify.pl ver 0.2
22 */
23
24 #include <cstdint>
25 #include <functional>
26 #include <map>
27 #include <string>
28
29 extern std::map<std::string, int> mock_function_count_map;
30
31 // Original included files, if any
32 // NOTE: Since this is a mock file with mock definitions some number of
33 // include files may not be required. The include-what-you-use
34 // still applies, but crafting proper inclusion is out of scope
35 // for this effort. This compilation unit may compile as-is, or
36 // may need attention to prune the inclusion set.
37 // Mock include file to share data between tests and mock
38 #include "test/mock/mock_stack_btm_ble_scanner_hci_interface.h"
39
40 // Mocked compile conditionals, if any
41 #ifndef UNUSED_ATTR
42 #define UNUSED_ATTR
43 #endif
44
45 // Mocked internal structures, if any
46
47 namespace test {
48 namespace mock {
49 namespace stack_btm_ble_scanner_hci_interface {
50
51 // Function state capture and return values, if needed
52 struct btm_ble_process_periodic_adv_sync_est_evt
53 btm_ble_process_periodic_adv_sync_est_evt;
54 struct btm_ble_process_periodic_adv_pkt btm_ble_process_periodic_adv_pkt;
55 struct btm_ble_process_periodic_adv_sync_lost_evt
56 btm_ble_process_periodic_adv_sync_lost_evt;
57
58 } // namespace stack_btm_ble_scanner_hci_interface
59 } // namespace mock
60 } // namespace test
61
62 // Mocked functions, if any
btm_ble_process_periodic_adv_sync_est_evt(uint8_t data_len,uint8_t * data)63 void btm_ble_process_periodic_adv_sync_est_evt(uint8_t data_len,
64 uint8_t* data) {
65 mock_function_count_map[__func__]++;
66 test::mock::stack_btm_ble_scanner_hci_interface::
67 btm_ble_process_periodic_adv_sync_est_evt(data_len, data);
68 }
btm_ble_process_periodic_adv_pkt(uint8_t data_len,uint8_t * data)69 void btm_ble_process_periodic_adv_pkt(uint8_t data_len, uint8_t* data) {
70 mock_function_count_map[__func__]++;
71 test::mock::stack_btm_ble_scanner_hci_interface::
72 btm_ble_process_periodic_adv_pkt(data_len, data);
73 }
btm_ble_process_periodic_adv_sync_lost_evt(uint8_t data_len,uint8_t * data)74 void btm_ble_process_periodic_adv_sync_lost_evt(uint8_t data_len,
75 uint8_t* data) {
76 mock_function_count_map[__func__]++;
77 test::mock::stack_btm_ble_scanner_hci_interface::
78 btm_ble_process_periodic_adv_sync_lost_evt(data_len, data);
79 }
80
81 // END mockcify generation
82