1 /*
2  * Copyright 2020 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 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <cstdint>
28 #include "osi/include/log.h"
29 #include "stack/btm/btm_ble_int.h"
30 #include "stack/btm/btm_dev.h"
31 #include "stack/btm/btm_sec.h"
32 #include "stack/gatt/connection_manager.h"
33 #include "stack/include/acl_api.h"
34 #include "stack/include/bt_types.h"
35 #include "stack/include/hcidefs.h"
36 #include "stack/include/l2cap_hci_link_interface.h"
37 #include "types/ble_address_with_type.h"
38 #include "types/hci_role.h"
39 
40 #ifndef UNUSED_ATTR
41 #define UNUSED_ATTR
42 #endif
43 
acl_ble_connection_complete(const tBLE_BD_ADDR & address_with_type,uint16_t handle,tHCI_ROLE role,bool match,uint16_t conn_interval,uint16_t conn_latency,uint16_t conn_timeout)44 void acl_ble_connection_complete(const tBLE_BD_ADDR& address_with_type,
45                                  uint16_t handle, tHCI_ROLE role, bool match,
46                                  uint16_t conn_interval, uint16_t conn_latency,
47                                  uint16_t conn_timeout) {
48   mock_function_count_map[__func__]++;
49 }
acl_ble_connection_fail(const tBLE_BD_ADDR & address_with_type,uint16_t handle,bool enhanced,tHCI_STATUS status)50 void acl_ble_connection_fail(const tBLE_BD_ADDR& address_with_type,
51                              uint16_t handle, bool enhanced,
52                              tHCI_STATUS status) {
53   mock_function_count_map[__func__]++;
54 }
acl_ble_enhanced_connection_complete(const tBLE_BD_ADDR & address_with_type,uint16_t handle,tHCI_ROLE role,bool match,uint16_t conn_interval,uint16_t conn_latency,uint16_t conn_timeout,const RawAddress & local_rpa,const RawAddress & peer_rpa,uint8_t peer_addr_type)55 void acl_ble_enhanced_connection_complete(
56     const tBLE_BD_ADDR& address_with_type, uint16_t handle, tHCI_ROLE role,
57     bool match, uint16_t conn_interval, uint16_t conn_latency,
58     uint16_t conn_timeout, const RawAddress& local_rpa,
59     const RawAddress& peer_rpa, uint8_t peer_addr_type) {
60   mock_function_count_map[__func__]++;
61 }
acl_ble_enhanced_connection_complete_from_shim(const tBLE_BD_ADDR & address_with_type,uint16_t handle,tHCI_ROLE role,uint16_t conn_interval,uint16_t conn_latency,uint16_t conn_timeout,const RawAddress & local_rpa,const RawAddress & peer_rpa,uint8_t peer_addr_type)62 void acl_ble_enhanced_connection_complete_from_shim(
63     const tBLE_BD_ADDR& address_with_type, uint16_t handle, tHCI_ROLE role,
64     uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout,
65     const RawAddress& local_rpa, const RawAddress& peer_rpa,
66     uint8_t peer_addr_type) {
67   mock_function_count_map[__func__]++;
68 }
69 void gatt_notify_conn_update(const RawAddress& remote, uint16_t interval,
70                              uint16_t latency, uint16_t timeout,
71                              tHCI_STATUS status);
acl_ble_update_event_received(tHCI_STATUS status,uint16_t handle,uint16_t interval,uint16_t latency,uint16_t timeout)72 void acl_ble_update_event_received(tHCI_STATUS status, uint16_t handle,
73                                    uint16_t interval, uint16_t latency,
74                                    uint16_t timeout) {
75   mock_function_count_map[__func__]++;
76 }
77