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