18 #include "ns3/drop-tail-queue.h"
19 #include "ns3/string.h"
34 void DoRun()
override;
38 :
TestCase(
"Sanity check on the drop tail queue implementation")
48 "Verify that we can actually set the attribute");
54 p1 = Create<Packet>();
55 p2 = Create<Packet>();
56 p3 = Create<Packet>();
57 p4 = Create<Packet>();
71 packet = queue->Dequeue();
76 packet = queue->Dequeue();
81 packet = queue->Dequeue();
86 packet = queue->Dequeue();
DropTailQueue unit tests.
void DoRun() override
Implementation to actually run this TestCase.
DropTail Queue TestSuite.
uint64_t GetUid() const
Returns the packet's Uid.
Smart pointer class similar to boost::intrusive_ptr.
Hold variables of type string.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
@ UNIT
This test suite implements a Unit Test.
static DropTailQueueTestSuite g_dropTailQueueTestSuite
Static variable for test initialization.
#define NS_TEST_EXPECT_MSG_NE(actual, limit, msg)
Test that an actual and expected (limit) value are not equal and report if not.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
Every class exported by the ns3 library is enclosed in the ns3 namespace.