all: InterestHeader and ContentObjectHeader refactoring to Interest and ContentObject
refs #29
diff --git a/test/ndnSIM-fib-entry.cc b/test/ndnSIM-fib-entry.cc
index 4d563c7..05d0e01 100644
--- a/test/ndnSIM-fib-entry.cc
+++ b/test/ndnSIM-fib-entry.cc
@@ -63,7 +63,7 @@
SendPacket (const std::string &prefix, uint32_t nonce)
{
Ptr<Packet> pkt = Create<Packet> (0);
- ndn::InterestHeader i;
+ ndn::Interest i;
i.SetName (Create<ndn::Name> (prefix));
i.SetNonce (nonce);
i.SetInterestLifetime (Seconds (0.5));
diff --git a/test/ndnSIM-pit.cc b/test/ndnSIM-pit.cc
index c1ba4c1..9eb9cbf 100644
--- a/test/ndnSIM-pit.cc
+++ b/test/ndnSIM-pit.cc
@@ -59,7 +59,7 @@
SendPacket (const std::string &prefix, uint32_t nonce)
{
Ptr<Packet> pkt = Create<Packet> (0);
- ndn::InterestHeader i;
+ ndn::Interest i;
i.SetName (Create<ndn::Name> (prefix));
i.SetNonce (nonce);
i.SetInterestLifetime (Seconds (0.5));
diff --git a/test/ndnSIM-serialization.cc b/test/ndnSIM-serialization.cc
index 16ddb51..2d42d93 100644
--- a/test/ndnSIM-serialization.cc
+++ b/test/ndnSIM-serialization.cc
@@ -36,7 +36,7 @@
void
InterestSerializationTest::DoRun ()
{
- InterestHeader source;
+ Interest source;
source.SetName (Create<Name> (boost::lexical_cast<Name> ("/test/test2")));
NS_TEST_ASSERT_MSG_EQ (source.GetName (), boost::lexical_cast<Name> ("/test/test2"), "set/get name failed");
@@ -58,7 +58,7 @@
packet.AddHeader (source);
//deserialization
- InterestHeader target;
+ Interest target;
packet.RemoveHeader (target);
NS_TEST_ASSERT_MSG_EQ (source.GetName () , target.GetName () , "source/target name failed");
@@ -71,7 +71,7 @@
void
ContentObjectSerializationTest::DoRun ()
{
- ContentObjectHeader source;
+ ContentObject source;
source.SetName (Create<Name> (boost::lexical_cast<Name> ("/test/test2/1")));
NS_TEST_ASSERT_MSG_EQ (source.GetName (), boost::lexical_cast<Name> ("/test/test2/1"), "set/get name failed");
@@ -87,7 +87,7 @@
packet.AddHeader (source);
//deserialization
- ContentObjectHeader target;
+ ContentObject target;
packet.RemoveHeader (target);
NS_TEST_ASSERT_MSG_EQ (source.GetName () , target.GetName () , "source/target name failed");