Test class for PointToPoint model. More...
Inheritance diagram for PointToPointTest:
Collaboration diagram for PointToPointTest:Public Member Functions | |
| PointToPointTest () | |
| Create the test. More... | |
| virtual void | DoRun (void) |
| Run the test. More... | |
Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () |
| Destructor. More... | |
| std::string | GetName (void) const |
Private Member Functions | |
| void | SendOnePacket (Ptr< PointToPointNetDevice > device) |
| Send one packet to the device specified. More... | |
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, enum TestDuration duration) |
| Add an individual child TestCase to this test suite. More... | |
| TestCase * | GetParent () const |
| bool | IsStatusFailure (void) const |
| bool | IsStatusSuccess (void) const |
| void | SetDataDir (std::string directory) |
| void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
| Log the failure of this TestCase. More... | |
| bool | MustAssertOnFailure (void) const |
| bool | MustContinueOnFailure (void) const |
| std::string | CreateDataDirFilename (std::string filename) |
| std::string | CreateTempDirFilename (std::string filename) |
Test class for PointToPoint model.
It tries to send one packet from one NetDevice to another, over a PointToPointChannel.
Definition at line 15 of file point-to-point-test.cc.
| PointToPointTest::PointToPointTest | ( | ) |
Create the test.
Definition at line 37 of file point-to-point-test.cc.
|
virtual |
Run the test.
Implements ns3::TestCase.
Definition at line 51 of file point-to-point-test.cc.
References ns3::Node::AddDevice(), ns3::Seconds(), and SendOnePacket().
Here is the call graph for this function:
|
private |
Send one packet to the device specified.
| device | NetDevice to send to |
Definition at line 43 of file point-to-point-test.cc.
References ns3::PointToPointNetDevice::GetBroadcast(), and ns3::PointToPointNetDevice::Send().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function: