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 "bta/include/bta_le_audio_broadcaster_api.h" 22 #include "test/common/mock_functions.h" 23 DebugDump(int)24void LeAudioBroadcaster::DebugDump(int) { inc_func_call_count(__func__); } Initialize(bluetooth::le_audio::LeAudioBroadcasterCallbacks *,base::RepeatingCallback<bool ()>)25void LeAudioBroadcaster::Initialize( 26 bluetooth::le_audio::LeAudioBroadcasterCallbacks*, 27 base::RepeatingCallback<bool()>) { 28 inc_func_call_count(__func__); 29 } Stop()30void LeAudioBroadcaster::Stop() { inc_func_call_count(__func__); } Cleanup()31void LeAudioBroadcaster::Cleanup() { inc_func_call_count(__func__); } Get()32LeAudioBroadcaster* LeAudioBroadcaster::Get() { 33 inc_func_call_count(__func__); 34 return nullptr; 35 } 36