model: Change NetDeviceFace into NetDeviceLinkService to match NFD 0.4+ Face model
ndnSIM (for now) intentionally uses LinkService instead of Transport for
optimization purposes and in order to preserve ns3::Packet Tags. This
may be fixed in the future when there is a different mechanism to
propagate ns3 Tags or Tags are no longer necessary.
Change-Id: I2aeef8f37d587374a1c9fe04386e33b6fde83fe0
Refs: #3560
diff --git a/tests/unit-tests/model/ndn-net-device-face.t.cpp b/tests/unit-tests/model/ndn-net-device-face.t.cpp
index 0fad181..aad8c01 100644
--- a/tests/unit-tests/model/ndn-net-device-face.t.cpp
+++ b/tests/unit-tests/model/ndn-net-device-face.t.cpp
@@ -18,7 +18,7 @@
**/
-#include "model/ndn-net-device-face.hpp"
+#include "model/ndn-net-device-link-service.hpp"
#include "../tests-common.hpp"
@@ -53,11 +53,11 @@
Simulator::Stop(Seconds(20.001));
Simulator::Run();
- BOOST_CHECK_EQUAL(getFace("1", "2")->getFaceStatus().getNOutInterests(), 100);
- BOOST_CHECK_EQUAL(getFace("1", "2")->getFaceStatus().getNInDatas(), 100);
+ BOOST_CHECK_EQUAL(getFace("1", "2")->getCounters().nOutInterests, 100);
+ BOOST_CHECK_EQUAL(getFace("1", "2")->getCounters().nInData, 100);
- BOOST_CHECK_EQUAL(getFace("2", "1")->getFaceStatus().getNInInterests(), 100);
- BOOST_CHECK_EQUAL(getFace("2", "1")->getFaceStatus().getNOutDatas(), 100);
+ BOOST_CHECK_EQUAL(getFace("2", "1")->getCounters().nInInterests, 100);
+ BOOST_CHECK_EQUAL(getFace("2", "1")->getCounters().nOutData, 100);
}
BOOST_AUTO_TEST_SUITE_END()