security: refactor CertificateStore class
Refs: #5075
Change-Id: I8ab92012b3acf405503ab33c9320463accc682a9
diff --git a/tests/test-common.hpp b/tests/test-common.hpp
index 339fd82..49238ad 100644
--- a/tests/test-common.hpp
+++ b/tests/test-common.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.
*
@@ -24,9 +24,10 @@
#include "common.hpp"
#include "conf-parameter.hpp"
+#include "identity-management-fixture.hpp"
#include "boost-test.hpp"
-#include "identity-management-fixture.hpp"
+#include "route/fib.hpp"
#include <boost/asio.hpp>
@@ -45,6 +46,9 @@
ndn::Data&
signData(ndn::Data& data);
+void
+checkPrefixRegistered(const ndn::util::DummyClientFace& face, const ndn::Name& prefix);
+
/** \brief add a fake signature to Data
*/
inline shared_ptr<ndn::Data>
@@ -177,11 +181,13 @@
public:
DummyConfFileProcessor(ConfParameter& conf,
int32_t protocol = SYNC_PROTOCOL_PSYNC,
- int32_t hyperbolicState = HYPERBOLIC_STATE_OFF)
+ int32_t hyperbolicState = HYPERBOLIC_STATE_OFF,
+ ndn::Name networkName = "/ndn", ndn::Name siteName = "/site",
+ ndn::Name routerName = "/%C1.Router/this-router")
{
- conf.setNetwork("/ndn");
- conf.setSiteName("/site");
- conf.setRouterName("/%C1.Router/this-router");
+ conf.setNetwork(networkName);
+ conf.setSiteName(siteName);
+ conf.setRouterName(routerName);
conf.buildRouterAndSyncUserPrefix();
conf.setSyncProtocol(protocol);