]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/unity/unity_fixture_internals.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / unity / unity_fixture_internals.h
1 //- Copyright (c) 2010 James Grenning and Contributed to Unity Project
2 /* ==========================================
3     Unity Project - A Test Framework for C
4     Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
5     [Released under MIT License. Please refer to license.txt for details]
6 ========================================== */
7
8 #ifndef UNITY_FIXTURE_INTERNALS_H_
9 #define UNITY_FIXTURE_INTERNALS_H_
10
11 typedef struct _UNITY_FIXTURE_T
12 {
13     int Verbose;
14     unsigned int RepeatCount;
15     const char* NameFilter;
16     const char* GroupFilter;
17 } UNITY_FIXTURE_T;
18
19 typedef void unityfunction(void);
20 void UnityTestRunner(unityfunction * setup,
21         unityfunction * body,
22         unityfunction * teardown,
23         const char * printableName,
24         const char * group,
25         const char * name,
26         const char * file, int line);
27
28 void UnityIgnoreTest(const char * printableName);
29 void UnityMalloc_StartTest(void);
30 void UnityMalloc_EndTest(void);
31 int UnityFailureCount(void);
32 int UnityGetCommandLineOptions(int argc, const char* argv[]);
33 void UnityConcludeFixtureTest(void);
34
35 void UnityPointer_Set(void ** ptr, void * newValue);
36 void UnityPointer_UndoAllSets(void);
37 void UnityPointer_Init(void);
38
39 void UnityAssertEqualPointer(const void * expected,
40                             const void * actual,
41                             const char* msg,
42                             const UNITY_LINE_TYPE lineNumber);
43
44 #endif /* UNITY_FIXTURE_INTERNALS_H_ */