src: set best-route strategy for certificate prefixes
refs: #4881
Change-Id: I655c261233e478bf01ff298b74af5eb62a33ffaf
diff --git a/tests/communication/test-sync-logic-handler.cpp b/tests/communication/test-sync-logic-handler.cpp
index b94bcb5..4dc6346 100644
--- a/tests/communication/test-sync-logic-handler.cpp
+++ b/tests/communication/test-sync-logic-handler.cpp
@@ -105,7 +105,8 @@
// Actual testing done here -- signal function callback
ndn::util::signal::ScopedConnection connection = this->sync.onNewLsa->connect(
- [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber) {
+ [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber,
+ const ndn::Name& originRouter) {
BOOST_CHECK_EQUAL(ndn::Name{updateName}, routerName);
BOOST_CHECK_EQUAL(sequenceNumber, syncSeqNo);
});
@@ -129,7 +130,8 @@
std::string updateName = this->updateNamePrefix + std::to_string(lsaType);
ndn::util::signal::ScopedConnection connection = this->sync.onNewLsa->connect(
- [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber) {
+ [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber,
+ const ndn::Name& originRouter) {
BOOST_CHECK_EQUAL(ndn::Name{updateName}, routerName);
BOOST_CHECK_EQUAL(sequenceNumber, syncSeqNo);
});
@@ -152,7 +154,8 @@
std::string updateName = this->updateNamePrefix + std::to_string(lsaType);
ndn::util::signal::ScopedConnection connection = this->sync.onNewLsa->connect(
- [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber) {
+ [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber,
+ const ndn::Name& originRouter) {
BOOST_CHECK_EQUAL(ndn::Name{updateName}, routerName);
BOOST_CHECK_EQUAL(sequenceNumber, syncSeqNo);
});
@@ -178,7 +181,8 @@
.append(std::to_string(lsaType));
ndn::util::signal::ScopedConnection connection = this->sync.onNewLsa->connect(
- [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber) {
+ [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber,
+ const ndn::Name& originRouter) {
BOOST_FAIL("Updates for self should not be emitted!");
});
@@ -199,7 +203,8 @@
updateName.append(this->conf.getRouterName()).append(std::to_string(lsaType));
ndn::util::signal::ScopedConnection connection = this->sync.onNewLsa->connect(
- [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber) {
+ [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber,
+ const ndn::Name& originRouter) {
BOOST_FAIL("Malformed updates should not be emitted!");
});
@@ -221,7 +226,8 @@
const uint64_t sequenceNumber = 1;
SyncLogicHandler sync{this->face, testLsaAlwaysFalse, this->conf};
ndn::util::signal::ScopedConnection connection = sync.onNewLsa->connect(
- [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber) {
+ [&] (const ndn::Name& routerName, const uint64_t& sequenceNumber,
+ const ndn::Name& originRouter) {
BOOST_FAIL("An update for an LSA with non-new sequence number should not emit!");
});