The TcpRateLinux Basic Test. More...
Inheritance diagram for TcpRateLinuxBasicTest:
Collaboration diagram for TcpRateLinuxBasicTest:Public Member Functions | |
| TcpRateLinuxBasicTest (uint32_t cWnd, SequenceNumber32 tailSeq, SequenceNumber32 nextTx, uint32_t lostOut, uint32_t retransOut, uint32_t testCase, std::string testName) | |
Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () |
| Destructor. More... | |
| std::string | GetName (void) const |
Private Member Functions | |
| virtual void | DoRun (void) |
| Implementation to actually run this TestCase. More... | |
| void | SendSkb (TcpTxItem *skb) |
| void | SkbDelivered (TcpTxItem *skb) |
Private Attributes | |
| uint32_t | m_cWnd |
| uint32_t | m_delivered |
| Time | m_deliveredTime |
| uint32_t | m_inFlight |
| SequenceNumber32 | m_nextTx |
| TcpRateLinux | m_rateOps |
| uint32_t | m_segmentSize |
| std::vector< TcpTxItem * > | m_skbs |
| SequenceNumber32 | m_tailSeq |
| uint32_t | m_testCase |
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) | |
| Constructor. More... | |
| void | AddTestCase (TestCase *testCase, TestDuration duration=QUICK) |
| Add an individual child TestCase to this test suite. More... | |
| TestCase * | GetParent () const |
| Get the parent of this TestCsse. More... | |
| bool | IsStatusFailure (void) const |
| Check if any tests failed. More... | |
| bool | IsStatusSuccess (void) const |
| Check if all tests passed. More... | |
| void | SetDataDir (std::string directory) |
| Set the data directory where reference trace files can be found. More... | |
| 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 |
| Check if this run should assert on failure. More... | |
| bool | MustContinueOnFailure (void) const |
| Check if this run should continue on failure. More... | |
| std::string | CreateDataDirFilename (std::string filename) |
| Construct the full path to a file in the data directory. More... | |
| std::string | CreateTempDirFilename (std::string filename) |
| Construct the full path to a file in a temporary directory. More... | |
The TcpRateLinux Basic Test.
Definition at line 44 of file tcp-rate-ops-test.cc.
| TcpRateLinuxBasicTest::TcpRateLinuxBasicTest | ( | uint32_t | cWnd, |
| SequenceNumber32 | tailSeq, | ||
| SequenceNumber32 | nextTx, | ||
| uint32_t | lostOut, | ||
| uint32_t | retransOut, | ||
| uint32_t | testCase, | ||
| std::string | testName | ||
| ) |
Definition at line 69 of file tcp-rate-ops-test.cc.
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 85 of file tcp-rate-ops-test.cc.
References m_skbs, ns3::Seconds(), SendSkb(), and SkbDelivered().
Here is the call graph for this function:
|
private |
Definition at line 108 of file tcp-rate-ops-test.cc.
References ns3::TcpRateLinux::CalculateAppLimited(), ns3::TcpTxItem::GetRateInformation(), ns3::TcpTxItem::GetSeqSize(), m_cWnd, m_delivered, ns3::TcpTxItem::RateInformation::m_delivered, m_deliveredTime, ns3::TcpTxItem::RateInformation::m_deliveredTime, m_inFlight, m_nextTx, m_rateOps, m_segmentSize, m_tailSeq, ns3::Now(), NS_TEST_ASSERT_MSG_EQ, and ns3::TcpRateLinux::SkbSent().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 128 of file tcp-rate-ops-test.cc.
References ns3::TcpTxItem::GetRateInformation(), ns3::TcpTxItem::GetSeqSize(), m_delivered, m_deliveredTime, ns3::TcpTxItem::RateInformation::m_deliveredTime, m_inFlight, ns3::TcpTxItem::RateInformation::m_isAppLimited, m_rateOps, m_testCase, Max, ns3::Now(), NS_TEST_ASSERT_MSG_EQ, and ns3::TcpRateLinux::SkbDelivered().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 58 of file tcp-rate-ops-test.cc.
Referenced by SendSkb().
|
private |
Definition at line 61 of file tcp-rate-ops-test.cc.
Referenced by SendSkb(), and SkbDelivered().
|
private |
Definition at line 62 of file tcp-rate-ops-test.cc.
Referenced by SendSkb(), and SkbDelivered().
|
private |
Definition at line 59 of file tcp-rate-ops-test.cc.
Referenced by SendSkb(), and SkbDelivered().
|
private |
Definition at line 64 of file tcp-rate-ops-test.cc.
Referenced by SendSkb().
|
private |
Definition at line 57 of file tcp-rate-ops-test.cc.
Referenced by SendSkb(), and SkbDelivered().
|
private |
Definition at line 60 of file tcp-rate-ops-test.cc.
Referenced by SendSkb().
|
private |
Definition at line 66 of file tcp-rate-ops-test.cc.
Referenced by DoRun().
|
private |
Definition at line 63 of file tcp-rate-ops-test.cc.
Referenced by SendSkb().
|
private |
Definition at line 65 of file tcp-rate-ops-test.cc.
Referenced by SkbDelivered().