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 <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <cstddef>
28 #include <cstdint>
29 #include "main/shim/acl_api.h"
30 #include "types/ble_address_with_type.h"
31 #include "types/raw_address.h"
32 
33 #ifndef UNUSED_ATTR
34 #define UNUSED_ATTR
35 #endif
36 
ACL_CreateClassicConnection(const RawAddress & raw_address)37 void bluetooth::shim::ACL_CreateClassicConnection(
38     const RawAddress& raw_address) {
39   mock_function_count_map[__func__]++;
40 }
ACL_CancelClassicConnection(const RawAddress & raw_address)41 void bluetooth::shim::ACL_CancelClassicConnection(
42     const RawAddress& raw_address) {
43   mock_function_count_map[__func__]++;
44 }
ACL_AcceptLeConnectionFrom(const tBLE_BD_ADDR & legacy_address_with_type,bool is_direct)45 bool bluetooth::shim::ACL_AcceptLeConnectionFrom(
46     const tBLE_BD_ADDR& legacy_address_with_type, bool is_direct) {
47   mock_function_count_map[__func__]++;
48   return true;
49 }
ACL_IgnoreLeConnectionFrom(const tBLE_BD_ADDR & legacy_address_with_type)50 void bluetooth::shim::ACL_IgnoreLeConnectionFrom(
51     const tBLE_BD_ADDR& legacy_address_with_type) {
52   mock_function_count_map[__func__]++;
53 }
ACL_ConfigureLePrivacy(bool is_le_privacy_enabled)54 void bluetooth::shim::ACL_ConfigureLePrivacy(bool is_le_privacy_enabled) {
55   mock_function_count_map[__func__]++;
56 }
ACL_WriteData(uint16_t handle,BT_HDR * p_buf)57 void bluetooth::shim::ACL_WriteData(uint16_t handle, BT_HDR* p_buf) {
58   mock_function_count_map[__func__]++;
59 }
ACL_Disconnect(uint16_t handle,bool is_classic,tHCI_STATUS reason)60 void bluetooth::shim::ACL_Disconnect(uint16_t handle, bool is_classic,
61                                      tHCI_STATUS reason) {
62   mock_function_count_map[__func__]++;
63 }
ACL_IgnoreAllLeConnections()64 void bluetooth::shim::ACL_IgnoreAllLeConnections() {
65   mock_function_count_map[__func__]++;
66 }
ACL_ReadConnectionAddress(const RawAddress & pseudo_addr,RawAddress & conn_addr,uint8_t * p_addr_type)67 void bluetooth::shim::ACL_ReadConnectionAddress(const RawAddress& pseudo_addr,
68                                                 RawAddress& conn_addr,
69                                                 uint8_t* p_addr_type) {
70   mock_function_count_map[__func__]++;
71 }