tests: sync common testing infrastructure with ndn-cxx
Change-Id: I1e5cdcda8f6d3d9f9addc7a9f17359aedef9db7e
diff --git a/tests/test-statistics.cpp b/tests/test-statistics.cpp
index 4a5dc5b..7822b76 100644
--- a/tests/test-statistics.cpp
+++ b/tests/test-statistics.cpp
@@ -24,19 +24,19 @@
#include "lsdb.hpp"
#include "nlsr.hpp"
-#include "test-common.hpp"
+#include "tests/io-key-chain-fixture.hpp"
+#include "tests/test-common.hpp"
-#include <ndn-cxx/util/dummy-client-face.hpp>
#include <boost/lexical_cast.hpp>
namespace nlsr {
namespace test {
-class StatisticsFixture : public UnitTestTimeFixture
+class StatisticsFixture : public IoKeyChainFixture
{
public:
StatisticsFixture()
- : face(m_ioService, m_keyChain)
+ : face(m_io, m_keyChain)
, conf(face, m_keyChain)
, confProcessor(conf)
, nlsr(face, m_keyChain, conf)
@@ -47,7 +47,7 @@
// Otherwise code coverage node fails with default 60 seconds lifetime
conf.setSyncInterestLifetime(1000);
- addIdentity(conf.getRouterPrefix());
+ m_keyChain.createIdentity(conf.getRouterPrefix());
this->advanceClocks(ndn::time::milliseconds(1), 10);
face.sentInterests.clear();