src: decouple classes from Nlsr object
refs: #1952, #2803, #3960, #4288
Change-Id: Ibe3ac3820f11e8107ee4b13e510d53c27467a6cb
diff --git a/tests/test-adjacency-list.cpp b/tests/test-adjacency-list.cpp
index aaa0915..5d37aff 100644
--- a/tests/test-adjacency-list.cpp
+++ b/tests/test-adjacency-list.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2017, The University of Memphis,
+ * Copyright (c) 2014-2019, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -24,6 +24,8 @@
#include "adjacent.hpp"
#include "conf-parameter.hpp"
+#include <ndn-cxx/util/dummy-client-face.hpp>
+
#include <boost/test/unit_test.hpp>
namespace nlsr {
@@ -85,7 +87,8 @@
adjacencies.insert(adjacencyA);
adjacencies.insert(adjacencyB);
- ConfParameter conf;
+ ndn::util::DummyClientFace face;
+ ConfParameter conf(face);
BOOST_CHECK(adjacencies.isAdjLsaBuildable(conf.getInterestRetryNumber()));
}
@@ -104,7 +107,8 @@
adjacencies.insert(adjacencyA);
adjacencies.insert(adjacencyB);
- ConfParameter conf;
+ ndn::util::DummyClientFace face;
+ ConfParameter conf(face);
conf.setInterestRetryNumber(HELLO_RETRIES_DEFAULT);
BOOST_CHECK(adjacencies.isAdjLsaBuildable(conf.getInterestRetryNumber()));
@@ -125,7 +129,8 @@
adjacencies.insert(adjacencyA);
adjacencies.insert(adjacencyB);
- ConfParameter conf;
+ ndn::util::DummyClientFace face;
+ ConfParameter conf(face);
conf.setInterestRetryNumber(HELLO_RETRIES_DEFAULT);
BOOST_CHECK(!adjacencies.isAdjLsaBuildable(conf.getInterestRetryNumber()));