interplane.Get Omega
Read in your language

cJSON

[Ported from github.com/DaveGamble/cJSON] Fix: heap-use-after-free in merge_patch when patch is subtree of target (#1065)

Brought by drakestapleton

branch master Branches Tags History

cJSON / tests / unity / extras / fixture / src / unity_fixture_internals.h

51 lines · 1518 bytes Raw Blame History
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
12extern "C"
13{
14#endif
15
16struct UNITY_FIXTURE_T
17{
18 int Verbose;
19 unsigned int RepeatCount;
20 const char* NameFilter;
21 const char* GroupFilter;
22};
23extern struct UNITY_FIXTURE_T UnityFixture;
24
25typedef void unityfunction(void);
26void 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
34void UnityIgnoreTest(const char* printableName, const char* group, const char* name);
35void UnityMalloc_StartTest(void);
36void UnityMalloc_EndTest(void);
37int UnityGetCommandLineOptions(int argc, const char* argv[]);
38void UnityConcludeFixtureTest(void);
39
40void UnityPointer_Set(void** ptr, void* newValue, UNITY_LINE_TYPE line);
41void UnityPointer_UndoAllSets(void);
42void 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_ */