20 #include "ns3/drop-tail-queue.h"
21 #include "ns3/string.h"
35 virtual void DoRun (
void);
39 :
TestCase (
"Sanity check on the drop tail queue implementation")
47 "Verify that we can actually set the attribute");
50 p1 = Create<Packet> ();
51 p2 = Create<Packet> ();
52 p3 = Create<Packet> ();
53 p4 = Create<Packet> ();
67 packet = queue->Dequeue ();
72 packet = queue->Dequeue ();
77 packet = queue->Dequeue ();
82 packet = queue->Dequeue ();
DropTailQueue unit tests.
virtual void DoRun(void)
Implementation to actually run this TestCase.
DropTail Queue TestSuite.
uint64_t GetUid(void) 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_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.