unity_fixture_internals.h 1.5 KB
Newer Older
J
jsalling 已提交
1 2 3 4 5 6
/* 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]
 * ========================================== */
7 8 9 10

#ifndef UNITY_FIXTURE_INTERNALS_H_
#define UNITY_FIXTURE_INTERNALS_H_

M
Max Payne 已提交
11 12 13 14 15
#ifdef __cplusplus
extern "C"
{
#endif

16
struct UNITY_FIXTURE_T
17 18 19 20 21
{
    int Verbose;
    unsigned int RepeatCount;
    const char* NameFilter;
    const char* GroupFilter;
22
};
23
extern struct UNITY_FIXTURE_T UnityFixture;
24

25
typedef void unityfunction(void);
26
void UnityTestRunner(unityfunction* setup,
27
                     unityfunction* testBody,
28 29 30 31
                     unityfunction* teardown,
                     const char* printableName,
                     const char* group,
                     const char* name,
32
                     const char* file, unsigned int line);
33

34
void UnityIgnoreTest(const char* printableName, const char* group, const char* name);
35 36
void UnityMalloc_StartTest(void);
void UnityMalloc_EndTest(void);
37
int UnityGetCommandLineOptions(int argc, const char* argv[]);
38
void UnityConcludeFixtureTest(void);
39

40
void UnityPointer_Set(void** pointer, void* newValue, UNITY_LINE_TYPE line);
41 42
void UnityPointer_UndoAllSets(void);
void UnityPointer_Init(void);
43 44 45
#ifndef UNITY_MAX_POINTERS
#define UNITY_MAX_POINTERS 5
#endif
46

M
Max Payne 已提交
47 48 49 50
#ifdef __cplusplus
}
#endif

51
#endif /* UNITY_FIXTURE_INTERNALS_H_ */