Public Member Functions | |
PieQueueDiscTestCase () | |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Private Member Functions | |
void | Enqueue (Ptr< PieQueueDisc > queue, uint32_t size, uint32_t nPkt) |
void | RunPieTest (StringValue mode) |
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 60 of file pie-queue-disc-test-suite.cc.
PieQueueDiscTestCase::PieQueueDiscTestCase | ( | ) |
Definition at line 70 of file pie-queue-disc-test-suite.cc.
|
virtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 341 of file pie-queue-disc-test-suite.cc.
References RunPieTest().
|
private |
|
private |
Definition at line 76 of file pie-queue-disc-test-suite.cc.
References ns3::ApplicationContainer::Add(), ns3::TrafficControlHelper::AddInternalQueues(), ns3::Ipv4AddressHelper::Assign(), client_start_time, client_stop_time, ns3::NodeContainer::Create(), ns3::QueueDisc::Dequeue(), ns3::QueueDisc::Enqueue(), ns3::PieQueueDisc::Stats::forcedDrop, ns3::QueueDiscContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::PieQueueDisc::GetMode(), ns3::PieQueueDisc::GetQueueSize(), ns3::Ipv4Header::GetSerializedSize(), ns3::Packet::GetUid(), global_start_time, global_stop_time, i0i2, i1i2, i2i3, i3i4, i3i5, ns3::Object::Initialize(), ns3::PacketSinkHelper::Install(), ns3::OnOffHelper::Install(), ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::Install(), ns3::TrafficControlHelper::Install(), n0n2, n1n2, n2n3, n3n4, n3n5, NS_TEST_EXPECT_MSG_EQ, NS_TEST_EXPECT_MSG_NE, port, ns3::Seconds(), ns3::OnOffHelper::SetAttribute(), ns3::ObjectBase::SetAttributeFailSafe(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::PointToPointHelper::SetQueue(), ns3::PieQueueDisc::SetQueueLimit(), ns3::TrafficControlHelper::SetRootQueueDisc(), sink_start_time, sink_stop_time, ns3::ApplicationContainer::Start(), ns3::ApplicationContainer::Stop(), and ns3::PieQueueDisc::Stats::unforcedDrop.
Referenced by DoRun().