Inheritance diagram for ns3::TimestampTestCase:
Collaboration diagram for ns3::TimestampTestCase:Public Types | |
| enum | Configuration { DISABLED, ENABLED_CLIENT, ENABLED_SERVER, ENABLED } |
Public Types inherited from ns3::TestCase | |
| enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
| How long the test takes to execute. More... | |
Public Member Functions | |
| TimestampTestCase (TimestampTestCase::Configuration conf) | |
Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () |
| Destructor. More... | |
| std::string | GetName (void) const |
Private Member Functions | |
| Ptr< SimpleNetDevice > | AddSimpleNetDevice (Ptr< Node > node, const char *ipaddr, const char *netmask) |
| Ptr< SimpleNetDevice > | AddSimpleNetDevice6 (Ptr< Node > node, Ipv6Address ipaddr, Ipv6Prefix prefix) |
| Ptr< Node > | CreateInternetNode (void) |
| Ptr< Node > | CreateInternetNode6 (void) |
| 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... | |
| void | ServerHandleConnectionCreated (Ptr< Socket > s, const Address &addr) |
| void | ServerHandleRecv (Ptr< Socket > sock) |
| void | ServerHandleSend (Ptr< Socket > sock, uint32_t sendB) |
| void | SetupDefaultSim (void) |
| void | SourceHandleRecv (Ptr< Socket > sock) |
| void | SourceHandleSend (Ptr< Socket > sock, uint32_t available) |
Private Attributes | |
| Configuration | m_configuration |
| uint32_t | m_currentServerRxBytes |
| uint32_t | m_currentServerTxBytes |
| uint32_t | m_currentSourceRxBytes |
| uint32_t | m_currentSourceTxBytes |
| uint32_t | m_serverReadSize |
| uint32_t | m_serverWriteSize |
| uint32_t | m_sourceReadSize |
| uint32_t | m_sourceWriteSize |
| uint32_t | m_totalBytes |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::TestCase | |
| TestCase (std::string name) | |
| void | AddTestCase (TestCase *testCase) NS_DEPRECATED |
| Add an individual child TestCase case to this TestCase. More... | |
| void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
| Add an individual child TestCase to this test suite. More... | |
| bool | GetErrorStatus (void) const NS_DEPRECATED |
| 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 54 of file tcp-timestamp-test.cc.
| Enumerator | |
|---|---|
| DISABLED | |
| ENABLED_CLIENT | |
| ENABLED_SERVER | |
| ENABLED | |
Definition at line 57 of file tcp-timestamp-test.cc.
| ns3::TimestampTestCase::TimestampTestCase | ( | TimestampTestCase::Configuration | conf | ) |
Definition at line 97 of file tcp-timestamp-test.cc.
References m_configuration, m_serverReadSize, m_serverWriteSize, m_sourceReadSize, m_sourceWriteSize, and m_totalBytes.
|
private |
Definition at line 256 of file tcp-timestamp-test.cc.
References ns3::Node::AddDevice(), ns3::Mac48Address::Allocate(), ns3::Mac48Address::ConvertFrom(), and ns3::Object::GetObject().
Referenced by SetupDefaultSim().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 229 of file tcp-timestamp-test.cc.
References ns3::Object::AggregateObject().
Referenced by SetupDefaultSim().
Here is the call graph for this function:
Here is the caller 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 109 of file tcp-timestamp-test.cc.
References m_currentServerRxBytes, m_currentServerTxBytes, m_currentSourceRxBytes, m_currentSourceTxBytes, m_totalBytes, NS_TEST_EXPECT_MSG_EQ, ns3::Simulator::Run(), and SetupDefaultSim().
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 134 of file tcp-timestamp-test.cc.
References ns3::Simulator::Destroy().
Here is the call graph for this function:
|
private |
Definition at line 140 of file tcp-timestamp-test.cc.
References ns3::MakeCallback(), ServerHandleRecv(), ServerHandleSend(), ns3::Socket::SetRecvCallback(), and ns3::Socket::SetSendCallback().
Referenced by SetupDefaultSim().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 147 of file tcp-timestamp-test.cc.
References ns3::Socket::ERROR_NOTERROR, ns3::Socket::GetErrno(), ns3::Socket::GetRxAvailable(), ns3::Socket::GetTxAvailable(), m_currentServerRxBytes, m_serverReadSize, NS_FATAL_ERROR, ns3::Socket::Recv(), and ServerHandleSend().
Referenced by ServerHandleConnectionCreated().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 166 of file tcp-timestamp-test.cc.
References ns3::Socket::Close(), ns3::Socket::GetTxAvailable(), m_currentServerRxBytes, m_currentServerTxBytes, m_serverWriteSize, m_totalBytes, NS_TEST_EXPECT_MSG_EQ, and ns3::Socket::Send().
Referenced by ServerHandleConnectionCreated(), and ServerHandleRecv().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 270 of file tcp-timestamp-test.cc.
References AddSimpleNetDevice(), CreateInternetNode(), DISABLED, ENABLED, ENABLED_CLIENT, ENABLED_SERVER, ns3::Ipv4Address::GetAny(), ns3::Object::GetObject(), m_configuration, ns3::MakeCallback(), ns3::MakeNullCallback(), NS_ASSERT, port, ServerHandleConnectionCreated(), SourceHandleRecv(), and SourceHandleSend().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 207 of file tcp-timestamp-test.cc.
References ns3::Socket::Close(), ns3::Socket::ERROR_NOTERROR, ns3::Socket::GetErrno(), ns3::Socket::GetRxAvailable(), m_currentSourceRxBytes, m_sourceReadSize, m_totalBytes, NS_FATAL_ERROR, and ns3::Socket::Recv().
Referenced by SetupDefaultSim().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 190 of file tcp-timestamp-test.cc.
References ns3::Socket::GetTxAvailable(), m_currentSourceTxBytes, m_sourceWriteSize, m_totalBytes, NS_TEST_EXPECT_MSG_EQ, and ns3::Socket::Send().
Referenced by SetupDefaultSim().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 84 of file tcp-timestamp-test.cc.
Referenced by SetupDefaultSim(), and TimestampTestCase().
|
private |
Definition at line 93 of file tcp-timestamp-test.cc.
Referenced by DoRun(), ServerHandleRecv(), and ServerHandleSend().
|
private |
Definition at line 94 of file tcp-timestamp-test.cc.
Referenced by DoRun(), and ServerHandleSend().
|
private |
Definition at line 92 of file tcp-timestamp-test.cc.
Referenced by DoRun(), and SourceHandleRecv().
|
private |
Definition at line 91 of file tcp-timestamp-test.cc.
Referenced by DoRun(), and SourceHandleSend().
|
private |
Definition at line 90 of file tcp-timestamp-test.cc.
Referenced by ServerHandleRecv(), and TimestampTestCase().
|
private |
Definition at line 89 of file tcp-timestamp-test.cc.
Referenced by ServerHandleSend(), and TimestampTestCase().
|
private |
Definition at line 88 of file tcp-timestamp-test.cc.
Referenced by SourceHandleRecv(), and TimestampTestCase().
|
private |
Definition at line 87 of file tcp-timestamp-test.cc.
Referenced by SourceHandleSend(), and TimestampTestCase().
|
private |
Definition at line 86 of file tcp-timestamp-test.cc.
Referenced by DoRun(), ServerHandleSend(), SourceHandleRecv(), SourceHandleSend(), and TimestampTestCase().