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 #ifdef __cplusplus 12 extern "C" 13 { 14 #endif 15 16 struct UNITY_FIXTURE_T 17 { 18 int Verbose; 19 unsigned int RepeatCount; 20 const char* NameFilter; 21 const char* GroupFilter; 22 }; 23 extern struct UNITY_FIXTURE_T UnityFixture; 24 25 typedef void unityfunction(void); 26 void UnityTestRunner(unityfunction* setup, 27 unityfunction* body, 28 unityfunction* teardown, 29 const char* printableName, 30 const char* group, 31 const char* name, 32 const char* file, unsigned int line); 33 34 void UnityIgnoreTest(const char* printableName, const char* group, const char* name); 35 void UnityMalloc_StartTest(void); 36 void UnityMalloc_EndTest(void); 37 int UnityGetCommandLineOptions(int argc, const char* argv[]); 38 void UnityConcludeFixtureTest(void); 39 40 void UnityPointer_Set(void** ptr, void* newValue, UNITY_LINE_TYPE line); 41 void UnityPointer_UndoAllSets(void); 42 void UnityPointer_Init(void); 43 #ifndef UNITY_MAX_POINTERS 44 #define UNITY_MAX_POINTERS 5 45 #endif 46 47 #ifdef __cplusplus 48 } 49 #endif 50 51 #endif /* UNITY_FIXTURE_INTERNALS_H_ */ 52