OTest2
A C++ testing framework
|
Go to the documentation of this file.
20 #ifndef OTest2_INCLUDE_OTEST2_OBJECTSCENARIO_H_
21 #define OTest2_INCLUDE_OTEST2_OBJECTSCENARIO_H_
virtual bool startUpObject(const Context &context_, int index_)=0
Execute start-up function at specified index.
virtual void scheduleBody(const Context &context_, ScenarioPtr scenario_, ObjectPtr me_)=0
Schedule body of the testing object.
Inteface of a testing object scheduled by the scenario (test, suite and test case)
ObjectScenario & operator=(const ObjectScenario &)=delete
std::shared_ptr< Object > ObjectPtr
Shared pointer to a testing object.
std::shared_ptr< Scenario > ScenarioPtr
Shared pointer of the scenario object.
virtual ~ObjectScenario()
Dtor.
virtual void tearDownObject(const Context &context_, int index_)=0
Execute tear-down function at specified index.