diff options
author | cy <cy@FreeBSD.org> | 2015-07-01 03:12:13 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2015-07-01 03:12:13 +0000 |
commit | 5ef283fde5be3bb35376b46b0d8cdc0e6dff0ad4 (patch) | |
tree | 5b1ffa3ad0e56e0e9f2991011729791ee86d7632 /sntp/unity/unity_fixture_internals.h | |
parent | f63afe28012870b3eb07e80844160966b32ef52e (diff) | |
download | FreeBSD-src-5ef283fde5be3bb35376b46b0d8cdc0e6dff0ad4.zip FreeBSD-src-5ef283fde5be3bb35376b46b0d8cdc0e6dff0ad4.tar.gz |
Vendor import ntp-4.2.8p3.
Approved by: delphij (implicit, using SO hat)
Security: VuXML: 0d0f3050-1f69-11e5-9ba9-d050996490d0
Security: http://bugs.ntp.org/show_bug.cgi?id=2853
Security: https://www.kb.cert.org/vuls/id/668167
Security: http://support.ntp.org/bin/view/Main/SecurityNotice#June_2015_NTP_Security_Vulnerabi
Diffstat (limited to 'sntp/unity/unity_fixture_internals.h')
-rw-r--r-- | sntp/unity/unity_fixture_internals.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sntp/unity/unity_fixture_internals.h b/sntp/unity/unity_fixture_internals.h new file mode 100644 index 0000000..c4099fa --- /dev/null +++ b/sntp/unity/unity_fixture_internals.h @@ -0,0 +1,44 @@ +//- Copyright (c) 2010 James Grenning and Contributed to Unity Project +/* ========================================== + Unity Project - A Test Framework for C + Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams + [Released under MIT License. Please refer to license.txt for details] +========================================== */ + +#ifndef UNITY_FIXTURE_INTERNALS_H_ +#define UNITY_FIXTURE_INTERNALS_H_ + +typedef struct _UNITY_FIXTURE_T +{ + int Verbose; + unsigned int RepeatCount; + const char* NameFilter; + const char* GroupFilter; +} UNITY_FIXTURE_T; + +typedef void unityfunction(void); +void UnityTestRunner(unityfunction * setup, + unityfunction * body, + unityfunction * teardown, + const char * printableName, + const char * group, + const char * name, + const char * file, int line); + +void UnityIgnoreTest(const char * printableName); +void UnityMalloc_StartTest(void); +void UnityMalloc_EndTest(void); +int UnityFailureCount(void); +int UnityGetCommandLineOptions(int argc, const char* argv[]); +void UnityConcludeFixtureTest(void); + +void UnityPointer_Set(void ** ptr, void * newValue); +void UnityPointer_UndoAllSets(void); +void UnityPointer_Init(void); + +void UnityAssertEqualPointer(const void * expected, + const void * actual, + const char* msg, + const UNITY_LINE_TYPE lineNumber); + +#endif /* UNITY_FIXTURE_INTERNALS_H_ */ |