table: cs::Policy::getPolicyNames
refs #3148
Change-Id: I06f66e9780b9c5c4820ba18cca5fbc9b1061eae0
diff --git a/tests/daemon/table/cs-policy-lru.t.cpp b/tests/daemon/table/cs-policy-lru.t.cpp
index 71f1764..8813de5 100644
--- a/tests/daemon/table/cs-policy-lru.t.cpp
+++ b/tests/daemon/table/cs-policy-lru.t.cpp
@@ -38,6 +38,12 @@
BOOST_AUTO_TEST_SUITE(Table)
BOOST_AUTO_TEST_SUITE(TestCsLru)
+BOOST_AUTO_TEST_CASE(Registration)
+{
+ std::set<std::string> policyNames = Policy::getPolicyNames();
+ BOOST_CHECK_EQUAL(policyNames.count("lru"), 1);
+}
+
BOOST_FIXTURE_TEST_CASE(EvictOne, UnitTestTimeFixture)
{
Cs cs(3);
diff --git a/tests/daemon/table/cs-policy-priority-fifo.t.cpp b/tests/daemon/table/cs-policy-priority-fifo.t.cpp
index 01380ef..04a613f 100644
--- a/tests/daemon/table/cs-policy-priority-fifo.t.cpp
+++ b/tests/daemon/table/cs-policy-priority-fifo.t.cpp
@@ -38,6 +38,12 @@
BOOST_AUTO_TEST_SUITE(Table)
BOOST_AUTO_TEST_SUITE(TestCsPriorityFifo)
+BOOST_AUTO_TEST_CASE(Registration)
+{
+ std::set<std::string> policyNames = Policy::getPolicyNames();
+ BOOST_CHECK_EQUAL(policyNames.count("priority_fifo"), 1);
+}
+
BOOST_FIXTURE_TEST_CASE(EvictOne, UnitTestTimeFixture)
{
Cs cs(3);