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:14
20 */
21
22 #include <map>
23 #include <string>
24
25 extern std::map<std::string, int> mock_function_count_map;
26
27 #include <base/bind.h>
28 #include <base/location.h>
29 #include <cstdint>
30 #include <cstring>
31 #include <vector>
32 #include "bta/ag/bta_ag_int.h"
33 #include "bta/include/bta_ag_api.h"
34 #include "stack/include/btu.h"
35
36 #ifndef UNUSED_ATTR
37 #define UNUSED_ATTR
38 #endif
39
BTA_AgEnable(tBTA_AG_CBACK * p_cback)40 tBTA_STATUS BTA_AgEnable(tBTA_AG_CBACK* p_cback) {
41 mock_function_count_map[__func__]++;
42 return BTA_SUCCESS;
43 }
BTA_AgAudioClose(uint16_t handle)44 void BTA_AgAudioClose(uint16_t handle) { mock_function_count_map[__func__]++; }
BTA_AgAudioOpen(uint16_t handle)45 void BTA_AgAudioOpen(uint16_t handle) { mock_function_count_map[__func__]++; }
BTA_AgClose(uint16_t handle)46 void BTA_AgClose(uint16_t handle) { mock_function_count_map[__func__]++; }
BTA_AgDeregister(uint16_t handle)47 void BTA_AgDeregister(uint16_t handle) { mock_function_count_map[__func__]++; }
BTA_AgDisable()48 void BTA_AgDisable() { mock_function_count_map[__func__]++; }
BTA_AgOpen(uint16_t handle,const RawAddress & bd_addr)49 void BTA_AgOpen(uint16_t handle, const RawAddress& bd_addr) {
50 mock_function_count_map[__func__]++;
51 }
BTA_AgRegister(tBTA_SERVICE_MASK services,tBTA_AG_FEAT features,const std::vector<std::string> & service_names,uint8_t app_id)52 void BTA_AgRegister(tBTA_SERVICE_MASK services, tBTA_AG_FEAT features,
53 const std::vector<std::string>& service_names,
54 uint8_t app_id) {
55 mock_function_count_map[__func__]++;
56 }
BTA_AgResult(uint16_t handle,tBTA_AG_RES result,const tBTA_AG_RES_DATA & data)57 void BTA_AgResult(uint16_t handle, tBTA_AG_RES result,
58 const tBTA_AG_RES_DATA& data) {
59 mock_function_count_map[__func__]++;
60 }
BTA_AgSetActiveDevice(const RawAddress & active_device_addr)61 void BTA_AgSetActiveDevice(const RawAddress& active_device_addr) {
62 mock_function_count_map[__func__]++;
63 }
BTA_AgSetCodec(uint16_t handle,tBTA_AG_PEER_CODEC codec)64 void BTA_AgSetCodec(uint16_t handle, tBTA_AG_PEER_CODEC codec) {
65 mock_function_count_map[__func__]++;
66 }
BTA_AgSetScoAllowed(bool value)67 void BTA_AgSetScoAllowed(bool value) { mock_function_count_map[__func__]++; }
68