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:7
20 */
21
22 #include <base/bind_helpers.h>
23 #include <base/functional/bind.h>
24 #include <hardware/bt_le_audio.h>
25
26 #include <memory>
27
28 #include "bta/include/bta_le_audio_api.h"
29 #include "test/common/mock_functions.h"
30 #include "types/raw_address.h"
31
32 /* Empty class to satisfy compiler */
33 namespace bluetooth {
34 namespace audio {
35
36 class HalVersionManager {
37 static inline std::unique_ptr<HalVersionManager> instance_ptr =
38 std::make_unique<HalVersionManager>();
39 };
40
41 } // namespace audio
42 } // namespace bluetooth
43
AddFromStorage(const RawAddress &,bool,int,int,int,int,const std::vector<uint8_t> &,const std::vector<uint8_t> &,const std::vector<uint8_t> &,const std::vector<uint8_t> &)44 void LeAudioClient::AddFromStorage(
45 const RawAddress& /* addr */, bool /* autoconnect */,
46 int /* sink_audio_location */, int /* source_audio_location */,
47 int /* sink_supported_context_types */,
48 int /* source_supported_context_types */,
49 const std::vector<uint8_t>& /* handles */,
50 const std::vector<uint8_t>& /* sink_pacs */,
51 const std::vector<uint8_t>& /* source_pacs */,
52 const std::vector<uint8_t>& /* ases */) {
53 inc_func_call_count(__func__);
54 }
55
GetHandlesForStorage(const RawAddress &,std::vector<uint8_t> &)56 bool LeAudioClient::GetHandlesForStorage(const RawAddress& /* addr */,
57 std::vector<uint8_t>& /* out */) {
58 inc_func_call_count(__func__);
59 return false;
60 }
61
GetSinkPacsForStorage(const RawAddress &,std::vector<uint8_t> &)62 bool LeAudioClient::GetSinkPacsForStorage(const RawAddress& /* addr */,
63 std::vector<uint8_t>& /* out */) {
64 inc_func_call_count(__func__);
65 return false;
66 }
67
GetSourcePacsForStorage(const RawAddress &,std::vector<uint8_t> &)68 bool LeAudioClient::GetSourcePacsForStorage(const RawAddress& /* addr */,
69 std::vector<uint8_t>& /* out */) {
70 inc_func_call_count(__func__);
71 return false;
72 }
73
GetAsesForStorage(const RawAddress &,std::vector<uint8_t> &)74 bool LeAudioClient::GetAsesForStorage(const RawAddress& /* addr */,
75 std::vector<uint8_t>& /* out */) {
76 inc_func_call_count(__func__);
77 return false;
78 }
79
Cleanup(void)80 void LeAudioClient::Cleanup(void) { inc_func_call_count(__func__); }
81
Get(void)82 LeAudioClient* LeAudioClient::Get(void) {
83 inc_func_call_count(__func__);
84 return nullptr;
85 }
IsLeAudioClientRunning(void)86 bool LeAudioClient::IsLeAudioClientRunning(void) {
87 inc_func_call_count(__func__);
88 return false;
89 }
IsLeAudioClientInStreaming(void)90 bool LeAudioClient::IsLeAudioClientInStreaming(void) {
91 inc_func_call_count(__func__);
92 return false;
93 }
Initialize(bluetooth::le_audio::LeAudioClientCallbacks *,base::Closure,base::Callback<bool ()>,const std::vector<bluetooth::le_audio::btle_audio_codec_config_t> &)94 void LeAudioClient::Initialize(
95 bluetooth::le_audio::LeAudioClientCallbacks* /* callbacks_ */,
96 base::Closure /* initCb */, base::Callback<bool()> /* hal_2_1_verifier */,
97 const std::vector<bluetooth::le_audio::btle_audio_codec_config_t>&
98 /* offloading_preference */) {
99 inc_func_call_count(__func__);
100 }
DebugDump(int)101 void LeAudioClient::DebugDump(int /* fd */) { inc_func_call_count(__func__); }
102
RegisterIsoDataConsumer(LeAudioIsoDataCallback)103 bool LeAudioClient::RegisterIsoDataConsumer(
104 LeAudioIsoDataCallback /* callback */) {
105 inc_func_call_count(__func__);
106 return true;
107 }
108