fw: allow strategies to pick outgoing Interest
This commit changes outgoing Interest pipeline and Strategy API,
to give strategies an opportunity to pick an outgoing Interest that
matches the Interest table entry.
No strategy is updated in this commit.
refs #1756
Change-Id: Iffad77ef0078c437070039fca6b24a85df13bda7
diff --git a/tests/daemon/fw/strategy-tester.hpp b/tests/daemon/fw/strategy-tester.hpp
index f9d5de8..07bc0b0 100644
--- a/tests/daemon/fw/strategy-tester.hpp
+++ b/tests/daemon/fw/strategy-tester.hpp
@@ -52,12 +52,11 @@
protected:
virtual void
- sendInterest(const shared_ptr<pit::Entry>& pitEntry,
- Face& outFace,
- bool wantNewNonce = false) override
+ sendInterest(const shared_ptr<pit::Entry>& pitEntry, Face& outFace,
+ const Interest& interest) override
{
- sendInterestHistory.push_back({pitEntry->getInterest(), outFace.getId(), wantNewNonce});
- pitEntry->insertOrUpdateOutRecord(outFace, pitEntry->getInterest());
+ sendInterestHistory.push_back({pitEntry->getInterest(), outFace.getId(), interest});
+ pitEntry->insertOrUpdateOutRecord(outFace, interest);
afterAction();
}
@@ -82,7 +81,7 @@
{
Interest pitInterest;
FaceId outFaceId;
- bool wantNewNonce;
+ Interest interest;
};
std::vector<SendInterestArgs> sendInterestHistory;