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(const RawAddress& /* addr */, bool /* autoconnect */,
45                                    int /* sink_audio_location */, int /* source_audio_location */,
46                                    int /* sink_supported_context_types */,
47                                    int /* source_supported_context_types */,
48                                    const std::vector<uint8_t>& /* handles */,
49                                    const std::vector<uint8_t>& /* sink_pacs */,
50                                    const std::vector<uint8_t>& /* source_pacs */,
51                                    const std::vector<uint8_t>& /* ases */) {
52   inc_func_call_count(__func__);
53 }
54 
GetHandlesForStorage(const RawAddress &,std::vector<uint8_t> &)55 bool LeAudioClient::GetHandlesForStorage(const RawAddress& /* addr */,
56                                          std::vector<uint8_t>& /* out */) {
57   inc_func_call_count(__func__);
58   return false;
59 }
60 
GetSinkPacsForStorage(const RawAddress &,std::vector<uint8_t> &)61 bool LeAudioClient::GetSinkPacsForStorage(const RawAddress& /* addr */,
62                                           std::vector<uint8_t>& /* out */) {
63   inc_func_call_count(__func__);
64   return false;
65 }
66 
GetSourcePacsForStorage(const RawAddress &,std::vector<uint8_t> &)67 bool LeAudioClient::GetSourcePacsForStorage(const RawAddress& /* addr */,
68                                             std::vector<uint8_t>& /* out */) {
69   inc_func_call_count(__func__);
70   return false;
71 }
72 
GetAsesForStorage(const RawAddress &,std::vector<uint8_t> &)73 bool LeAudioClient::GetAsesForStorage(const RawAddress& /* addr */,
74                                       std::vector<uint8_t>& /* out */) {
75   inc_func_call_count(__func__);
76   return false;
77 }
78 
Cleanup(void)79 void LeAudioClient::Cleanup(void) { inc_func_call_count(__func__); }
80 
Get(void)81 LeAudioClient* LeAudioClient::Get(void) {
82   inc_func_call_count(__func__);
83   return nullptr;
84 }
IsLeAudioClientRunning(void)85 bool LeAudioClient::IsLeAudioClientRunning(void) {
86   inc_func_call_count(__func__);
87   return false;
88 }
IsLeAudioClientInStreaming(void)89 bool LeAudioClient::IsLeAudioClientInStreaming(void) {
90   inc_func_call_count(__func__);
91   return false;
92 }
Initialize(bluetooth::le_audio::LeAudioClientCallbacks *,base::Closure,base::Callback<bool ()>,const std::vector<bluetooth::le_audio::btle_audio_codec_config_t> &)93 void LeAudioClient::Initialize(bluetooth::le_audio::LeAudioClientCallbacks* /* callbacks_ */,
94                                base::Closure /* initCb */,
95                                base::Callback<bool()> /* hal_2_1_verifier */,
96                                const std::vector<bluetooth::le_audio::btle_audio_codec_config_t>&
97                                /* offloading_preference */) {
98   inc_func_call_count(__func__);
99 }
DebugDump(int)100 void LeAudioClient::DebugDump(int /* fd */) { inc_func_call_count(__func__); }
101 
RegisterIsoDataConsumer(LeAudioIsoDataCallback)102 bool LeAudioClient::RegisterIsoDataConsumer(LeAudioIsoDataCallback /* callback */) {
103   inc_func_call_count(__func__);
104   return true;
105 }
106