20 #include "ns3/lollipop-counter.h"
37 void DoRun()
override;
42 :
TestCase(
"Lollipop Counter implementation")
61 greater = counter8a > counter8b;
62 lesser = counter8a < counter8b;
63 equal = counter8a == counter8b;
74 greater = counter8a > counter8b;
75 lesser = counter8a < counter8b;
76 equal = counter8a == counter8b;
87 greater = counter8a > counter8b;
88 lesser = counter8a < counter8b;
89 equal = counter8a == counter8b;
100 greater = counter8a > counter8b;
101 lesser = counter8a < counter8b;
102 equal = counter8a == counter8b;
113 greater = counter8a > counter8b;
114 lesser = counter8a < counter8b;
115 equal = counter8a == counter8b;
126 greater = counter8a > counter8b;
127 lesser = counter8a < counter8b;
128 equal = counter8a == counter8b;
137 counter8b = counter8a++;
142 counter8b = ++counter8a;
Lollipop Counter TestSuite.
LolipopCounterTestSuite()
void DoRun() override
Implementation to actually run this TestCase.
Template class implementing a Lollipop counter as defined in RFC 8505, RFC 6550, and [Perlman83].
bool IsComparable(const LollipopCounter &val) const
Checks if the counter is comparable with another counter (i.e., not desynchronized).
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
static LolipopCounterTestSuite g_lollipopCounterTestSuite
Static variable for test initialization.
Every class exported by the ns3 library is enclosed in the ns3 namespace.