unity_fixture_internals.h 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
//- Copyright (c) 2010 James Grenning and Contributed to Unity Project
/* ==========================================
    Unity Project - A Test Framework for C
    Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
    [Released under MIT License. Please refer to license.txt for details]
========================================== */

#ifndef UNITY_FIXTURE_INTERNALS_H_
#define UNITY_FIXTURE_INTERNALS_H_

11
struct _UnityFixture
12 13 14 15 16
{
    int Verbose;
    unsigned int RepeatCount;
    const char* NameFilter;
    const char* GroupFilter;
17
};
18
extern struct _UnityFixture UnityFixture;
19

20
typedef void unityfunction(void);
21 22 23 24 25 26
void UnityTestRunner(unityfunction* setup,
                     unityfunction* body,
                     unityfunction* teardown,
                     const char* printableName,
                     const char* group,
                     const char* name,
27
                     const char* file, unsigned int line);
28

29
void UnityIgnoreTest(const char* printableName, const char* group, const char* name);
30 31
void UnityMalloc_StartTest(void);
void UnityMalloc_EndTest(void);
32
int UnityGetCommandLineOptions(int argc, const char* argv[]);
33
void UnityConcludeFixtureTest(void);
34

35
void UnityPointer_Set(void** ptr, void* newValue, UNITY_LINE_TYPE line);
36 37
void UnityPointer_UndoAllSets(void);
void UnityPointer_Init(void);
38 39

#endif /* UNITY_FIXTURE_INTERNALS_H_ */