1 /* 2 * Copyright 2024 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 * Generated mock file from original source file 18 * Functions generated:0 19 * 20 * mockcify.pl ver 0.7.0 21 */ 22 23 // Mock include file to share data between tests and mock 24 #include "test/mock/mock_btif_hf.h" 25 26 #include "btif/include/btif_hf.h" 27 #include "test/common/mock_functions.h" 28 29 // Original usings 30 31 // Mocked internal structures, if any 32 33 namespace test { 34 namespace mock { 35 namespace btif_hf { 36 37 // Function state capture and return values, if needed 38 struct GetInterface GetInterface; 39 struct IsCallIdle IsCallIdle; 40 struct IsDuringVoiceRecognition IsDuringVoiceRecognition; 41 } // namespace btif_hf 42 } // namespace mock 43 } // namespace test 44 45 // Mocked functions, if any 46 namespace bluetooth { 47 namespace headset { GetInterface()48Interface* GetInterface() { 49 inc_func_call_count(__func__); 50 return test::mock::btif_hf::GetInterface(); 51 } 52 IsCallIdle()53bool IsCallIdle() { 54 inc_func_call_count(__func__); 55 return test::mock::btif_hf::IsCallIdle(); 56 } 57 IsDuringVoiceRecognition(RawAddress * bd_addr)58bool IsDuringVoiceRecognition(RawAddress* bd_addr) { 59 inc_func_call_count(__func__); 60 return test::mock::btif_hf::IsDuringVoiceRecognition(bd_addr); 61 } 62 } // namespace headset 63 } // namespace bluetooth 64 65 // Mocked functions complete 66 // END mockcify generation 67