fw: UnsolicitedDataPolicy::getPolicyNames

refs #2181

Change-Id: Ie2abcd7503d1079734e6386fbab37cadd186e07c
diff --git a/tests/daemon/fw/unsolicited-data-policy.t.cpp b/tests/daemon/fw/unsolicited-data-policy.t.cpp
index fd6b020..71f19b2 100644
--- a/tests/daemon/fw/unsolicited-data-policy.t.cpp
+++ b/tests/daemon/fw/unsolicited-data-policy.t.cpp
@@ -84,6 +84,15 @@
 BOOST_AUTO_TEST_SUITE(Fw)
 BOOST_FIXTURE_TEST_SUITE(TestUnsolicitedDataPolicy, UnsolicitedDataPolicyFixture)
 
+BOOST_AUTO_TEST_CASE(GetPolicyNames)
+{
+  std::set<std::string> policyNames = UnsolicitedDataPolicy::getPolicyNames();
+  BOOST_CHECK_EQUAL(policyNames.count("drop-all"), 1);
+  BOOST_CHECK_EQUAL(policyNames.count("admit-local"), 1);
+  BOOST_CHECK_EQUAL(policyNames.count("admit-network"), 1);
+  BOOST_CHECK_EQUAL(policyNames.count("admit-all"), 1);
+}
+
 template<typename Policy, bool shouldAdmitLocal, bool shouldAdmitNonLocal>
 struct FaceScopePolicyTest
 {