unity_fixture_internals.h 1.5 KB

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