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:12
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include "bt_target.h"
28 #include "bta/hd/bta_hd_int.h"
29 #include "osi/include/allocator.h"
30 #include "osi/include/compat.h"
31 #include "osi/include/log.h"
32 
33 #ifndef UNUSED_ATTR
34 #define UNUSED_ATTR
35 #endif
36 
BTA_HdEnable(tBTA_HD_CBACK * p_cback)37 void BTA_HdEnable(tBTA_HD_CBACK* p_cback) {
38   mock_function_count_map[__func__]++;
39 }
BTA_HdAddDevice(const RawAddress & addr)40 void BTA_HdAddDevice(const RawAddress& addr) {
41   mock_function_count_map[__func__]++;
42 }
BTA_HdConnect(const RawAddress & addr)43 void BTA_HdConnect(const RawAddress& addr) {
44   mock_function_count_map[__func__]++;
45 }
BTA_HdDisable(void)46 void BTA_HdDisable(void) { mock_function_count_map[__func__]++; }
BTA_HdDisconnect(void)47 void BTA_HdDisconnect(void) { mock_function_count_map[__func__]++; }
BTA_HdRegisterApp(tBTA_HD_APP_INFO * p_app_info,tBTA_HD_QOS_INFO * p_in_qos,tBTA_HD_QOS_INFO * p_out_qos)48 void BTA_HdRegisterApp(tBTA_HD_APP_INFO* p_app_info, tBTA_HD_QOS_INFO* p_in_qos,
49                        tBTA_HD_QOS_INFO* p_out_qos) {
50   mock_function_count_map[__func__]++;
51 }
BTA_HdRemoveDevice(const RawAddress & addr)52 void BTA_HdRemoveDevice(const RawAddress& addr) {
53   mock_function_count_map[__func__]++;
54 }
BTA_HdReportError(uint8_t error)55 void BTA_HdReportError(uint8_t error) { mock_function_count_map[__func__]++; }
BTA_HdSendReport(tBTA_HD_REPORT * p_report)56 void BTA_HdSendReport(tBTA_HD_REPORT* p_report) {
57   mock_function_count_map[__func__]++;
58 }
BTA_HdUnregisterApp(void)59 void BTA_HdUnregisterApp(void) { mock_function_count_map[__func__]++; }
BTA_HdVirtualCableUnplug(void)60 void BTA_HdVirtualCableUnplug(void) { mock_function_count_map[__func__]++; }
61