Common header needed by generated stubs

This commit is contained in:
2021-12-30 22:23:14 +01:00
parent f09a9997ba
commit 4e40b1043c
2 changed files with 150 additions and 0 deletions

33
resources/header/stub.h Normal file
View File

@@ -0,0 +1,33 @@
/*!
* @file
* @brief General definitions for stubs
*
* Project:
* Subsystem:
* Module: unit_tests
* Code: GNU-C
*
* @date 06.07.2016
* @author Martin Winkler
*/
#ifndef STUB_H_
#define STUB_H_
/*!
* @name Stub run definitions
* Definitions if a stub call should be a PASS or FAIL
* @{*/
#define STUB_CALL_FAIL 0
#define STUB_CALL_PASS 1
/*!@}*/
/*! @brief How to handle pointer parameter */
typedef enum _STUB_PARAMETER_POINTER_HANDLING_T
{
STUB_PARAMETER_POINTER_HANDLING_ADDRESS, /*!< @brief Compare addresses */
STUB_PARAMETER_POINTER_HANDLING_CONTENT, /*!< @brief Compare content byte wise at given address */
STUB_PARAMETER_POINTER_HANDLING_INJECT, /*!< @brief Use init. parameter to inject values to test subject */
STUB_PARAMETER_POINTER_HANDLING_LAST_ENUM
} stub_parameter_pointer_handling_t;
#endif /* STUB_H_ */