Public Member Functions | |
DualStackTestCase () | |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
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... | |
void | ServerHandleConnectionCreated1 (Ptr< Socket > s, const Address &addr) |
void | ServerHandleConnectionCreated2 (Ptr< Socket > s, const Address &addr) |
void | ServerHandleConnectionCreated3 (Ptr< Socket > s, const Address &addr) |
void | ServerHandleConnectionCreated4 (Ptr< Socket > s, const Address &addr) |
void | SetUpSim () |
Private Attributes | |
Ptr< Node > | node0 |
Ptr< Node > | node1 |
Address | receivedAddr1 |
Address | receivedAddr2 |
Address | receivedAddr3 |
Address | receivedAddr4 |
Ptr< Socket > | server1 |
Ptr< Socket > | server2 |
Ptr< Socket > | server3 |
Ptr< Socket > | server4 |
Ptr< Socket > | source1 |
Ptr< Socket > | source2 |
Ptr< Socket > | source3 |
Ptr< Socket > | source4 |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
TestCase (std::string name) | |
Constructor. More... | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
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... | |
Definition at line 54 of file ipv6-dual-stack-test-suite.cc.
DualStackTestCase::DualStackTestCase | ( | ) |
Definition at line 221 of file ipv6-dual-stack-test-suite.cc.
References receivedAddr1, receivedAddr2, receivedAddr3, and receivedAddr4.
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 231 of file ipv6-dual-stack-test-suite.cc.
References ns3::Socket::Bind(), ns3::Socket::Connect(), ns3::Address::IsInvalid(), ns3::Socket::Listen(), ns3::MakeCallback(), ns3::MakeNullCallback(), NS_TEST_EXPECT_MSG_EQ, receivedAddr1, receivedAddr2, receivedAddr3, receivedAddr4, server1, server2, server3, server4, ServerHandleConnectionCreated1(), ServerHandleConnectionCreated2(), ServerHandleConnectionCreated3(), ServerHandleConnectionCreated4(), ns3::Socket::SetAcceptCallback(), SetUpSim(), source1, source2, source3, and source4.
|
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 296 of file ipv6-dual-stack-test-suite.cc.
|
private |
Definition at line 193 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
|
private |
Definition at line 200 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
|
private |
Definition at line 207 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
|
private |
Definition at line 214 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
|
private |
Definition at line 162 of file ipv6-dual-stack-test-suite.cc.
References AddSimpleNetDevice(), third::channel, CreateDualStackNode(), ns3::SocketFactory::CreateSocket(), ns3::Socket::CreateSocket(), and ns3::SimpleNetDevice::SetChannel().
Referenced by DoRun().
Definition at line 63 of file ipv6-dual-stack-test-suite.cc.
Definition at line 64 of file ipv6-dual-stack-test-suite.cc.
Referenced by wifi_intrastructure_link.WifiLink::destroy().
|
private |
Definition at line 81 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun(), and DualStackTestCase().
|
private |
Definition at line 82 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun(), and DualStackTestCase().
|
private |
Definition at line 83 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun(), and DualStackTestCase().
|
private |
Definition at line 84 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun(), and DualStackTestCase().
Definition at line 71 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
Definition at line 72 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
Definition at line 73 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
Definition at line 74 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
Definition at line 76 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
Definition at line 77 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
Definition at line 78 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().
Definition at line 79 of file ipv6-dual-stack-test-suite.cc.
Referenced by DoRun().