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:6
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_wakelock.h"
25 
26 #include "test/common/mock_functions.h"
27 
28 // Mocked internal structures, if any
29 
30 namespace test {
31 namespace mock {
32 namespace osi_wakelock {
33 
34 // Function state capture and return values, if needed
35 struct wakelock_acquire wakelock_acquire;
36 struct wakelock_cleanup wakelock_cleanup;
37 struct wakelock_debug_dump wakelock_debug_dump;
38 struct wakelock_release wakelock_release;
39 struct wakelock_set_os_callouts wakelock_set_os_callouts;
40 struct wakelock_set_paths wakelock_set_paths;
41 
42 }  // namespace osi_wakelock
43 }  // namespace mock
44 }  // namespace test
45 
46 // Mocked functions, if any
wakelock_acquire(void)47 bool wakelock_acquire(void) {
48   inc_func_call_count(__func__);
49   return test::mock::osi_wakelock::wakelock_acquire();
50 }
wakelock_cleanup(void)51 void wakelock_cleanup(void) {
52   inc_func_call_count(__func__);
53   test::mock::osi_wakelock::wakelock_cleanup();
54 }
wakelock_debug_dump(int fd)55 void wakelock_debug_dump(int fd) {
56   inc_func_call_count(__func__);
57   test::mock::osi_wakelock::wakelock_debug_dump(fd);
58 }
wakelock_release(void)59 bool wakelock_release(void) {
60   inc_func_call_count(__func__);
61   return test::mock::osi_wakelock::wakelock_release();
62 }
wakelock_set_os_callouts(bt_os_callouts_t * callouts)63 void wakelock_set_os_callouts(bt_os_callouts_t* callouts) {
64   inc_func_call_count(__func__);
65   test::mock::osi_wakelock::wakelock_set_os_callouts(callouts);
66 }
wakelock_set_paths(const char * lock_path,const char * unlock_path)67 void wakelock_set_paths(const char* lock_path, const char* unlock_path) {
68   inc_func_call_count(__func__);
69   test::mock::osi_wakelock::wakelock_set_paths(lock_path, unlock_path);
70 }
71 // Mocked functions complete
72 // END mockcify generation
73