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(
33 const RawAddress& /* raw_address */) {
34 inc_func_call_count(__func__);
35 }
ACL_CancelClassicConnection(const RawAddress &)36 void bluetooth::shim::ACL_CancelClassicConnection(
37 const RawAddress& /* raw_address */) {
38 inc_func_call_count(__func__);
39 }
ACL_AcceptLeConnectionFrom(const tBLE_BD_ADDR &,bool)40 bool bluetooth::shim::ACL_AcceptLeConnectionFrom(
41 const tBLE_BD_ADDR& /* legacy_address_with_type */, bool /* is_direct */) {
42 inc_func_call_count(__func__);
43 return true;
44 }
ACL_IgnoreLeConnectionFrom(const tBLE_BD_ADDR &)45 void bluetooth::shim::ACL_IgnoreLeConnectionFrom(
46 const tBLE_BD_ADDR& /* legacy_address_with_type */) {
47 inc_func_call_count(__func__);
48 }
ACL_ConfigureLePrivacy(bool)49 void bluetooth::shim::ACL_ConfigureLePrivacy(bool /* is_le_privacy_enabled */) {
50 inc_func_call_count(__func__);
51 }
ACL_WriteData(uint16_t,BT_HDR *)52 void bluetooth::shim::ACL_WriteData(uint16_t /* handle */,
53 BT_HDR* /* p_buf */) {
54 inc_func_call_count(__func__);
55 }
ACL_Flush(uint16_t)56 void bluetooth::shim::ACL_Flush(uint16_t /* handle */) {
57 inc_func_call_count(__func__);
58 }
ACL_Disconnect(uint16_t,bool,tHCI_STATUS,std::string)59 void bluetooth::shim::ACL_Disconnect(uint16_t /* handle */,
60 bool /* is_classic */,
61 tHCI_STATUS /* reason */,
62 std::string /* comment */) {
63 inc_func_call_count(__func__);
64 }
ACL_IgnoreAllLeConnections()65 void bluetooth::shim::ACL_IgnoreAllLeConnections() {
66 inc_func_call_count(__func__);
67 }
ACL_ReadConnectionAddress(uint16_t,RawAddress &,tBLE_ADDR_TYPE *,bool)68 void bluetooth::shim::ACL_ReadConnectionAddress(
69 uint16_t /* handle */, RawAddress& /* conn_addr */,
70 tBLE_ADDR_TYPE* /* p_addr_type */, bool /* ota_address */) {
71 inc_func_call_count(__func__);
72 }
ACL_ReadPeerConnectionAddress(uint16_t,RawAddress &,tBLE_ADDR_TYPE *,bool)73 void bluetooth::shim::ACL_ReadPeerConnectionAddress(
74 uint16_t /* handle */, RawAddress& /* conn_addr */,
75 tBLE_ADDR_TYPE* /* p_addr_type */, bool /* ota_address */) {
76 inc_func_call_count(__func__);
77 }
ACL_GetAdvertisingSetConnectedTo(const RawAddress &)78 std::optional<uint8_t> bluetooth::shim::ACL_GetAdvertisingSetConnectedTo(
79 const RawAddress& /* addr */) {
80 inc_func_call_count(__func__);
81 return std::nullopt;
82 }
ACL_AddToAddressResolution(const tBLE_BD_ADDR &,const Octet16 &,const Octet16 &)83 void bluetooth::shim::ACL_AddToAddressResolution(
84 const tBLE_BD_ADDR& /* legacy_address_with_type */,
85 const Octet16& /* peer_irk */, const Octet16& /* local_irk */) {
86 inc_func_call_count(__func__);
87 }
88
ACL_RemoveFromAddressResolution(const tBLE_BD_ADDR &)89 void bluetooth::shim::ACL_RemoveFromAddressResolution(
90 const tBLE_BD_ADDR& /* legacy_address_with_type */) {
91 inc_func_call_count(__func__);
92 }
ACL_ClearAddressResolution()93 void bluetooth::shim::ACL_ClearAddressResolution() {
94 inc_func_call_count(__func__);
95 }
ACL_LeSetDefaultSubrate(uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)96 void bluetooth::shim::ACL_LeSetDefaultSubrate(uint16_t /* subrate_min */,
97 uint16_t /* subrate_max */,
98 uint16_t /* max_latency */,
99 uint16_t /* cont_num */,
100 uint16_t /* sup_tout */) {
101 inc_func_call_count(__func__);
102 }
ACL_LeSubrateRequest(uint16_t,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)103 void bluetooth::shim::ACL_LeSubrateRequest(uint16_t /* hci_handle */,
104 uint16_t /* subrate_min */,
105 uint16_t /* subrate_max */,
106 uint16_t /* max_latency */,
107 uint16_t /* cont_num */,
108 uint16_t /* sup_tout */) {
109 inc_func_call_count(__func__);
110 }
111
ACL_Shutdown()112 void bluetooth::shim::ACL_Shutdown() { inc_func_call_count(__func__); }
113
ACL_SendConnectionParameterUpdateRequest(uint16_t,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t,uint16_t)114 void bluetooth::shim::ACL_SendConnectionParameterUpdateRequest(
115 uint16_t /* hci_handle */, uint16_t /* conn_int_min */,
116 uint16_t /* conn_int_max */, uint16_t /* conn_latency */,
117 uint16_t /* conn_timeout */, uint16_t /* min_ce_len */,
118 uint16_t /* max_ce_len */) {
119 inc_func_call_count(__func__);
120 }
ACL_CancelRemoteNameRequest(const RawAddress &)121 void bluetooth::shim::ACL_CancelRemoteNameRequest(
122 const RawAddress& /* addr */) {
123 inc_func_call_count(__func__);
124 }
ACL_RemoteNameRequest(const RawAddress &,uint8_t,uint8_t,uint16_t)125 void bluetooth::shim::ACL_RemoteNameRequest(const RawAddress& /* addr */,
126 uint8_t /* page_scan_rep_mode */,
127 uint8_t /* page_scan_mode */,
128 uint16_t /* clock_offset */) {
129 inc_func_call_count(__func__);
130 }
131