1 /* 2 * Copyright 2023 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:2 19 * 20 * mockcify.pl ver 0.6.1 21 */ 22 23 // Mock include file to share data between tests and mock 24 #include "test/mock/mock_audio_a2dp_hw_utils.h" 25 26 #include "audio_a2dp_hw/include/audio_a2dp_hw.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 audio_a2dp_hw_utils { 36 37 // Function state capture and return values, if needed 38 struct audio_a2dp_hw_dump_ctrl_event audio_a2dp_hw_dump_ctrl_event; 39 struct delay_reporting_enabled delay_reporting_enabled; 40 41 } // namespace audio_a2dp_hw_utils 42 } // namespace mock 43 } // namespace test 44 45 // Mocked function return values, if any 46 namespace test { 47 namespace mock { 48 namespace audio_a2dp_hw_utils { 49 50 const char* audio_a2dp_hw_dump_ctrl_event::return_value = nullptr; 51 bool delay_reporting_enabled::return_value = false; 52 53 } // namespace audio_a2dp_hw_utils 54 } // namespace mock 55 } // namespace test 56 57 // Mocked functions, if any audio_a2dp_hw_dump_ctrl_event(tA2DP_CTRL_CMD event)58const char* audio_a2dp_hw_dump_ctrl_event(tA2DP_CTRL_CMD event) { 59 inc_func_call_count(__func__); 60 return test::mock::audio_a2dp_hw_utils::audio_a2dp_hw_dump_ctrl_event(event); 61 } delay_reporting_enabled()62bool delay_reporting_enabled() { 63 inc_func_call_count(__func__); 64 return test::mock::audio_a2dp_hw_utils::delay_reporting_enabled(); 65 } 66 // Mocked functions complete 67 // END mockcify generation 68