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 #pragma once 17 18 /* 19 * Generated mock file from original source file 20 * Functions generated:0 21 * 22 * mockcify.pl ver 0.7.0 23 */ 24 25 #include <functional> 26 27 #include "include/hardware/bluetooth_headset_interface.h" 28 29 // Original included files, if any 30 // NOTE: Since this is a mock file with mock definitions some number of 31 // include files may not be required. The include-what-you-use 32 // still applies, but crafting proper inclusion is out of scope 33 // for this effort. This compilation unit may compile as-is, or 34 // may need attention to prune from (or add to ) the inclusion set. 35 36 // Original usings 37 38 // Mocked compile conditionals, if any 39 40 namespace test { 41 namespace mock { 42 namespace btif_hf { 43 44 // Shared state between mocked functions and tests 45 // Name: GetInterface 46 // Params: 47 // Returns: bluetooth::headset::Interface* 48 49 struct GetInterface { 50 std::function<bluetooth::headset::Interface*()> body{ 51 []() { return nullptr; }}; operatorGetInterface52 bluetooth::headset::Interface* operator()() { return body(); }; 53 }; 54 extern struct GetInterface GetInterface; 55 56 // Shared state between mocked functions and tests 57 } // namespace btif_hf 58 } // namespace mock 59 } // namespace test 60 61 // END mockcify generation 62