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 <base/functional/bind.h>
23 #include <base/location.h>
24
25 #include <cstdint>
26 #include <string>
27 #include <vector>
28
29 #include "bta/include/bta_ag_api.h"
30 #include "test/common/mock_functions.h"
31 #include "types/raw_address.h"
32
BTA_AgEnable(tBTA_AG_CBACK *)33 tBTA_STATUS BTA_AgEnable(tBTA_AG_CBACK* /* p_cback */) {
34 inc_func_call_count(__func__);
35 return BTA_SUCCESS;
36 }
BTA_AgAudioClose(uint16_t)37 void BTA_AgAudioClose(uint16_t /* handle */) { inc_func_call_count(__func__); }
BTA_AgAudioOpen(uint16_t,tBTA_AG_PEER_CODEC)38 void BTA_AgAudioOpen(uint16_t /* handle */,
39 tBTA_AG_PEER_CODEC /* disabled_codecs */) {
40 inc_func_call_count(__func__);
41 }
BTA_AgClose(uint16_t)42 void BTA_AgClose(uint16_t /* handle */) { inc_func_call_count(__func__); }
BTA_AgDeregister(uint16_t)43 void BTA_AgDeregister(uint16_t /* handle */) { inc_func_call_count(__func__); }
BTA_AgDisable()44 void BTA_AgDisable() { inc_func_call_count(__func__); }
BTA_AgOpen(uint16_t,const RawAddress &)45 void BTA_AgOpen(uint16_t /* handle */, const RawAddress& /* bd_addr */) {
46 inc_func_call_count(__func__);
47 }
BTA_AgRegister(tBTA_SERVICE_MASK,tBTA_AG_FEAT,const std::vector<std::string> &,uint8_t)48 void BTA_AgRegister(tBTA_SERVICE_MASK /* services */,
49 tBTA_AG_FEAT /* features */,
50 const std::vector<std::string>& /* service_names */,
51 uint8_t /* app_id */) {
52 inc_func_call_count(__func__);
53 }
BTA_AgResult(uint16_t,tBTA_AG_RES,const tBTA_AG_RES_DATA &)54 void BTA_AgResult(uint16_t /* handle */, tBTA_AG_RES /* result */,
55 const tBTA_AG_RES_DATA& /* data */) {
56 inc_func_call_count(__func__);
57 }
BTA_AgSetActiveDevice(const RawAddress &)58 void BTA_AgSetActiveDevice(const RawAddress& /* active_device_addr */) {
59 inc_func_call_count(__func__);
60 }
BTA_AgSetCodec(uint16_t,tBTA_AG_PEER_CODEC)61 void BTA_AgSetCodec(uint16_t /* handle */, tBTA_AG_PEER_CODEC /* codec */) {
62 inc_func_call_count(__func__);
63 }
BTA_AgSetScoOffloadEnabled(bool)64 void BTA_AgSetScoOffloadEnabled(bool /* value */) {
65 inc_func_call_count(__func__);
66 }
BTA_AgSetScoAllowed(bool)67 void BTA_AgSetScoAllowed(bool /* value */) { inc_func_call_count(__func__); }
is_hfp_aptx_voice_enabled()68 bool is_hfp_aptx_voice_enabled() {
69 inc_func_call_count(__func__);
70 return false;
71 };
enable_aptx_swb_codec(bool,RawAddress *)72 bt_status_t enable_aptx_swb_codec(bool /* enable */,
73 RawAddress* /* bd_addr */) {
74 inc_func_call_count(__func__);
75 return BT_STATUS_SUCCESS;
76 }
77