Inheritance diagram for ns3::TcpHeaderGetSetTestCase:
Collaboration diagram for ns3::TcpHeaderGetSetTestCase:Public Member Functions | |
| TcpHeaderGetSetTestCase (uint16_t sourcePort, uint16_t destinationPort, SequenceNumber32 sequenceNumber, SequenceNumber32 ackNumber, uint8_t flags, uint16_t m_windowSize, uint16_t m_urgentPointer, std::string name) | |
Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () |
| Destructor. More... | |
| std::string | GetName (void) const |
Protected Attributes | |
| SequenceNumber32 | m_ackNumber |
| ACK number. More... | |
| uint16_t | m_destinationPort |
| Destination port. More... | |
| uint8_t | m_flags |
| Flags (really a uint6_t) More... | |
| SequenceNumber32 | m_sequenceNumber |
| Sequence number. More... | |
| uint16_t | m_sourcePort |
| Source port. More... | |
| uint16_t | m_urgentPointer |
| Urgent pointer. More... | |
| uint16_t | m_windowSize |
| Window size. More... | |
Private Member Functions | |
| virtual void | DoRun (void) |
| Implementation to actually run this TestCase. More... | |
| virtual void | DoTeardown (void) |
| Implementation to do any local setup required for this TestCase. More... | |
Private Attributes | |
| Buffer | m_buffer |
| TcpHeader | m_header |
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) |
Definition at line 30 of file tcp-header-test.cc.
| ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase | ( | uint16_t | sourcePort, |
| uint16_t | destinationPort, | ||
| SequenceNumber32 | sequenceNumber, | ||
| SequenceNumber32 | ackNumber, | ||
| uint8_t | flags, | ||
| uint16_t | m_windowSize, | ||
| uint16_t | m_urgentPointer, | ||
| std::string | name | ||
| ) |
Definition at line 54 of file tcp-header-test.cc.
References ns3::Buffer::AddAtStart(), ns3::Buffer::Begin(), ns3::TcpHeader::GetLength(), ns3::TcpHeader::GetSerializedSize(), m_ackNumber, m_buffer, m_destinationPort, m_flags, m_header, m_sequenceNumber, m_sourcePort, m_urgentPointer, m_windowSize, NS_TEST_ASSERT_MSG_EQ, ns3::TcpHeader::Serialize(), ns3::TcpHeader::SetAckNumber(), ns3::TcpHeader::SetDestinationPort(), ns3::TcpHeader::SetFlags(), ns3::TcpHeader::SetSequenceNumber(), ns3::TcpHeader::SetSourcePort(), ns3::TcpHeader::SetUrgentPointer(), and ns3::TcpHeader::SetWindowSize().
Here is the call graph for this function:
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 83 of file tcp-header-test.cc.
References ns3::Buffer::Begin(), ns3::TcpHeader::Deserialize(), ns3::TcpHeader::GetAckNumber(), ns3::TcpHeader::GetDestinationPort(), ns3::TcpHeader::GetFlags(), ns3::TcpHeader::GetLength(), ns3::TcpHeader::GetSequenceNumber(), ns3::TcpHeader::GetSourcePort(), ns3::TcpHeader::GetUrgentPointer(), ns3::TcpHeader::GetWindowSize(), m_ackNumber, m_buffer, m_destinationPort, m_flags, m_header, m_sequenceNumber, m_sourcePort, m_urgentPointer, m_windowSize, and NS_TEST_ASSERT_MSG_EQ.
Here is the call graph for this function:
|
privatevirtual |
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test teardown
Reimplemented from ns3::TestCase.
Definition at line 123 of file tcp-header-test.cc.
|
protected |
ACK number.
Definition at line 41 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
private |
Definition at line 51 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
protected |
Destination port.
Definition at line 39 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
protected |
Flags (really a uint6_t)
Definition at line 42 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
private |
Definition at line 50 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
protected |
Sequence number.
Definition at line 40 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
protected |
Source port.
Definition at line 38 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
protected |
Urgent pointer.
Definition at line 44 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().
|
protected |
Window size.
Definition at line 43 of file tcp-header-test.cc.
Referenced by DoRun(), and TcpHeaderGetSetTestCase().