tests: test IP transports under various combos of address family/scope
In particular, link-local addresses are now tested as well.
Additionally, WebSocketTransport send/receive tests are extended
to check transport counters.
Change-Id: I5b35f498a5d8d70cb1f7a2bea3ce99d22370e050
Refs: #1428
diff --git a/tests/daemon/face/unicast-udp-transport-fixture.hpp b/tests/daemon/face/unicast-udp-transport-fixture.hpp
index f3c5165..e30a6a2 100644
--- a/tests/daemon/face/unicast-udp-transport-fixture.hpp
+++ b/tests/daemon/face/unicast-udp-transport-fixture.hpp
@@ -30,7 +30,6 @@
#include "face/face.hpp"
#include "dummy-receive-link-service.hpp"
-#include "test-netif-ip.hpp"
#include "tests/limited-io.hpp"
namespace nfd {
@@ -47,13 +46,12 @@
UnicastUdpTransportFixture()
: transport(nullptr)
, remoteSocket(g_io)
- , defaultAddr(getTestIp(AddressFamily::V4, AddressScope::Loopback))
, receivedPackets(nullptr)
{
}
void
- initialize(ip::address address = ip::address_v4::loopback(),
+ initialize(ip::address address,
ndn::nfd::FacePersistency persistency = ndn::nfd::FACE_PERSISTENCY_PERSISTENT)
{
udp::socket sock(g_io);
@@ -111,7 +109,6 @@
UnicastUdpTransport* transport;
udp::endpoint localEp;
udp::socket remoteSocket;
- const ip::address defaultAddr;
std::vector<Transport::Packet>* receivedPackets;
private: