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 ();
 DropTail Queue TestSuite. 
Smart pointer class similar to boost::intrusive_ptr. 
Hold variables of type string. 
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not. 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite. 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
DropTailQueue unit tests. 
static DropTailQueueTestSuite g_dropTailQueueTestSuite
Static variable for test initialization. 
This test suite implements a Unit Test.