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:5
20  */
21 
22 #include <cstdint>
23 #include <string>
24 
25 #include "main/shim/acl_api.h"
26 #include "stack/include/bt_hdr.h"
27 #include "stack/include/bt_octets.h"
28 #include "test/common/mock_functions.h"
29 #include "types/ble_address_with_type.h"
30 #include "types/raw_address.h"
31 
ACL_CreateClassicConnection(const RawAddress &)32 void bluetooth::shim::ACL_CreateClassicConnection(const RawAddress& /* raw_address */) {
33   inc_func_call_count(__func__);
34 }
ACL_CancelClassicConnection(const RawAddress &)35 void bluetooth::shim::ACL_CancelClassicConnection(const RawAddress& /* raw_address */) {
36   inc_func_call_count(__func__);
37 }
ACL_AcceptLeConnectionFrom(const tBLE_BD_ADDR &,bool)38 bool bluetooth::shim::ACL_AcceptLeConnectionFrom(const tBLE_BD_ADDR& /* legacy_address_with_type */,
39                                                  bool /* is_direct */) {
40   inc_func_call_count(__func__);
41   return true;
42 }
ACL_IgnoreLeConnectionFrom(const tBLE_BD_ADDR &)43 void bluetooth::shim::ACL_IgnoreLeConnectionFrom(
44         const tBLE_BD_ADDR& /* legacy_address_with_type */) {
45   inc_func_call_count(__func__);
46 }
ACL_ConfigureLePrivacy(bool)47 void bluetooth::shim::ACL_ConfigureLePrivacy(bool /* is_le_privacy_enabled */) {
48   inc_func_call_count(__func__);
49 }
ACL_WriteData(uint16_t,BT_HDR *)50 void bluetooth::shim::ACL_WriteData(uint16_t /* handle */, BT_HDR* /* p_buf */) {
51   inc_func_call_count(__func__);
52 }
ACL_Flush(uint16_t)53 void bluetooth::shim::ACL_Flush(uint16_t /* handle */) { inc_func_call_count(__func__); }
ACL_Disconnect(uint16_t,bool,tHCI_STATUS,std::string)54 void bluetooth::shim::ACL_Disconnect(uint16_t /* handle */, bool /* is_classic */,
55                                      tHCI_STATUS /* reason */, std::string /* comment */) {
56   inc_func_call_count(__func__);
57 }
ACL_IgnoreAllLeConnections()58 void bluetooth::shim::ACL_IgnoreAllLeConnections() { inc_func_call_count(__func__); }
ACL_ReadConnectionAddress(uint16_t,RawAddress &,tBLE_ADDR_TYPE *,bool)59 void bluetooth::shim::ACL_ReadConnectionAddress(uint16_t /* handle */, RawAddress& /* conn_addr */,
60                                                 tBLE_ADDR_TYPE* /* p_addr_type */,
61                                                 bool /* ota_address */) {
62   inc_func_call_count(__func__);
63 }
ACL_ReadPeerConnectionAddress(uint16_t,RawAddress &,tBLE_ADDR_TYPE *,bool)64 void bluetooth::shim::ACL_ReadPeerConnectionAddress(uint16_t /* handle */,
65                                                     RawAddress& /* conn_addr */,
66                                                     tBLE_ADDR_TYPE* /* p_addr_type */,
67                                                     bool /* ota_address */) {
68   inc_func_call_count(__func__);
69 }
ACL_GetAdvertisingSetConnectedTo(const RawAddress &)70 std::optional<uint8_t> bluetooth::shim::ACL_GetAdvertisingSetConnectedTo(
71         const RawAddress& /* addr */) {
72   inc_func_call_count(__func__);
73   return std::nullopt;
74 }
ACL_AddToAddressResolution(const tBLE_BD_ADDR &,const Octet16 &,const Octet16 &)75 void bluetooth::shim::ACL_AddToAddressResolution(const tBLE_BD_ADDR& /* legacy_address_with_type */,
76                                                  const Octet16& /* peer_irk */,
77                                                  const Octet16& /* local_irk */) {
78   inc_func_call_count(__func__);
79 }
80 
ACL_RemoveFromAddressResolution(const tBLE_BD_ADDR &)81 void bluetooth::shim::ACL_RemoveFromAddressResolution(
82         const tBLE_BD_ADDR& /* legacy_address_with_type */) {
83   inc_func_call_count(__func__);
84 }
ACL_ClearAddressResolution()85 void bluetooth::shim::ACL_ClearAddressResolution() { inc_func_call_count(__func__); }
ACL_LeSetDefaultSubrate(uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)86 void bluetooth::shim::ACL_LeSetDefaultSubrate(uint16_t /* subrate_min */,
87                                               uint16_t /* subrate_max */,
88                                               uint16_t /* max_latency */, uint16_t /* cont_num */,
89                                               uint16_t /* sup_tout */) {
90   inc_func_call_count(__func__);
91 }
ACL_LeSubrateRequest(uint16_t,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)92 void bluetooth::shim::ACL_LeSubrateRequest(uint16_t /* hci_handle */, uint16_t /* subrate_min */,
93                                            uint16_t /* subrate_max */, uint16_t /* max_latency */,
94                                            uint16_t /* cont_num */, uint16_t /* sup_tout */) {
95   inc_func_call_count(__func__);
96 }
97 
ACL_Shutdown()98 void bluetooth::shim::ACL_Shutdown() { inc_func_call_count(__func__); }
99 
ACL_SendConnectionParameterUpdateRequest(uint16_t,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)100 void bluetooth::shim::ACL_SendConnectionParameterUpdateRequest(
101         uint16_t /* hci_handle */, uint16_t /* conn_int_min */, uint16_t /* conn_int_max */,
102         uint16_t /* conn_latency */, uint16_t /* conn_timeout */, uint16_t /* min_ce_len */,
103         uint16_t /* max_ce_len */) {
104   inc_func_call_count(__func__);
105 }
ACL_CancelRemoteNameRequest(const RawAddress &)106 void bluetooth::shim::ACL_CancelRemoteNameRequest(const RawAddress& /* addr */) {
107   inc_func_call_count(__func__);
108 }
ACL_RemoteNameRequest(const RawAddress &,uint8_t,uint8_t,uint16_t)109 void bluetooth::shim::ACL_RemoteNameRequest(const RawAddress& /* addr */,
110                                             uint8_t /* page_scan_rep_mode */,
111                                             uint8_t /* page_scan_mode */,
112                                             uint16_t /* clock_offset */) {
113   inc_func_call_count(__func__);
114 }
115