face: use NetworkMonitor::listNetworkInterfaces() in tests
refs #4021
Change-Id: I6daccc3872a0c6b2e2e49390bc5881c796503926
diff --git a/tests/daemon/face/unicast-udp-transport.t.cpp b/tests/daemon/face/unicast-udp-transport.t.cpp
index c73e5e6..abb3a58 100644
--- a/tests/daemon/face/unicast-udp-transport.t.cpp
+++ b/tests/daemon/face/unicast-udp-transport.t.cpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
@@ -36,7 +36,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesLocalIpv4)
{
- auto address = getTestIp<ip::address_v4>(LoopbackAddress::Yes);
+ auto address = getTestIp<AddressFamily::V4>(LoopbackAddress::Yes);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -52,7 +52,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesLocalIpv6)
{
- auto address = getTestIp<ip::address_v6>(LoopbackAddress::Yes);
+ auto address = getTestIp<AddressFamily::V6>(LoopbackAddress::Yes);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -68,7 +68,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesNonLocalIpv4)
{
- auto address = getTestIp<ip::address_v4>(LoopbackAddress::No);
+ auto address = getTestIp<AddressFamily::V4>(LoopbackAddress::No);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -86,7 +86,7 @@
BOOST_AUTO_TEST_CASE(StaticPropertiesNonLocalIpv6)
{
- auto address = getTestIp<ip::address_v6>(LoopbackAddress::No);
+ auto address = getTestIp<AddressFamily::V6>(LoopbackAddress::No);
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address);
@@ -104,7 +104,7 @@
BOOST_AUTO_TEST_CASE(PersistencyChange)
{
- auto address = getTestIp<ip::address_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<ip::address_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<ip::address_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<ip::address_v4>();
+ auto address = getTestIp<AddressFamily::V4>();
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address, Persistency::value);
@@ -188,7 +188,7 @@
BOOST_AUTO_TEST_CASE(RemoteClosePermanent)
{
- auto address = getTestIp<ip::address_v4>();
+ auto address = getTestIp<AddressFamily::V4>();
SKIP_IF_IP_UNAVAILABLE(address);
initialize(address, ndn::nfd::FACE_PERSISTENCY_PERMANENT);