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:5
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
38 // Mock include file to share data between tests and mock
39 #include "test/mock/mock_stack_btm_ble_advertiser_hci_interface.h"
40
41 // Mocked compile conditionals, if any
42 #ifndef UNUSED_ATTR
43 #define UNUSED_ATTR
44 #endif
45
46 // Mocked internal structures, if any
47
48 namespace test {
49 namespace mock {
50 namespace stack_btm_ble_advertiser_hci_interface {
51
52 // Function state capture and return values, if needed
53 struct btm_le_on_advertising_set_terminated
54 btm_le_on_advertising_set_terminated;
55 struct btm_ble_advertiser_notify_terminated_legacy
56 btm_ble_advertiser_notify_terminated_legacy;
57
58 } // namespace stack_btm_ble_advertiser_hci_interface
59 } // namespace mock
60 } // namespace test
61
62 // Mocked functions, if any
btm_le_on_advertising_set_terminated(uint8_t * p,uint16_t length)63 void btm_le_on_advertising_set_terminated(uint8_t* p, uint16_t length) {
64 mock_function_count_map[__func__]++;
65 test::mock::stack_btm_ble_advertiser_hci_interface::
66 btm_le_on_advertising_set_terminated(p, length);
67 }
btm_ble_advertiser_notify_terminated_legacy(uint8_t status,uint16_t connection_handle)68 void btm_ble_advertiser_notify_terminated_legacy(uint8_t status,
69 uint16_t connection_handle) {
70 mock_function_count_map[__func__]++;
71 test::mock::stack_btm_ble_advertiser_hci_interface::
72 btm_ble_advertiser_notify_terminated_legacy(status, connection_handle);
73 }
74
75 // END mockcify generation
76