utility: avoid deprecated ndn::nfd::Controller(Face&) constructor
refs #2039 Change-Id: I1ffa2219f86a3d704e67c018c9c3dd6f87476346
This commit is contained in:
1 parent
b7079a11a3
commit
ee29a03a66
1 file changed
+3
-1
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "utility/face-controller.hpp"
|
||||
|
||||
#include <ndn-cxx/security/key-chain.hpp>
|
||||
#include <ndn-cxx/management/nfd-controller.hpp>
|
||||
|
||||
namespace nlsr {
|
||||
@@ -40,7 +41,7 @@ public:
|
||||
FaceControllerFixture()
|
||||
: face(ndn::makeDummyFace())
|
||||
, interests(face->m_sentInterests)
|
||||
, controller(ndn::ref(*face))
|
||||
, controller(*face, keyChain)
|
||||
, faceManager(g_ioService, controller)
|
||||
{
|
||||
}
|
||||
@@ -66,6 +67,7 @@ public:
|
||||
|
||||
public:
|
||||
shared_ptr<ndn::DummyFace> face;
|
||||
ndn::KeyChain keyChain;
|
||||
std::vector<Interest>& interests;
|
||||
ndn::nfd::Controller controller;
|
||||
util::FaceController faceManager;
|
||||
|
||||
Reference in new issue
Block a user