Public Member Functions | |
WatchdogTests () | |
virtual bool | RunTests (void) |
Private Member Functions | |
void | Expire (Time expected) |
Private Attributes | |
bool | m_error |
Definition at line 68 of file watchdog.cc.
ns3::WatchdogTests::WatchdogTests | ( | ) |
Definition at line 78 of file watchdog.cc.
void ns3::WatchdogTests::Expire | ( | Time | expected | ) | [private] |
Definition at line 83 of file watchdog.cc.
References m_error, ns3::Simulator::Now(), and NS_TEST_ASSERT_EQUAL.
Referenced by RunTests().
bool ns3::WatchdogTests::RunTests | ( | void | ) | [virtual] |
Implements ns3::Test.
Definition at line 91 of file watchdog.cc.
References ns3::Simulator::Destroy(), Expire(), m_error, ns3::MicroSeconds(), NS_TEST_ASSERT, ns3::Watchdog::Ping(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Watchdog::SetArguments(), and ns3::Watchdog::SetFunction().
bool ns3::WatchdogTests::m_error [private] |
Definition at line 75 of file watchdog.cc.
Referenced by Expire(), and RunTests().