Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/template_ut/target/target.h

raw
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 TARGET_H
5 #define TARGET_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 #define TARGET_RESULT_VALUES \
17 TARGET_RESULT_OK, \
18 TARGET_RESULT_FAIL, \
19 TARGET_RESULT_OUT_OF_MEMORY
20 MU_DEFINE_ENUM(TARGET_RESULT, TARGET_RESULT_VALUES);
21
22
23 /**
24 * @brief target_create is the function that your unit test intend to test. For example,
25 * it will create the target instance.
26 *
27 * @param size_t.
28 *
29 * @return TARGET_RESULT
30 */
31 MOCKABLE_FUNCTION(, TARGET_RESULT, target_create, size_t, size);
32
33 /**
34 * @brief target_create is the function that your unit test intend to test. For example,
35 * it will destroy the target instance.
36 *
37 * @param void
38 *
39 * @return void
40 */
41 MOCKABLE_FUNCTION(, void, target_destroy);
42
43
44 /** @brief target_foo is the function that your unit test intend to test. For example,
45 * it will do foo stuffs for the target.
46 *
47 * @param
48 *
49 * @return TARGET_RESULT
50 */
51 MOCKABLE_FUNCTION(, TARGET_RESULT, target_foo);
52
53 #ifdef __cplusplus
54 }
55 #endif /* __cplusplus */
56
57 #endif //TARGET_H