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