fw: rename "Interest rebuff" to "Interest reject"

Change-Id: I8275354a3eff6f4785187a8fb00da1d421df8460
diff --git a/daemon/fw/best-route-strategy.cpp b/daemon/fw/best-route-strategy.cpp
index 3b94531..d60411f 100644
--- a/daemon/fw/best-route-strategy.cpp
+++ b/daemon/fw/best-route-strategy.cpp
@@ -26,7 +26,7 @@
 {
   const fib::NextHopList& nexthops = fibEntry->getNextHops();
   if (nexthops.size() == 0) {
-    this->rebuffPendingInterest(pitEntry);
+    this->rejectPendingInterest(pitEntry);
     return;
   }
   
diff --git a/daemon/fw/broadcast-strategy.cpp b/daemon/fw/broadcast-strategy.cpp
index 7781377..49d0ef6 100644
--- a/daemon/fw/broadcast-strategy.cpp
+++ b/daemon/fw/broadcast-strategy.cpp
@@ -36,7 +36,7 @@
   }
 
   if (!isPropagated) {
-    this->rebuffPendingInterest(pitEntry);
+    this->rejectPendingInterest(pitEntry);
   }
 }
 
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index 4cc93d0..d438f10 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -166,9 +166,9 @@
 }
 
 void
-Forwarder::onInterestRebuff(shared_ptr<pit::Entry> pitEntry)
+Forwarder::onInterestReject(shared_ptr<pit::Entry> pitEntry)
 {
-  NFD_LOG_DEBUG("onInterestRebuff interest=" << pitEntry->getName());
+  NFD_LOG_DEBUG("onInterestReject interest=" << pitEntry->getName());
 
   // set PIT straggler timer
   this->setStragglerTimer(pitEntry);
diff --git a/daemon/fw/forwarder.hpp b/daemon/fw/forwarder.hpp
index 51932d1..6622999 100644
--- a/daemon/fw/forwarder.hpp
+++ b/daemon/fw/forwarder.hpp
@@ -73,10 +73,10 @@
   VIRTUAL_WITH_TESTS void
   onOutgoingInterest(shared_ptr<pit::Entry> pitEntry, Face& outFace);
 
-  /** \brief Interest rebuff pipeline
+  /** \brief Interest reject pipeline
    */
   VIRTUAL_WITH_TESTS void
-  onInterestRebuff(shared_ptr<pit::Entry> pitEntry);
+  onInterestReject(shared_ptr<pit::Entry> pitEntry);
 
   /** \brief Interest unsatisfied pipeline
    */
diff --git a/daemon/fw/strategy.cpp b/daemon/fw/strategy.cpp
index 078ef22..09268a8 100644
--- a/daemon/fw/strategy.cpp
+++ b/daemon/fw/strategy.cpp
@@ -63,9 +63,9 @@
 }
 
 void
-Strategy::rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry)
+Strategy::rejectPendingInterest(shared_ptr<pit::Entry> pitEntry)
 {
-  m_forwarder.onInterestRebuff(pitEntry);
+  m_forwarder.onInterestReject(pitEntry);
 }
 
 } // namespace fw
diff --git a/daemon/fw/strategy.hpp b/daemon/fw/strategy.hpp
index 311af93..edffdb3 100644
--- a/daemon/fw/strategy.hpp
+++ b/daemon/fw/strategy.hpp
@@ -43,7 +43,7 @@
    *  - If the strategy decides to forward this Interest,
    *    invoke this->sendInterest one or more times, either now or shortly after
    *  - If strategy concludes that this Interest cannot be forwarded,
-   *    invoke this->rebuffPendingInterest so that PIT entry will be deleted shortly
+   *    invoke this->rejectPendingInterest so that PIT entry will be deleted shortly
    */
   virtual void
   afterReceiveInterest(const Face& inFace,
@@ -106,7 +106,7 @@
    *  forwarded earlier, and does not need to be resent now.
    */
   VIRTUAL_WITH_TESTS void
-  rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry);
+  rejectPendingInterest(shared_ptr<pit::Entry> pitEntry);
 
 protected: // accessors
   MeasurementsAccessor&
diff --git a/tests/fw/broadcast-strategy.cpp b/tests/fw/broadcast-strategy.cpp
index 15928be..26d0687 100644
--- a/tests/fw/broadcast-strategy.cpp
+++ b/tests/fw/broadcast-strategy.cpp
@@ -41,7 +41,7 @@
   shared_ptr<pit::Entry> pitEntry = pitInsertResult.first;
 
   strategy.afterReceiveInterest(*face3, interest, fibEntry, pitEntry);
-  BOOST_CHECK_EQUAL(strategy.m_rebuffPendingInterestHistory.size(), 0);
+  BOOST_CHECK_EQUAL(strategy.m_rejectPendingInterestHistory.size(), 0);
   BOOST_CHECK_EQUAL(strategy.m_sendInterestHistory.size(), 2);
   bool hasFace1 = false;
   bool hasFace2 = false;
@@ -58,7 +58,7 @@
   BOOST_CHECK(hasFace1 && hasFace2);
 }
 
-BOOST_AUTO_TEST_CASE(Rebuff)
+BOOST_AUTO_TEST_CASE(Reject)
 {
   resetGlobalIoService();
   Forwarder forwarder;
@@ -79,7 +79,7 @@
   shared_ptr<pit::Entry> pitEntry = pitInsertResult.first;
 
   strategy.afterReceiveInterest(*face1, interest, fibEntry, pitEntry);
-  BOOST_CHECK_EQUAL(strategy.m_rebuffPendingInterestHistory.size(), 1);
+  BOOST_CHECK_EQUAL(strategy.m_rejectPendingInterestHistory.size(), 1);
   BOOST_CHECK_EQUAL(strategy.m_sendInterestHistory.size(), 0);
 }
 
diff --git a/tests/fw/strategy-tester.hpp b/tests/fw/strategy-tester.hpp
index 785fd18..0ec4770 100644
--- a/tests/fw/strategy-tester.hpp
+++ b/tests/fw/strategy-tester.hpp
@@ -32,14 +32,14 @@
   sendInterest(shared_ptr<pit::Entry> pitEntry,shared_ptr<Face> outFace);
 
   virtual void
-  rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry);
+  rejectPendingInterest(shared_ptr<pit::Entry> pitEntry);
 
 public:
   typedef boost::tuple<shared_ptr<pit::Entry>, shared_ptr<Face> > SendInterestArgs;
   std::vector<SendInterestArgs> m_sendInterestHistory;
 
-  typedef boost::tuple<shared_ptr<pit::Entry> > RebuffPendingInterestArgs;
-  std::vector<RebuffPendingInterestArgs> m_rebuffPendingInterestHistory;
+  typedef boost::tuple<shared_ptr<pit::Entry> > RejectPendingInterestArgs;
+  std::vector<RejectPendingInterestArgs> m_rejectPendingInterestHistory;
 };
 
 
@@ -53,9 +53,9 @@
 
 template<typename S>
 inline void
-StrategyTester<S>::rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry)
+StrategyTester<S>::rejectPendingInterest(shared_ptr<pit::Entry> pitEntry)
 {
-  m_rebuffPendingInterestHistory.push_back(RebuffPendingInterestArgs(pitEntry));
+  m_rejectPendingInterestHistory.push_back(RejectPendingInterestArgs(pitEntry));
 }