face: LocalControlHeader attributes

refs #1264

Change-Id: Iab8b875ea8102103390d2da37ca3c08ef58a3d55
diff --git a/tests/face/face.cpp b/tests/face/face.cpp
index 5245f51..07e3fb4 100644
--- a/tests/face/face.cpp
+++ b/tests/face/face.cpp
@@ -20,6 +20,25 @@
   BOOST_CHECK_EQUAL(face.getDescription(), "3pFsKrvWr");
 }
 
+BOOST_AUTO_TEST_CASE(LocalControlHeaderEnabled)
+{
+  DummyFace face;
+  
+  BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(), false);
+  
+  face.setLocalControlHeaderFeature(LOCAL_CONTROL_HEADER_FEATURE_IN_FACEID, true);
+  BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(), true);
+  BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(
+                         LOCAL_CONTROL_HEADER_FEATURE_IN_FACEID), true);
+  BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(
+                         LOCAL_CONTROL_HEADER_FEATURE_NEXTHOP_FACEID), false);
+  
+  face.setLocalControlHeaderFeature(LOCAL_CONTROL_HEADER_FEATURE_IN_FACEID, false);
+  BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(), false);
+  BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(
+                         LOCAL_CONTROL_HEADER_FEATURE_IN_FACEID), false);
+}
+
 BOOST_AUTO_TEST_SUITE_END()
 
 } // namespace nfd