utility: avoid deprecated ndn::nfd::Controller(Face&) constructor
refs #2039
Change-Id: I1ffa2219f86a3d704e67c018c9c3dd6f87476346
diff --git a/tests/utility/test-face-controller.cpp b/tests/utility/test-face-controller.cpp
index d242ee7..13a5526 100644
--- a/tests/utility/test-face-controller.cpp
+++ b/tests/utility/test-face-controller.cpp
@@ -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 @@
FaceControllerFixture()
: face(ndn::makeDummyFace())
, interests(face->m_sentInterests)
- , controller(ndn::ref(*face))
+ , controller(*face, keyChain)
, faceManager(g_ioService, controller)
{
}
@@ -66,6 +67,7 @@
public:
shared_ptr<ndn::DummyFace> face;
+ ndn::KeyChain keyChain;
std::vector<Interest>& interests;
ndn::nfd::Controller controller;
util::FaceController faceManager;