22 #include "ns3/packet.h" 
   23 #include "ns3/simulator.h" 
   24 #include "ns3/flame-header.h" 
   25 #include "ns3/flame-rtable.h" 
   34     TestCase (
"FlameHeader roundtrip serialization")
 
   48   a.SetProtocol (0x806);
 
   53   NS_TEST_ASSERT_MSG_EQ (b, a, 
"FlameHeader roundtrip serialization works");
 
   89 FlameRtableTest::FlameRtableTest () :
 
   92   dst (
"01:00:00:01:00:01"), 
 
   93   hop (
"01:00:00:01:00:03"),
 
  105   table->AddPath (dst, hop, iface, cost, seqnum);
 
  106   NS_TEST_EXPECT_MSG_EQ ((table->Lookup (dst) == correct), 
true, 
"Routing table lookup works");
 
  110 FlameRtableTest::TestAddPath ()
 
  112   table->AddPath (dst, hop, iface, cost, seqnum);
 
  116 FlameRtableTest::TestExpire ()
 
  120   NS_TEST_EXPECT_MSG_EQ (table->Lookup (dst).IsValid (), 
false, 
"Routing table records expirations works");
 
  126   table = CreateObject<FlameRtable> ();
 
  145 FlameTestSuite::FlameTestSuite ()
 
uint32_t RemoveHeader(Header &header)
 
Unit test for FlameRtable. 
 
static EventId Schedule(Time const &time, MEM mem_ptr, OBJ obj)
 
void TestLookup()
Test Add apth and lookup path;. 
 
TestCase(std::string name)
 
static void Destroy(void)
 
Route lookup result, return type of LookupXXX methods. 
 
void DoRun()
Implementation to actually run this test case. 
 
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual test case to this test suite. 
 
Time Seconds(double seconds)
create ns3::Time instances in units of seconds. 
 
void AddHeader(const Header &header)