pit: add EndpointId field in in-record and out-record
refs: #4842
Change-Id: Id4bca4ad9c2d7c8a2fd975c0b052fb9271b6e47d
diff --git a/tests/daemon/table/cleanup.t.cpp b/tests/daemon/table/cleanup.t.cpp
index 3365a50..c6bd772 100644
--- a/tests/daemon/table/cleanup.t.cpp
+++ b/tests/daemon/table/cleanup.t.cpp
@@ -55,10 +55,10 @@
shared_ptr<Interest> interest = makeInterest(name);
shared_ptr<pit::Entry> pitEntry = pit.insert(*interest).first;
if ((i & 0x01) != 0) {
- pitEntry->insertOrUpdateInRecord(*face1, *interest);
+ pitEntry->insertOrUpdateInRecord(*face1, 0, *interest);
}
if ((i & 0x02) != 0) {
- pitEntry->insertOrUpdateOutRecord(*face1, *interest);
+ pitEntry->insertOrUpdateOutRecord(*face1, 0, *interest);
}
}
BOOST_CHECK_EQUAL(fib.size(), 300);
@@ -144,22 +144,22 @@
shared_ptr<Interest> interestA = makeInterest("/A");
shared_ptr<pit::Entry> entryA = pit.insert(*interestA).first;
- entryA->insertOrUpdateInRecord(*face1, *interestA);
- entryA->insertOrUpdateInRecord(*face2, *interestA);
- entryA->insertOrUpdateOutRecord(*face1, *interestA);
- entryA->insertOrUpdateOutRecord(*face2, *interestA);
+ entryA->insertOrUpdateInRecord(*face1, 0, *interestA);
+ entryA->insertOrUpdateInRecord(*face2, 0, *interestA);
+ entryA->insertOrUpdateOutRecord(*face1, 0, *interestA);
+ entryA->insertOrUpdateOutRecord(*face2, 0, *interestA);
// {'/A':[1,2]}
shared_ptr<Interest> interestB = makeInterest("/B");
shared_ptr<pit::Entry> entryB = pit.insert(*interestB).first;
- entryB->insertOrUpdateInRecord(*face1, *interestB);
- entryB->insertOrUpdateOutRecord(*face1, *interestB);
+ entryB->insertOrUpdateInRecord(*face1, 0, *interestB);
+ entryB->insertOrUpdateOutRecord(*face1, 0, *interestB);
// {'/A':[1,2], '/B':[1]}
shared_ptr<Interest> interestC = makeInterest("/C");
shared_ptr<pit::Entry> entryC = pit.insert(*interestC).first;
- entryC->insertOrUpdateInRecord(*face2, *interestC);
- entryC->insertOrUpdateOutRecord(*face2, *interestC);
+ entryC->insertOrUpdateInRecord(*face2, 0, *interestC);
+ entryC->insertOrUpdateOutRecord(*face2, 0, *interestC);
// {'/A':[1,2], '/B':[1], '/C':[2]}
BOOST_CHECK_EQUAL(pit.size(), 3);