OTest2
A C++ testing framework
|
Generic test state interface. More...
#include <state.h>
Public Member Functions | |
State () | |
Ctor. More... | |
virtual | ~State () |
Dtor. More... | |
State (const State &)=delete | |
State & | operator= (const State &)=delete |
virtual void | scheduleRun (const Context &context_, CaseOrdinaryPtr parent_, StatePtr this_ptr_, bool delay_cmd_, int delay_)=0 |
Schedule run of the state. More... | |
![]() | |
Object (const Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object () | |
Ctor. More... | |
virtual | ~Object () |
Dtor. More... | |
virtual std::string | getName () const =0 |
Get object's name. More... | |
|
delete |
|
pure virtual |
Schedule run of the state.
context_ | The otest2 context |
parent_ | A smart pointer pointing the parent of the state |
this_ptr_ | A smart pointer which keeps lifetime of this state |
delay_cmd_ | If it's true, the run of the command is delayed |
delay_ | Delay of the command in milliseconds. The value is meant only if the wait_ is true. |
Implemented in OTest2::StateOrdinary.