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