2
3
4
5
6
7
8#ifndef GIMBAL_TEST_SCENARIO_H
9#define GIMBAL_TEST_SCENARIO_H
11#include "../meta/instances/gimbal_context.h"
12#include "../meta/signals/gimbal_signal.h"
15
16
17
18#define GBL_TEST_SCENARIO_TYPE (GBL_TYPEID(GblTestScenario))
19#define GBL_TEST_SCENARIO(self) (GBL_CAST(GblTestScenario, self))
20#define GBL_TEST_SCENARIO_CLASS(klass) (GBL_CLASS_CAST(GblTestScenario, klass))
21#define GBL_TEST_SCENARIO_GET_CLASS(self) (GBL_CLASSOF(GblTestScenario, self))
24#define GBL_SELF_TYPE GblTestScenario
32
33
34
35
36
37
38
39
40
41
45 GBL_RESULT (*pFnRun) (
GBL_SELF,
int argc,
const char* argv[]);
46 GBL_RESULT (*pFnSuiteBegin)(
GBL_SELF,
const GblTestSuite* pSuite);
47 GBL_RESULT (*pFnSuiteEnd) (
GBL_SELF,
const GblTestSuite* pSuite);
51
52
53
54
55
56
57
58
59
60
61
93 (suiteBegan, (GBL_INSTANCE_TYPE, pSuite)),
94 (suiteEnded, (GBL_INSTANCE_TYPE, pSuite)),
95 (caseBegan, (GBL_INSTANCE_TYPE, pSuite), (GBL_SIZE_TYPE, caseIndex)),
96 (caseEnded, (GBL_INSTANCE_TYPE, pSuite), (GBL_SIZE_TYPE, caseIndex))
#define GBL_CLASS_CAST(cType, klass)
#define GBL_FORWARD_DECLARE_STRUCT(S)
#define GBL_TYPEID(instanceStruct)
#define GBL_INSTANCE_DERIVE(derivedInstance, baseInstance)
#define GBL_CLASS_DERIVE(...)
#define GBL_CLASSOF(cType, self)
#define GBL_CAST(cType, self)
#define GBL_UINT32_TYPE
Builtin ID for uint32_t GblVariant type.
#define GBL_PROPERTIES(object,...)
Declares a list of properties for the given object/instance structure.
#define GBL_SIGNALS(instanceStruct,...)
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
uint16_t GblRefCount
Type able to hold a reference counter across the codebase.
Represents a single top-level test object.