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:8 20 */ 21 22 #include <base/functional/callback.h> 23 24 #include <cstdint> 25 26 #include "bta/include/bta_gatt_queue.h" 27 #include "bta/include/bta_hearing_aid_api.h" 28 #include "test/common/mock_functions.h" 29 #include "types/raw_address.h" 30 GetDeviceCount()31int HearingAid::GetDeviceCount() { 32 inc_func_call_count(__func__); 33 return 0; 34 } 35 AddFromStorage(const HearingDevice &,bool)36void HearingAid::AddFromStorage(const HearingDevice& /* dev_info */, bool /* is_acceptlisted */) { 37 inc_func_call_count(__func__); 38 } 39 DebugDump(int)40void HearingAid::DebugDump(int /* fd */) { inc_func_call_count(__func__); } 41 IsHearingAidRunning()42bool HearingAid::IsHearingAidRunning() { 43 inc_func_call_count(__func__); 44 return false; 45 } 46 CleanUp()47void HearingAid::CleanUp() { inc_func_call_count(__func__); } 48 Initialize(bluetooth::hearing_aid::HearingAidCallbacks *,base::Closure)49void HearingAid::Initialize(bluetooth::hearing_aid::HearingAidCallbacks* /* callbacks */, 50 base::Closure /* initCb */) { 51 inc_func_call_count(__func__); 52 } 53 Connect(const RawAddress &)54void HearingAid::Connect(const RawAddress& /* address */) { inc_func_call_count(__func__); } 55 Disconnect(const RawAddress &)56void HearingAid::Disconnect(const RawAddress& /* address */) { inc_func_call_count(__func__); } 57 AddToAcceptlist(const RawAddress &)58void HearingAid::AddToAcceptlist(const RawAddress& /* address */) { inc_func_call_count(__func__); } 59 SetVolume(int8_t)60void HearingAid::SetVolume(int8_t /* volume */) { inc_func_call_count(__func__); } 61