• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 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 #include <base/bind_helpers.h>
18 #include <base/functional/bind.h>
19 #include <hardware/bt_le_audio.h>
20 
21 #include <map>
22 #include <string>
23 
24 #include "bta/include/bta_le_audio_broadcaster_api.h"
25 #include "test/common/mock_functions.h"
26 
27 #ifndef UNUSED_ATTR
28 #define UNUSED_ATTR
29 #endif
30 
DebugDump(int)31 void LeAudioBroadcaster::DebugDump(int) { inc_func_call_count(__func__); }
Initialize(bluetooth::le_audio::LeAudioBroadcasterCallbacks *,base::RepeatingCallback<bool ()>)32 void LeAudioBroadcaster::Initialize(
33     bluetooth::le_audio::LeAudioBroadcasterCallbacks*,
34     base::RepeatingCallback<bool()>) {
35   inc_func_call_count(__func__);
36 }
Stop()37 void LeAudioBroadcaster::Stop() { inc_func_call_count(__func__); }
Cleanup()38 void LeAudioBroadcaster::Cleanup() { inc_func_call_count(__func__); }
Get()39 LeAudioBroadcaster* LeAudioBroadcaster::Get() {
40   inc_func_call_count(__func__);
41   return nullptr;
42 }
43