OTest2
A C++ testing framework
|
generic command interface More...
#include <command.h>
Public Member Functions | |
Command (const Command &)=delete | |
Command & | operator= (const Command &)=delete |
Command () | |
Ctor. More... | |
virtual | ~Command () |
Dtor. More... | |
virtual bool | shouldWait (const Context &context_, int &delay_) |
Say whether the framework should wait before running the command. More... | |
virtual void | run (const Context &context_)=0 |
Run the command. More... | |
|
delete |
OTest2::Command::Command | ( | ) |
Ctor.
Definition at line 24 of file command.cpp.
|
virtual |
Dtor.
Definition at line 28 of file command.cpp.
|
pure virtual |
Run the command.
context_ | The OTest2 context |
Implemented in OTest2::CmdRepeatObject, OTest2::CmdStartUpObject, OTest2::CmdTearDownObject, OTest2::CmdNextObject, OTest2::CmdLeaveObject, OTest2::CmdRunState, OTest2::CmdState, OTest2::CmdFirstState, and OTest2::CmdDummy.
|
virtual |
Say whether the framework should wait before running the command.
[in] | context_ | the OTest2 context |
[out] | delay_ | The waiting delay in milliseconds. It's valid only if the true value is returned. |
Reimplemented in OTest2::CmdRunState.
Definition at line 32 of file command.cpp.