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 #pragma once 17 18 /* 19 * Generated mock file from original source file 20 * Functions generated:2 21 * 22 * mockcify.pl ver 0.6.1 23 */ 24 25 #include <functional> 26 27 // Original included files, if any 28 #include "audio_a2dp_hw/include/audio_a2dp_hw.h" 29 30 // Original usings 31 32 // Mocked compile conditionals, if any 33 34 namespace test { 35 namespace mock { 36 namespace audio_a2dp_hw_utils { 37 38 // Shared state between mocked functions and tests 39 // Name: audio_a2dp_hw_dump_ctrl_event 40 // Params: tA2DP_CTRL_CMD event 41 // Return: const char* 42 struct audio_a2dp_hw_dump_ctrl_event { 43 static const char* return_value; 44 std::function<const char*(tA2DP_CTRL_CMD event)> body{ 45 [](tA2DP_CTRL_CMD /* event */) { return return_value; }}; operatoraudio_a2dp_hw_dump_ctrl_event46 const char* operator()(tA2DP_CTRL_CMD event) { return body(event); }; 47 }; 48 extern struct audio_a2dp_hw_dump_ctrl_event audio_a2dp_hw_dump_ctrl_event; 49 50 // Name: delay_reporting_enabled 51 // Params: 52 // Return: bool 53 struct delay_reporting_enabled { 54 static bool return_value; 55 std::function<bool()> body{[]() { return return_value; }}; operatordelay_reporting_enabled56 bool operator()() { return body(); }; 57 }; 58 extern struct delay_reporting_enabled delay_reporting_enabled; 59 60 } // namespace audio_a2dp_hw_utils 61 } // namespace mock 62 } // namespace test 63 64 // END mockcify generation 65