tests: add support for link-local addresses in getTestIp
Change-Id: If57cb93f1c25a18b680aef12895ee5924ca90cfa
diff --git a/tests/daemon/face/unicast-udp-transport.t.cpp b/tests/daemon/face/unicast-udp-transport.t.cpp
index abb3a58..e66dc8b 100644
--- a/tests/daemon/face/unicast-udp-transport.t.cpp
+++ b/tests/daemon/face/unicast-udp-transport.t.cpp
@@ -36,7 +36,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesLocalIpv4)
{
- auto address = getTestIp<AddressFamily::V4>(LoopbackAddress::Yes);
+ auto address = getTestIp(AddressFamily::V4, AddressScope::Loopback);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -52,7 +52,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesLocalIpv6)
{
- auto address = getTestIp<AddressFamily::V6>(LoopbackAddress::Yes);
+ auto address = getTestIp(AddressFamily::V6, AddressScope::Loopback);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -68,7 +68,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesNonLocalIpv4)
{
- auto address = getTestIp<AddressFamily::V4>(LoopbackAddress::No);
+ auto address = getTestIp(AddressFamily::V4, AddressScope::Global);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -86,7 +86,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesNonLocalIpv6)
{
- auto address = getTestIp<AddressFamily::V6>(LoopbackAddress::No);
+ auto address = getTestIp(AddressFamily::V6, AddressScope::Global);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -104,7 +104,7 @@
BOOST_AUTO_TEST_CASE(PersistencyChange)
{
- auto address = getTestIp<AddressFamily::V4>();
+ auto address = getTestIp(AddressFamily::V4);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -115,7 +115,7 @@
BOOST_AUTO_TEST_CASE(ExpirationTime)
{
- auto address = getTestIp<AddressFamily::V4>();
+ auto address = getTestIp(AddressFamily::V4);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address, ndn::nfd::FACE_PERSISTENCY_ON_DEMAND);
BOOST_CHECK_NE(transport->getExpirationTime(), time::steady_clock::TimePoint::max());
@@ -129,7 +129,7 @@
BOOST_AUTO_TEST_CASE(IdleClose)
{
- auto address = getTestIp<AddressFamily::V4>();
+ auto address = getTestIp(AddressFamily::V4);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address, ndn::nfd::FACE_PERSISTENCY_ON_DEMAND);
@@ -162,7 +162,7 @@
BOOST_AUTO_TEST_CASE_TEMPLATE(RemoteClose, Persistency, RemoteClosePersistencies)
{
- auto address = getTestIp<AddressFamily::V4>();
+ auto address = getTestIp(AddressFamily::V4, AddressScope::Loopback);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address, Persistency::value);
@@ -188,7 +188,7 @@
BOOST_AUTO_TEST_CASE(RemoteClosePermanent)
{
- auto address = getTestIp<AddressFamily::V4>();
+ auto address = getTestIp(AddressFamily::V4, AddressScope::Loopback);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address, ndn::nfd::FACE_PERSISTENCY_PERMANENT);