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:4
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_future.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_future {
33
34 // Function state capture and return values, if needed
35 struct future_await future_await;
36 struct future_new future_new;
37 struct future_new_named future_new_named;
38 struct future_new_immediate future_new_immediate;
39 struct future_ready future_ready;
40
41 } // namespace osi_future
42 } // namespace mock
43 } // namespace test
44
45 // Mocked functions, if any
future_await(future_t * future)46 void* future_await(future_t* future) {
47 inc_func_call_count(__func__);
48 return test::mock::osi_future::future_await(future);
49 }
future_new(void)50 future_t* future_new(void) {
51 inc_func_call_count(__func__);
52 return test::mock::osi_future::future_new();
53 }
future_new_named(const char * name)54 future_t* future_new_named(const char* name) {
55 inc_func_call_count(__func__);
56 return test::mock::osi_future::future_new_named(name);
57 }
future_new_immediate(void * value)58 future_t* future_new_immediate(void* value) {
59 inc_func_call_count(__func__);
60 return test::mock::osi_future::future_new_immediate(value);
61 }
future_ready(future_t * future,void * value)62 void future_ready(future_t* future, void* value) {
63 inc_func_call_count(__func__);
64 test::mock::osi_future::future_ready(future, value);
65 }
66 // Mocked functions complete
67 // END mockcify generation
68