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:3 21 * 22 * mockcify.pl ver 0.6.2 23 */ 24 25 #include <functional> 26 27 // Original included files, if any 28 // NOTE: Since this is a mock file with mock definitions some number of 29 // include files may not be required. The include-what-you-use 30 // still applies, but crafting proper inclusion is out of scope 31 // for this effort. This compilation unit may compile as-is, or 32 // may need attention to prune from (or add to ) the inclusion set. 33 34 // Original usings 35 36 // Mocked compile conditionals, if any 37 38 namespace test { 39 namespace mock { 40 namespace bta_dm_main { 41 42 // Shared state between mocked functions and tests 43 // Name: DumpsysBtaDm 44 // Params: int fd 45 // Return: void 46 struct DumpsysBtaDm { 47 std::function<void(int fd)> body{[](int /* fd */) {}}; operatorDumpsysBtaDm48 void operator()(int fd) { body(fd); }; 49 }; 50 extern struct DumpsysBtaDm DumpsysBtaDm; 51 52 } // namespace bta_dm_main 53 } // namespace mock 54 } // namespace test 55 56 // END mockcify generation 57