Test that e2e packet flow is correct. More...
Public Member Functions | |
LteEpcE2eDataTestCase (std::string name, std::vector< EnbTestData > v) | |
Constructor. More... | |
~LteEpcE2eDataTestCase () override | |
Public Member Functions inherited from ns3::TestCase | |
TestCase (const TestCase &)=delete | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName () const |
TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
void | DoRun () override |
Implementation to actually run this TestCase. More... | |
Private Attributes | |
std::vector< EnbTestData > | m_enbTestData |
the ENB test data 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) | |
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 TestCase. More... | |
bool | IsStatusFailure () const |
Check if any tests failed. More... | |
bool | IsStatusSuccess () 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 () const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure () 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... | |
Test that e2e packet flow is correct.
Compares the data send and the data received. Test uses mostly the PDCP stats to check the performance.
Definition at line 98 of file test-lte-epc-e2e-data.cc.
LteEpcE2eDataTestCase::LteEpcE2eDataTestCase | ( | std::string | name, |
std::vector< EnbTestData > | v | ||
) |
Constructor.
name | the reference name |
v | the ENB test data |
Definition at line 115 of file test-lte-epc-e2e-data.cc.
References NS_LOG_FUNCTION.
|
override |
Definition at line 122 of file test-lte-epc-e2e-data.cc.
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 127 of file test-lte-epc-e2e-data.cc.
References ns3::LteHelper::ActivateDedicatedEpsBearer(), ns3::Ipv4AddressHelper::Assign(), ns3::NoBackhaulEpcHelper::AssignUeIpv4Address(), ns3::LteHelper::Attach(), ns3::NetDeviceContainer::Begin(), brite-generic-example::client, ns3::NodeContainer::Create(), ns3::TestCase::CreateTempDirFilename(), BearerTestData::dlClientApp, BearerTestData::dlServerApp, ns3::LteHelper::EnablePdcpTraces(), ns3::NetDeviceContainer::End(), ns3::ApplicationContainer::Get(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::NodeContainer::GetN(), ns3::TestCase::GetName(), ns3::Object::GetObject(), ns3::LteHelper::GetPdcpStats(), ns3::NoBackhaulEpcHelper::GetPgwNode(), ns3::Ipv4StaticRoutingHelper::GetStaticRouting(), ns3::NoBackhaulEpcHelper::GetUeDefaultGatewayAddress(), ns3::PointToPointHelper::Install(), ns3::MobilityHelper::Install(), ns3::LteHelper::InstallEnbDevice(), ns3::LteHelper::InstallUeDevice(), nsclick-simple-lan::internet, BearerTestData::interPacketInterval, ns3::EpcTft::PacketFilter::localPortEnd, ns3::EpcTft::PacketFilter::localPortStart, m_enbTestData, NS_ABORT_IF, NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_EQ, BearerTestData::numPkts, nsclick-simple-lan::packetSinkHelper, BearerTestData::pktSize, ns3::EpcTft::PacketFilter::remotePortEnd, ns3::EpcTft::PacketFilter::remotePortStart, ns3::Config::Reset(), ns3::Seconds(), ns3::Config::Set(), ns3::ObjectBase::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::LteHelper::SetEpcHelper(), ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), ns3::ApplicationContainer::Start(), BearerTestData::ulClientApp, and BearerTestData::ulServerApp.
|
private |