tools: Fixing bugs in nfd-status
Also in this commit: implementing const_reverse_iterator in FaceTable.
It also would be good to have reverse iterator in Fib, but not strictly
necessary.
Change-Id: Ie9cf849b718f5db76db2957b4452790f9ae68fd3
Refs: #1378
diff --git a/tests/mgmt/face-manager.cpp b/tests/mgmt/face-manager.cpp
index 45a609f..d7eb176 100644
--- a/tests/mgmt/face-manager.cpp
+++ b/tests/mgmt/face-manager.cpp
@@ -1147,7 +1147,7 @@
uint64_t filler = std::numeric_limits<uint64_t>::max() - 1;
dummy->setCounters(filler, filler, filler, filler);
- m_referenceFaces.push_front(dummy);
+ m_referenceFaces.push_back(dummy);
add(dummy);
}
@@ -1158,7 +1158,7 @@
uint64_t filler = std::numeric_limits<uint32_t>::max() - 1;
dummy->setCounters(filler, filler, filler, filler);
- m_referenceFaces.push_front(dummy);
+ m_referenceFaces.push_back(dummy);
add(dummy);
}
diff --git a/tests/mgmt/face-status-publisher.cpp b/tests/mgmt/face-status-publisher.cpp
index eb9946c..0f758bc 100644
--- a/tests/mgmt/face-status-publisher.cpp
+++ b/tests/mgmt/face-status-publisher.cpp
@@ -11,9 +11,9 @@
NFD_LOG_INIT("FaceStatusPublisherTest");
-BOOST_FIXTURE_TEST_SUITE(MgmtFaceManager, FaceStatusPublisherFixture)
+BOOST_FIXTURE_TEST_SUITE(MgmtFaceSatusPublisher, FaceStatusPublisherFixture)
-BOOST_AUTO_TEST_CASE(TestFaceStatusPublisher)
+BOOST_AUTO_TEST_CASE(EncodingDecoding)
{
Name commandName("/localhost/nfd/faces/list");
shared_ptr<Interest> command(make_shared<Interest>(commandName));
@@ -28,7 +28,7 @@
uint64_t filler = std::numeric_limits<uint64_t>::max() - 1;
dummy->setCounters(filler, filler, filler, filler);
- m_referenceFaces.push_front(dummy);
+ m_referenceFaces.push_back(dummy);
add(dummy);
}
@@ -39,7 +39,7 @@
uint64_t filler = std::numeric_limits<uint32_t>::max() - 1;
dummy->setCounters(filler, filler, filler, filler);
- m_referenceFaces.push_front(dummy);
+ m_referenceFaces.push_back(dummy);
add(dummy);
}