tests: refactor EthernetFixture
Also, use BOOST_TEST_INFO_SCOPE in a few places.
Change-Id: I113f326207825949ed9d3d22ade0654976d49b76
diff --git a/tests/daemon/face/udp-factory.t.cpp b/tests/daemon/face/udp-factory.t.cpp
index 106ba0b..fd83656 100644
--- a/tests/daemon/face/udp-factory.t.cpp
+++ b/tests/daemon/face/udp-factory.t.cpp
@@ -69,7 +69,7 @@
}
}
}
- this->copyRealNetifsToNetmon();
+ copyRealNetifsToNetmon();
}
shared_ptr<Face>
@@ -106,16 +106,17 @@
std::vector<const Face*>
listUdp4McastFaces(ndn::nfd::LinkType linkType = ndn::nfd::LINK_TYPE_MULTI_ACCESS) const
{
- return this->listFacesByScheme("udp4", linkType);
+ return listFacesByScheme("udp4", linkType);
}
std::vector<const Face*>
listUdp6McastFaces(ndn::nfd::LinkType linkType = ndn::nfd::LINK_TYPE_MULTI_ACCESS) const
{
- return this->listFacesByScheme("udp6", linkType);
+ return listFacesByScheme("udp6", linkType);
}
- /** \brief Determine whether \p netif has at least one IP address of the given family.
+ /**
+ * \brief Determine whether \p netif has at least one IP address of the given family.
*/
static bool
hasAddressFamily(const NetworkInterface& netif, ndn::net::AddressFamily af)
@@ -124,7 +125,8 @@
[af] (const auto& a) { return a.getFamily() == af; });
}
- /** \brief Determine whether a UDP multicast face is created on \p netif.
+ /**
+ * \brief Determine whether a UDP multicast face is created on \p netif.
*/
static bool
isFaceOnNetif(const Face& face, const NetworkInterface& netif)