• 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 <map>
18 #include <string>
19 
20 extern std::map<std::string, int> mock_function_count_map;
21 
22 #include <base/bind.h>
23 #include <base/bind_helpers.h>
24 #include <hardware/bt_le_audio.h>
25 
26 #include "bta/include/bta_le_audio_broadcaster_api.h"
27 
28 #ifndef UNUSED_ATTR
29 #define UNUSED_ATTR
30 #endif
31 
DebugDump(int)32 void LeAudioBroadcaster::DebugDump(int) { mock_function_count_map[__func__]++; }
Initialize(bluetooth::le_audio::LeAudioBroadcasterCallbacks *,base::RepeatingCallback<bool ()>)33 void LeAudioBroadcaster::Initialize(
34     bluetooth::le_audio::LeAudioBroadcasterCallbacks*,
35     base::RepeatingCallback<bool()>) {
36   mock_function_count_map[__func__]++;
37 }
Stop()38 void LeAudioBroadcaster::Stop() { mock_function_count_map[__func__]++; }
Cleanup()39 void LeAudioBroadcaster::Cleanup() { mock_function_count_map[__func__]++; }
Get()40 LeAudioBroadcaster* LeAudioBroadcaster::Get() {
41   mock_function_count_map[__func__]++;
42   return nullptr;
43 }
44