23 #include "ns3/lollipop-counter.h" 40 virtual void DoRun (
void);
46 :
TestCase (
"Lollipop Counter implementation")
67 greater = counter8a > counter8b;
68 lesser = counter8a < counter8b;
69 equal = counter8a == counter8b;
80 greater = counter8a > counter8b;
81 lesser = counter8a < counter8b;
82 equal = counter8a == counter8b;
93 greater = counter8a > counter8b;
94 lesser = counter8a < counter8b;
95 equal = counter8a == counter8b;
106 greater = counter8a > counter8b;
107 lesser = counter8a < counter8b;
108 equal = counter8a == counter8b;
119 greater = counter8a > counter8b;
120 lesser = counter8a < counter8b;
121 equal = counter8a == counter8b;
132 greater = counter8a > counter8b;
133 lesser = counter8a < counter8b;
134 equal = counter8a == counter8b;
143 counter8b = counter8a++;
148 counter8b = ++counter8a;
Lollipop Counter TestSuite.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
bool IsComparable(const LollipopCounter &val) const
Checks if two counters are comparable (i.e., not desynchronized).
LolipopCounterTestSuite()
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.
virtual void DoRun(void)
Implementation to actually run this TestCase.
static LolipopCounterTestSuite g_lollipopCounterTestSuite
Static variable for test initialization.
Template class implementing a Lollipop counter as defined in RFC 8505, RFC 6550, and [Perlman83]...