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 <map> 23 #include <string> 24 25 extern std::map<std::string, int> mock_function_count_map; 26 27 #include <base/bind.h> 28 #include <base/callback.h> 29 #include <base/strings/string_number_conversions.h> 30 #include <cstdint> 31 #include <vector> 32 #include "bta/include/bta_gatt_api.h" 33 #include "bta/include/bta_gatt_queue.h" 34 #include "bta/include/bta_hearing_aid_api.h" 35 #include "device/include/controller.h" 36 #include "embdrv/g722/g722_enc_dec.h" 37 #include "osi/include/log.h" 38 #include "osi/include/properties.h" 39 #include "stack/btm/btm_sec.h" 40 #include "stack/include/acl_api.h" 41 #include "stack/include/acl_api_types.h" 42 #include "stack/include/gap_api.h" 43 #include "stack/include/l2c_api.h" 44 #include "types/bluetooth/uuid.h" 45 #include "types/bt_transport.h" 46 #include "types/raw_address.h" 47 48 #ifndef UNUSED_ATTR 49 #define UNUSED_ATTR 50 #endif 51 GetDeviceCount()52int HearingAid::GetDeviceCount() { 53 mock_function_count_map[__func__]++; 54 return 0; 55 } AddFromStorage(const HearingDevice & dev_info,uint16_t is_acceptlisted)56void HearingAid::AddFromStorage(const HearingDevice& dev_info, 57 uint16_t is_acceptlisted) { 58 mock_function_count_map[__func__]++; 59 } DebugDump(int fd)60void HearingAid::DebugDump(int fd) { mock_function_count_map[__func__]++; } Get()61HearingAid* HearingAid::Get() { 62 mock_function_count_map[__func__]++; 63 return nullptr; 64 } IsHearingAidRunning()65bool HearingAid::IsHearingAidRunning() { 66 mock_function_count_map[__func__]++; 67 return false; 68 } CleanUp()69void HearingAid::CleanUp() { mock_function_count_map[__func__]++; } Initialize(bluetooth::hearing_aid::HearingAidCallbacks * callbacks,base::Closure initCb)70void HearingAid::Initialize( 71 bluetooth::hearing_aid::HearingAidCallbacks* callbacks, 72 base::Closure initCb) { 73 mock_function_count_map[__func__]++; 74 } 75