| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#ifndef CALLEE_H |
| 5 |
#define CALLEE_H |
| 6 |
|
| 7 |
#include "umock_c/umock_c_prod.h" |
| 8 |
|
| 9 |
#ifdef __cplusplus |
| 10 |
extern "C" { |
| 11 |
#include <cstddef> |
| 12 |
#else |
| 13 |
#include <stddef.h> |
| 14 |
#endif /* __cplusplus */ |
| 15 |
|
| 16 |
typedef void* CALLEE_HANDLE; |
| 17 |
|
| 18 |
#define CALLEE_RESULT_VALUES \ |
| 19 |
CALLEE_RESULT_OK, \ |
| 20 |
CALLEE_RESULT_FAIL, \ |
| 21 |
CALLEE_RESULT_OUT_OF_MEMORY |
| 22 |
MU_DEFINE_ENUM(CALLEE_RESULT, CALLEE_RESULT_VALUES); |
| 23 |
|
| 24 |
|
| 25 |
/** |
| 26 |
* This is the set of mockable functions that template_ut.c will replace |
| 27 |
*/ |
| 28 |
MOCKABLE_FUNCTION(, CALLEE_HANDLE, callee_open, size_t, parameter); |
| 29 |
MOCKABLE_FUNCTION(, void, callee_close, CALLEE_HANDLE, handle); |
| 30 |
MOCKABLE_FUNCTION(, CALLEE_RESULT, callee_bar_1); |
| 31 |
MOCKABLE_FUNCTION(, CALLEE_RESULT, callee_bar_2, char, parameter); |
| 32 |
|
| 33 |
#ifdef __cplusplus |
| 34 |
} |
| 35 |
#endif /* __cplusplus */ |
| 36 |
|
| 37 |
#endif //CALLEE_H |