face: refactor handling of LinkType face trait
This commit also includes some cleanups, fixes EthernetFace to report
the correct LinkType, and makes (get|set)Description non-virtual.
Change-Id: I53909d7bfa02a92641b523a766359413c966aae6
Refs: #2563
diff --git a/tests/daemon/face/tcp.t.cpp b/tests/daemon/face/tcp.t.cpp
index 70da6d1..ee2eb41 100644
--- a/tests/daemon/face/tcp.t.cpp
+++ b/tests/daemon/face/tcp.t.cpp
@@ -273,8 +273,10 @@
BOOST_REQUIRE(static_cast<bool>(face1));
BOOST_REQUIRE(static_cast<bool>(face2));
- BOOST_CHECK(face1->isOnDemand());
- BOOST_CHECK(!face2->isOnDemand());
+ BOOST_CHECK_EQUAL(face1->isOnDemand(), true);
+ BOOST_CHECK_EQUAL(face2->isOnDemand(), false);
+ BOOST_CHECK_EQUAL(face1->isMultiAccess(), false);
+ BOOST_CHECK_EQUAL(face2->isMultiAccess(), false);
BOOST_CHECK_EQUAL(face2->getRemoteUri().toString(), "tcp4://127.0.0.1:20070");
BOOST_CHECK_EQUAL(face1->getLocalUri().toString(), "tcp4://127.0.0.1:20070");