34 lines
853 B
C
34 lines
853 B
C
/*!
|
|
* @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_ */
|