Compilation fixes after upgrade to NFD 0.6.6 and removal of old-style CS
Change-Id: I5472ae71675d8419d8d6c70990182ef028803087
diff --git a/tests/other/ndn-test.cpp b/tests/other/ndn-test.cpp
index c720bd6..da86f31 100644
--- a/tests/other/ndn-test.cpp
+++ b/tests/other/ndn-test.cpp
@@ -26,7 +26,6 @@
#include <sys/time.h>
#include "ns3/ndnSIM/utils/mem-usage.hpp"
-#include "ns3/ndnSIM/model/cs/ndn-content-store.hpp"
#include "ns3/ndnSIM/utils/mem-usage.hpp"
namespace ns3 {
@@ -63,7 +62,6 @@
printStats(std::ostream& os, Time nextPrintTime, double beginRealTime);
private:
- std::string m_oldContentStore;
size_t m_csSize;
double m_interestRate;
bool m_shouldEvaluatePit;
@@ -110,16 +108,9 @@
if (pitSize != 0)
pitCount += pitSize;
- if (true != true) {
- Ptr<ndn::ContentStore> cs = (*node)->GetObject<ndn::ContentStore>();
- if (cs != 0)
- csCount += cs->GetSize();
- }
- else {
- auto csSize = (*node)->GetObject<ndn::L3Protocol>()->getForwarder()->getCs().size();
- if (csSize != 0)
- csCount += csSize;
- }
+ auto csSize = (*node)->GetObject<ndn::L3Protocol>()->getForwarder()->getCs().size();
+ if (csSize != 0)
+ csCount += csSize;
}
os << "pit:" << pitCount << "\t";
@@ -163,9 +154,6 @@
// Read optional command-line parameters (e.g., enable visualizer with ./waf --run=<> --visualize
CommandLine cmd;
- cmd.AddValue("old-cs", "Old content store to use "
- "(e.g., ns3::ndn::cs::Lru, ns3::ndn::cs::Lfu, ...)",
- m_oldContentStore);
cmd.AddValue("cs-size", "Maximum number of cached packets per node", m_csSize);
cmd.AddValue("rate", "Interest rate", m_interestRate);
cmd.AddValue("pit", "Perform PIT evaluation if this parameter is true",
@@ -189,10 +177,6 @@
ndn::StackHelper ndnHelper;
ndnHelper.setCsSize(m_csSize);
- if (!m_oldContentStore.empty()) {
- ndnHelper.SetOldContentStore(m_oldContentStore, "MaxSize", std::to_string(m_csSize));
- }
-
ndnHelper.InstallAll();
ndn::FibHelper::AddRoute(nodes.Get(0), "/", nodes.Get(1), 10);