A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::AbstractAnimationInterfaceTestCase Class Referenceabstract
+ Inheritance diagram for ns3::AbstractAnimationInterfaceTestCase:
+ Collaboration diagram for ns3::AbstractAnimationInterfaceTestCase:

Public Member Functions

 AbstractAnimationInterfaceTestCase (std::string name)
 Constructor. More...
 
virtual ~AbstractAnimationInterfaceTestCase ()
 Destructor. More...
 
virtual void DoRun (void)
 Run unit tests for this class. More...
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 

Protected Attributes

AnimationInterfacem_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

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 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)
 

Detailed Description

Definition at line 35 of file netanim-test.cc.

Constructor & Destructor Documentation

ns3::AbstractAnimationInterfaceTestCase::AbstractAnimationInterfaceTestCase ( std::string  name)

Constructor.

Definition at line 73 of file netanim-test.cc.

ns3::AbstractAnimationInterfaceTestCase::~AbstractAnimationInterfaceTestCase ( )
virtual

Destructor.

Definition at line 78 of file netanim-test.cc.

References m_anim.

Member Function Documentation

void ns3::AbstractAnimationInterfaceTestCase::CheckFileExistence ( )
privatevirtual

Definition at line 97 of file netanim-test.cc.

References m_traceFileName, and NS_TEST_ASSERT_MSG_NE.

Referenced by DoRun().

+ Here is the caller graph for this function:

virtual void ns3::AbstractAnimationInterfaceTestCase::CheckLogic ( )
privatepure virtual

Implemented in ns3::AnimationRemainingEnergyTestCase, and ns3::AnimationInterfaceTestCase.

Referenced by DoRun().

+ Here is the caller graph for this function:

void ns3::AbstractAnimationInterfaceTestCase::DoRun ( void  )
virtual

Run unit tests for this class.

Returns
false if all tests have passed, false otherwise

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().

+ Here is the call graph for this function:

virtual void ns3::AbstractAnimationInterfaceTestCase::PrepareNetwork ( )
privatepure virtual

Implemented in ns3::AnimationRemainingEnergyTestCase, and ns3::AnimationInterfaceTestCase.

Referenced by DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

AnimationInterface* ns3::AbstractAnimationInterfaceTestCase::m_anim
protected
const char* ns3::AbstractAnimationInterfaceTestCase::m_traceFileName
private

Definition at line 70 of file netanim-test.cc.

Referenced by CheckFileExistence(), and DoRun().


The documentation for this class was generated from the following file: