You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
497 B
34 lines
497 B
#ifndef __MOCK_CLASS_H__
|
|
#define __MOCK_CLASS_H__
|
|
|
|
#include "token/cclass.h"
|
|
|
|
extern char _called;
|
|
|
|
#ifndef _RESET
|
|
#define _RESET
|
|
void
|
|
inline
|
|
_reset()
|
|
{
|
|
_called = 0;
|
|
}
|
|
#endif//_RESET
|
|
|
|
|
|
CLASS(MOCK_CLASS) {
|
|
const _CCLASS const class;
|
|
int value;
|
|
};
|
|
|
|
extern const _CCLASS const __MOCK_CLASS;
|
|
|
|
/**
|
|
* ~~~ method declarations ~~~~~~~~
|
|
*/
|
|
|
|
int mock_class_getValue(MOCK_CLASS _this);
|
|
void mock_class_setValue(MOCK_CLASS _this, int value);
|
|
|
|
#endif//__MOCK_CLASS_H__
|
|
// vim: set et ts=4 sw=4:
|