fw: introduce afterReceiveData strategy trigger
Change-Id: Ia805f1bd48f481c9b903b6ce5c388dd66fbbb7d1
refs: #4290
diff --git a/tests/daemon/fw/dummy-strategy.cpp b/tests/daemon/fw/dummy-strategy.cpp
index b37171f..1dd79dd 100644
--- a/tests/daemon/fw/dummy-strategy.cpp
+++ b/tests/daemon/fw/dummy-strategy.cpp
@@ -47,6 +47,7 @@
, afterReceiveInterest_count(0)
, beforeSatisfyInterest_count(0)
, afterContentStoreHit_count(0)
+ , afterReceiveData_count(0)
, afterReceiveNack_count(0)
{
this->setInstanceName(name);
@@ -79,7 +80,16 @@
{
++afterContentStoreHit_count;
- this->sendData(pitEntry, data, inFace);
+ Strategy::afterContentStoreHit(pitEntry, inFace, data);
+}
+
+void
+DummyStrategy::afterReceiveData(const shared_ptr<pit::Entry>& pitEntry,
+ const Face& inFace, const Data& data)
+{
+ ++afterReceiveData_count;
+
+ Strategy::afterReceiveData(pitEntry, inFace, data);
}
void