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:7 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/bind_helpers.h> 29 #include <base/logging.h> 30 #include <base/strings/string_number_conversions.h> 31 #include <hardware/bt_vc.h> 32 #include <string> 33 #include <vector> 34 #include "bta/include/bta_gatt_api.h" 35 #include "bta/include/bta_gatt_queue.h" 36 #include "bta/include/bta_vc_api.h" 37 #include "btif/include/btif_storage.h" 38 39 #ifndef UNUSED_ATTR 40 #define UNUSED_ATTR 41 #endif 42 AddFromStorage(const RawAddress & address,bool auto_connect)43void VolumeControl::AddFromStorage(const RawAddress& address, 44 bool auto_connect) { 45 mock_function_count_map[__func__]++; 46 } CleanUp()47void VolumeControl::CleanUp() { mock_function_count_map[__func__]++; } DebugDump(int fd)48void VolumeControl::DebugDump(int fd) { mock_function_count_map[__func__]++; } Get(void)49VolumeControl* VolumeControl::Get(void) { 50 mock_function_count_map[__func__]++; 51 return nullptr; 52 } IsVolumeControlRunning()53bool VolumeControl::IsVolumeControlRunning() { 54 mock_function_count_map[__func__]++; 55 return false; 56 } Initialize(bluetooth::vc::VolumeControlCallbacks * callbacks)57void VolumeControl::Initialize( 58 bluetooth::vc::VolumeControlCallbacks* callbacks) { 59 mock_function_count_map[__func__]++; 60 } 61