1 /* 2 * Copyright 2021 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 #pragma once 18 19 /* 20 * Generated mock file from original source file 21 * Functions generated:2 22 * 23 * mockcify.pl ver 0.3.0 24 */ 25 26 #include <functional> 27 28 // Original included files, if any 29 30 // Mocked compile conditionals, if any 31 32 namespace test { 33 namespace mock { 34 namespace osi_mutex { 35 36 // Shared state between mocked functions and tests 37 // Name: mutex_global_lock 38 // Params: void 39 // Return: void 40 struct mutex_global_lock { 41 std::function<void(void)> body{[](void) {}}; operatormutex_global_lock42 void operator()(void) { body(); }; 43 }; 44 extern struct mutex_global_lock mutex_global_lock; 45 46 // Name: mutex_global_unlock 47 // Params: void 48 // Return: void 49 struct mutex_global_unlock { 50 std::function<void(void)> body{[](void) {}}; operatormutex_global_unlock51 void operator()(void) { body(); }; 52 }; 53 extern struct mutex_global_unlock mutex_global_unlock; 54 55 } // namespace osi_mutex 56 } // namespace mock 57 } // namespace test 58 59 // END mockcify generation