Public Member Functions | |
AbstractAnimationInterfaceTestCase (std::string name) | |
Constructor. More... | |
virtual | ~AbstractAnimationInterfaceTestCase () |
Destructor. More... | |
virtual void | DoRun (void) |
Run unit tests for this class. More... | |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
Protected Attributes | |
AnimationInterface * | m_anim |
NodeContainer | m_nodes |
Private Member Functions | |
virtual void | CheckFileExistence () |
virtual void | CheckLogic ()=0 |
virtual void | PrepareNetwork ()=0 |
Private Attributes | |
const char * | m_traceFileName |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
TestCase (std::string name) | |
void | AddTestCase (TestCase *testCase) NS_DEPRECATED |
Add an individual child TestCase case to this TestCase. More... | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
Add an individual child TestCase to this test suite. More... | |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
bool | GetErrorStatus (void) const NS_DEPRECATED |
std::string | GetName (void) const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
bool | MustAssertOnFailure (void) const |
bool | MustContinueOnFailure (void) const |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
void | SetDataDir (std::string directory) |
Definition at line 35 of file netanim-test.cc.
ns3::AbstractAnimationInterfaceTestCase::AbstractAnimationInterfaceTestCase | ( | std::string | name | ) |
Constructor.
Definition at line 73 of file netanim-test.cc.
|
virtual |
|
privatevirtual |
Definition at line 97 of file netanim-test.cc.
References m_traceFileName, and NS_TEST_ASSERT_MSG_NE.
Referenced by DoRun().
|
privatepure virtual |
Implemented in ns3::AnimationRemainingEnergyTestCase, and ns3::AnimationInterfaceTestCase.
Referenced by DoRun().
|
virtual |
Run unit tests for this class.
Implements ns3::TestCase.
Definition at line 84 of file netanim-test.cc.
References CheckFileExistence(), CheckLogic(), ns3::Simulator::Destroy(), m_anim, m_traceFileName, PrepareNetwork(), and ns3::Simulator::Run().
|
privatepure virtual |
Implemented in ns3::AnimationRemainingEnergyTestCase, and ns3::AnimationInterfaceTestCase.
Referenced by DoRun().
|
protected |
Definition at line 57 of file netanim-test.cc.
Referenced by ns3::AnimationInterfaceTestCase::CheckLogic(), ns3::AnimationRemainingEnergyTestCase::CheckLogic(), DoRun(), and ~AbstractAnimationInterfaceTestCase().
|
protected |
Definition at line 56 of file netanim-test.cc.
Referenced by ns3::AnimationRemainingEnergyTestCase::CheckLogic(), ns3::AnimationInterfaceTestCase::PrepareNetwork(), and ns3::AnimationRemainingEnergyTestCase::PrepareNetwork().
|
private |
Definition at line 70 of file netanim-test.cc.
Referenced by CheckFileExistence(), and DoRun().