OpenWalnut
1.4.0
|
Test WConditionSet. More...
#include <WConditionSet_test.h>
Public Member Functions | |
void | testInstantiation (void) |
An instantiation should never throw an exception, as well as tear down. More... | |
void | testAddRemove (void) |
Tests add and remove methods. More... | |
void | testWait (void) |
Tests whether the condition set really reacts on fired conditions. More... | |
void | testWaitResetable (void) |
Tests the resetable feature. More... | |
void | testResetOnNotResetable (void) |
Ensures reset() never throws something. More... | |
Test WConditionSet.
Definition at line 70 of file WConditionSet_test.h.
|
inline |
Tests add and remove methods.
Also check double remove/add.
Definition at line 87 of file WConditionSet_test.h.
References WConditionSet::add(), WConditionSet::m_conditionSet, and WConditionSet::remove().
|
inline |
An instantiation should never throw an exception, as well as tear down.
Definition at line 76 of file WConditionSet_test.h.
|
inline |
Ensures reset() never throws something.
Definition at line 215 of file WConditionSet_test.h.
References WConditionSet::reset(), and WConditionSet::setResetable().
|
inline |
Tests whether the condition set really reacts on fired conditions.
Definition at line 123 of file WConditionSet_test.h.
References WConditionSet::add(), Callable::c, Callable::flag, WConditionSet::m_fired, WConditionSet::remove(), WConditionSet::reset(), WConditionSet::setResetable(), Callable::threadMain(), and WConditionSet::wait().
|
inline |
Tests the resetable feature.
Definition at line 169 of file WConditionSet_test.h.
References WConditionSet::add(), WConditionSet::m_fired, WConditionSet::setResetable(), and WConditionSet::wait().