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:8
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 "bt_trace.h"
29 #include "bta/hf_client/bta_hf_client_int.h"
30 #include "bta/include/bta_hf_client_api.h"
31 #include "bta/sys/bta_sys.h"
32 #include "osi/include/allocator.h"
33 #include "osi/include/compat.h"
34 #include "stack/include/bt_types.h"
35 #include "types/raw_address.h"
36 
37 #ifndef UNUSED_ATTR
38 #define UNUSED_ATTR
39 #endif
40 
BTA_HfClientEnable(tBTA_HF_CLIENT_CBACK * p_cback,tBTA_HF_CLIENT_FEAT features,const char * p_service_name)41 tBTA_STATUS BTA_HfClientEnable(tBTA_HF_CLIENT_CBACK* p_cback,
42                                tBTA_HF_CLIENT_FEAT features,
43                                const char* p_service_name) {
44   mock_function_count_map[__func__]++;
45   return BTA_SUCCESS;
46 }
BTA_HfClientAudioClose(uint16_t handle)47 void BTA_HfClientAudioClose(uint16_t handle) {
48   mock_function_count_map[__func__]++;
49 }
BTA_HfClientAudioOpen(uint16_t handle)50 void BTA_HfClientAudioOpen(uint16_t handle) {
51   mock_function_count_map[__func__]++;
52 }
BTA_HfClientClose(uint16_t handle)53 void BTA_HfClientClose(uint16_t handle) { mock_function_count_map[__func__]++; }
BTA_HfClientDisable(void)54 void BTA_HfClientDisable(void) { mock_function_count_map[__func__]++; }
BTA_HfClientDumpStatistics(int fd)55 void BTA_HfClientDumpStatistics(int fd) { mock_function_count_map[__func__]++; }
BTA_HfClientOpen(const RawAddress & bd_addr,uint16_t * p_handle)56 void BTA_HfClientOpen(const RawAddress& bd_addr, uint16_t* p_handle) {
57   mock_function_count_map[__func__]++;
58 }
BTA_HfClientSendAT(uint16_t handle,tBTA_HF_CLIENT_AT_CMD_TYPE at,uint32_t val1,uint32_t val2,const char * str)59 void BTA_HfClientSendAT(uint16_t handle, tBTA_HF_CLIENT_AT_CMD_TYPE at,
60                         uint32_t val1, uint32_t val2, const char* str) {
61   mock_function_count_map[__func__]++;
62 }
63