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 #include "stack/btm/ble_scanner_hci_interface.h"
38 
39 // Mocked compile conditionals, if any
40 #ifndef UNUSED_ATTR
41 #define UNUSED_ATTR
42 #endif
43 
44 namespace test {
45 namespace mock {
46 namespace stack_btm_ble_scanner_hci_interface {
47 
48 // Name: btm_ble_process_periodic_adv_sync_est_evt
49 // Params: uint8_t data_len, uint8_t* data
50 // Returns: void
51 struct btm_ble_process_periodic_adv_sync_est_evt {
52   std::function<void(uint8_t data_len, uint8_t* data)> body{
53       [](uint8_t data_len, uint8_t* data) {}};
operatorbtm_ble_process_periodic_adv_sync_est_evt54   void operator()(uint8_t data_len, uint8_t* data) { body(data_len, data); };
55 };
56 extern struct btm_ble_process_periodic_adv_sync_est_evt
57     btm_ble_process_periodic_adv_sync_est_evt;
58 // Name: btm_ble_process_periodic_adv_pkt
59 // Params: uint8_t data_len, uint8_t* data
60 // Returns: void
61 struct btm_ble_process_periodic_adv_pkt {
62   std::function<void(uint8_t data_len, uint8_t* data)> body{
63       [](uint8_t data_len, uint8_t* data) {}};
operatorbtm_ble_process_periodic_adv_pkt64   void operator()(uint8_t data_len, uint8_t* data) { body(data_len, data); };
65 };
66 extern struct btm_ble_process_periodic_adv_pkt btm_ble_process_periodic_adv_pkt;
67 // Name: btm_ble_process_periodic_adv_sync_lost_evt
68 // Params: uint8_t data_len, uint8_t* data
69 // Returns: void
70 struct btm_ble_process_periodic_adv_sync_lost_evt {
71   std::function<void(uint8_t data_len, uint8_t* data)> body{
72       [](uint8_t data_len, uint8_t* data) {}};
operatorbtm_ble_process_periodic_adv_sync_lost_evt73   void operator()(uint8_t data_len, uint8_t* data) { body(data_len, data); };
74 };
75 extern struct btm_ble_process_periodic_adv_sync_lost_evt
76     btm_ble_process_periodic_adv_sync_lost_evt;
77 
78 }  // namespace stack_btm_ble_scanner_hci_interface
79 }  // namespace mock
80 }  // namespace test
81 
82 // END mockcify generation
83