face: declare face counters
refs #1280
Change-Id: Ia1c50ab2b31d6131728489b3b038dc6f7608266f
diff --git a/tests/face/face.cpp b/tests/face/face.cpp
index 3fb4ea4..5f8ab6e 100644
--- a/tests/face/face.cpp
+++ b/tests/face/face.cpp
@@ -40,6 +40,16 @@
LOCAL_CONTROL_HEADER_FEATURE_IN_FACEID), false);
}
+BOOST_AUTO_TEST_CASE(Counters)
+{
+ DummyFace face;
+ const FaceCounters& counters = face.getCounters();
+ BOOST_CHECK_EQUAL(counters.getInInterest() , 0);
+ BOOST_CHECK_EQUAL(counters.getInData() , 0);
+ BOOST_CHECK_EQUAL(counters.getOutInterest(), 0);
+ BOOST_CHECK_EQUAL(counters.getOutData() , 0);
+}
+
BOOST_AUTO_TEST_SUITE_END()
} // namespace nfd