tests: respect naming conventions and improve nesting of some test suites
Change-Id: I65af858bc6d10197c6ee11111fa9f7c1faa617ef
Refs: #2497
diff --git a/tests/daemon/mgmt/strategy-choice-manager.t.cpp b/tests/daemon/mgmt/strategy-choice-manager.t.cpp
index 1d8e135..56f22a7 100644
--- a/tests/daemon/mgmt/strategy-choice-manager.t.cpp
+++ b/tests/daemon/mgmt/strategy-choice-manager.t.cpp
@@ -24,14 +24,14 @@
*/
#include "mgmt/strategy-choice-manager.hpp"
-#include "nfd-manager-common-fixture.hpp"
#include "face/face.hpp"
#include "face/internal-face.hpp"
+#include "fw/strategy.hpp"
#include "table/name-tree.hpp"
#include "table/strategy-choice.hpp"
-#include "fw/strategy.hpp"
+#include "nfd-manager-common-fixture.hpp"
#include "tests/daemon/face/dummy-face.hpp"
#include "tests/daemon/fw/dummy-strategy.hpp"
#include "tests/daemon/fw/install-strategy.hpp"
@@ -77,8 +77,8 @@
StrategyChoiceManager m_manager;
};
-BOOST_FIXTURE_TEST_SUITE(Mgmt, StrategyChoiceManagerFixture)
-BOOST_AUTO_TEST_SUITE(TestStrategyChoiceManager)
+BOOST_AUTO_TEST_SUITE(Mgmt)
+BOOST_FIXTURE_TEST_SUITE(TestStrategyChoiceManager, StrategyChoiceManagerFixture)
BOOST_AUTO_TEST_CASE(SetStrategy)
{
@@ -191,11 +191,11 @@
return os;
}
-BOOST_AUTO_TEST_CASE(ListChoices)
+BOOST_AUTO_TEST_CASE(StrategyChoiceDataset)
{
size_t nPreInsertedStrategies = m_strategyChoice.size(); // the best-route strategy
std::set<Name> actualNames, actualStrategies;
- for (auto&& entry : m_strategyChoice) {
+ for (const auto& entry : m_strategyChoice) {
actualNames.insert(entry.getPrefix());
actualStrategies.insert(entry.getStrategyName());
}
@@ -239,7 +239,6 @@
BOOST_CHECK_EQUAL(actualNames.size(), 0);
BOOST_CHECK_EQUAL(actualStrategies.size(), 0);
-
BOOST_CHECK_EQUAL_COLLECTIONS(receivedRecords.begin(), receivedRecords.end(),
expectedRecords.begin(), expectedRecords.end());
}