60 #include "Mock_rkhqueue.h"
61 #include "Mock_rkhassert.h"
62 #include "Mock_rkhsma_prio.h"
69 static RKHROM
RKH_ROM_T base = {0, 0,
"ao"};
75 MockAssertCallback(
const char*
const file,
int line,
int cmock_num_calls)
84 Mock_rkhassert_Init();
85 Mock_rkhsma_prio_Init();
92 Mock_rkhassert_Verify();
93 Mock_rkhsma_prio_Verify();
94 Mock_rkhassert_Destroy();
95 Mock_rkhsma_prio_Destroy();
105 test_BlockActiveObject(
void)
112 test_Fails_TriesBlockActiveObjectWithEmptyQueue(
void)
114 rkh_assert_Expect(
"rkhsma_sync", 0);
115 rkh_assert_IgnoreArg_file();
116 rkh_assert_IgnoreArg_line();
117 rkh_assert_StubWithCallback(MockAssertCallback);
124 test_SetActiveObjectReady(
void)
131 test_SetActiveObjectUnready(
void)
Specifies the interface of the blocking mechanism (synchro) for active object scheduling.
void rkh_sma_setUnready(RKH_SMA_T *const me)
Informs the underlying kernel that the active object's event queue is becoming empty....
void rkh_sma_block(RKH_SMA_T *const me)
Encapsulates the mechanism of blocking the native event queue.
void rkh_sma_setReady(RKH_SMA_T *const me)
Encapsulates the mechanism of signaling the thread waiting on the used native event queue....
Constant parameters of state machine.
rui8_t prio
SMA (a.k.a Active Object) priority.
RKHROM RKH_ROM_T * romrkh
Points to constant parameters of state machine.
Describes the SMA (active object in UML).
RKH_SM_T sm
State machine.
RKH_EQ_TYPE equeue
Event queue of the SMA (a.k.a Active Object).