face: Connect faces to the parent (unicast) or associated (multicast) channels
Change-Id: Ie7b2e8fb60050a2bc6e4f5ad053c26e121f3c3d5
Refs: #4973
diff --git a/tests/daemon/face/udp-factory.t.cpp b/tests/daemon/face/udp-factory.t.cpp
index c09fe62..0bf7e03 100644
--- a/tests/daemon/face/udp-factory.t.cpp
+++ b/tests/daemon/face/udp-factory.t.cpp
@@ -300,6 +300,17 @@
BOOST_CHECK_EQUAL(this->listUdp4McastFaces().size(), netifsV4.size());
BOOST_CHECK_EQUAL(this->listUdp6McastFaces().size(), netifsV6.size());
+ BOOST_REQUIRE_EQUAL(factory.getChannels().size(), 2);
+ for (const auto& face : this->listUdp4McastFaces()) {
+ BOOST_REQUIRE(face->getChannel().lock());
+ BOOST_CHECK_EQUAL(face->getChannel().lock()->getUri().getScheme(), "udp4");
+ }
+
+ for (const auto& face : this->listUdp6McastFaces()) {
+ BOOST_REQUIRE(face->getChannel().lock());
+ BOOST_CHECK_EQUAL(face->getChannel().lock()->getUri().getScheme(), "udp6");
+ }
+
parseConfig(CONFIG_WITHOUT_MCAST, false);
g_io.poll();
BOOST_CHECK_EQUAL(this->listUdp4McastFaces().size(), 0);