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 /* 18 * Generated mock file from original source file 19 * Functions generated:2 20 * 21 * mockcify.pl ver 0.3.0 22 */ 23 // Mock include file to share data between tests and mock 24 #include "test/mock/mock_osi_mutex.h" 25 26 #include "osi/include/mutex.h" 27 #include "test/common/mock_functions.h" 28 29 // Mocked internal structures, if any 30 31 namespace test { 32 namespace mock { 33 namespace osi_mutex { 34 35 // Function state capture and return values, if needed 36 struct mutex_global_lock mutex_global_lock; 37 struct mutex_global_unlock mutex_global_unlock; 38 39 } // namespace osi_mutex 40 } // namespace mock 41 } // namespace test 42 43 // Mocked function return values, if any 44 namespace test { 45 namespace mock { 46 namespace osi_mutex {} // namespace osi_mutex 47 } // namespace mock 48 } // namespace test 49 50 // Mocked functions, if any mutex_global_lock(void)51void mutex_global_lock(void) { 52 inc_func_call_count(__func__); 53 test::mock::osi_mutex::mutex_global_lock(); 54 } mutex_global_unlock(void)55void mutex_global_unlock(void) { 56 inc_func_call_count(__func__); 57 test::mock::osi_mutex::mutex_global_unlock(); 58 } 59 // Mocked functions complete 60 // END mockcify generation 61