security: refactor CertificateStore class
Refs: #5075
Change-Id: I8ab92012b3acf405503ab33c9320463accc682a9
diff --git a/tests/publisher/publisher-fixture.hpp b/tests/publisher/publisher-fixture.hpp
index f5b37fa..be97a34 100644
--- a/tests/publisher/publisher-fixture.hpp
+++ b/tests/publisher/publisher-fixture.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2019, The University of Memphis,
+ * Copyright (c) 2014-2020, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -45,7 +45,7 @@
public:
PublisherFixture()
: face(m_ioService, m_keyChain, {true, true})
- , conf(face)
+ , conf(face, m_keyChain)
, confProcessor(conf)
, nlsr(face, m_keyChain, conf)
, lsdb(nlsr.m_lsdb)
@@ -58,23 +58,6 @@
}
void
- checkPrefixRegistered(const Name& prefix)
- {
- bool registerCommandEmitted = false;
- for (const auto& interest : face.sentInterests) {
- if (interest.getName().size() > 4 && interest.getName().get(3) == name::Component("register")) {
- name::Component test = interest.getName().get(4);
- ndn::nfd::ControlParameters params(test.blockFromValue());
- if (params.getName() == prefix) {
- registerCommandEmitted = true;
- break;
- }
- }
- }
- BOOST_CHECK(registerCommandEmitted);
- }
-
- void
addAdjacency(AdjLsa& lsa, const std::string& name, const std::string& faceUri, double cost)
{
Adjacent adjacency(name, ndn::FaceUri(faceUri), cost, Adjacent::STATUS_ACTIVE, 0, 0);