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

Public Member Functions

 WatchdogTestCase ()
virtual void DoRun (void)
 Implementation to actually run this test case.
void Expire (Time expected)
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()

Public Attributes

bool m_expired
Time m_expiredArgument
Time m_expiredTime

Additional Inherited Members

- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
void AddTestCase (TestCase *testCase)
 Add an individual test case to this test suite.
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 25 of file watchdog-test-suite.cc.

Constructor & Destructor Documentation

ns3::WatchdogTestCase::WatchdogTestCase ( )

Definition at line 36 of file watchdog-test-suite.cc.

Member Function Documentation

void ns3::WatchdogTestCase::DoRun ( void  )
virtual

Implementation to actually run this test case.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 50 of file watchdog-test-suite.cc.

References ns3::Simulator::Destroy(), Expire(), m_expired, m_expiredArgument, m_expiredTime, ns3::MicroSeconds(), NS_TEST_ASSERT_MSG_EQ, ns3::Watchdog::Ping(), ns3::TestCase::Run(), ns3::Simulator::Schedule(), ns3::Seconds(), ns3::Watchdog::SetArguments(), and ns3::Watchdog::SetFunction().

+ Here is the call graph for this function:

void ns3::WatchdogTestCase::Expire ( Time  expected)

Definition at line 42 of file watchdog-test-suite.cc.

References m_expired, m_expiredArgument, m_expiredTime, and ns3::Now().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool ns3::WatchdogTestCase::m_expired

Definition at line 31 of file watchdog-test-suite.cc.

Referenced by DoRun(), and Expire().

Time ns3::WatchdogTestCase::m_expiredArgument

Definition at line 33 of file watchdog-test-suite.cc.

Referenced by DoRun(), and Expire().

Time ns3::WatchdogTestCase::m_expiredTime

Definition at line 32 of file watchdog-test-suite.cc.

Referenced by DoRun(), and Expire().


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