face/mgmt/fw/tools: add localUri to FaceStatus and FaceEventNotification
refs #1396
Change-Id: I6084745c62c44a409ecbd4a795cb712475e32416
diff --git a/tests/face/face.cpp b/tests/face/face.cpp
index 1ad6f52..6187035 100644
--- a/tests/face/face.cpp
+++ b/tests/face/face.cpp
@@ -25,15 +25,15 @@
BOOST_AUTO_TEST_CASE(LocalControlHeaderEnabled)
{
DummyLocalFace face;
-
+
BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(), false);
-
+
face.setLocalControlHeaderFeature(LOCAL_CONTROL_FEATURE_INCOMING_FACE_ID, true);
BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(), true);
BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(LOCAL_CONTROL_FEATURE_INCOMING_FACE_ID), true);
BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(
LOCAL_CONTROL_FEATURE_NEXT_HOP_FACE_ID), false);
-
+
face.setLocalControlHeaderFeature(LOCAL_CONTROL_FEATURE_INCOMING_FACE_ID, false);
BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(), false);
BOOST_CHECK_EQUAL(face.isLocalControlHeaderEnabled(
@@ -44,10 +44,10 @@
{
DummyFace face;
const FaceCounters& counters = face.getCounters();
- BOOST_CHECK_EQUAL(counters.getInInterest() , 0);
- BOOST_CHECK_EQUAL(counters.getInData() , 0);
- BOOST_CHECK_EQUAL(counters.getOutInterest(), 0);
- BOOST_CHECK_EQUAL(counters.getOutData() , 0);
+ BOOST_CHECK_EQUAL(counters.getNInInterests() , 0);
+ BOOST_CHECK_EQUAL(counters.getNInDatas() , 0);
+ BOOST_CHECK_EQUAL(counters.getNOutInterests(), 0);
+ BOOST_CHECK_EQUAL(counters.getNOutDatas() , 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/face/tcp.cpp b/tests/face/tcp.cpp
index b98107e..6bbe4ba 100644
--- a/tests/face/tcp.cpp
+++ b/tests/face/tcp.cpp
@@ -239,16 +239,16 @@
BOOST_CHECK_EQUAL(face2_receivedDatas [0].getName(), data1.getName());
const FaceCounters& counters1 = face1->getCounters();
- BOOST_CHECK_EQUAL(counters1.getInInterest() , 1);
- BOOST_CHECK_EQUAL(counters1.getInData() , 3);
- BOOST_CHECK_EQUAL(counters1.getOutInterest(), 3);
- BOOST_CHECK_EQUAL(counters1.getOutData() , 1);
+ BOOST_CHECK_EQUAL(counters1.getNInInterests() , 1);
+ BOOST_CHECK_EQUAL(counters1.getNInDatas() , 3);
+ BOOST_CHECK_EQUAL(counters1.getNOutInterests(), 3);
+ BOOST_CHECK_EQUAL(counters1.getNOutDatas() , 1);
const FaceCounters& counters2 = face2->getCounters();
- BOOST_CHECK_EQUAL(counters2.getInInterest() , 3);
- BOOST_CHECK_EQUAL(counters2.getInData() , 1);
- BOOST_CHECK_EQUAL(counters2.getOutInterest(), 1);
- BOOST_CHECK_EQUAL(counters2.getOutData() , 3);
+ BOOST_CHECK_EQUAL(counters2.getNInInterests() , 3);
+ BOOST_CHECK_EQUAL(counters2.getNInDatas() , 1);
+ BOOST_CHECK_EQUAL(counters2.getNOutInterests(), 1);
+ BOOST_CHECK_EQUAL(counters2.getNOutDatas() , 3);
}
BOOST_FIXTURE_TEST_CASE(EndToEnd6, EndToEndFixture)
diff --git a/tests/face/udp.cpp b/tests/face/udp.cpp
index 157602d..d4bd8bb 100644
--- a/tests/face/udp.cpp
+++ b/tests/face/udp.cpp
@@ -412,16 +412,16 @@
BOOST_CHECK_EQUAL(face1_receivedDatas [3].getName(), data3.getName());
const FaceCounters& counters1 = face1->getCounters();
- BOOST_CHECK_EQUAL(counters1.getInInterest() , 2);
- BOOST_CHECK_EQUAL(counters1.getInData() , 4);
- BOOST_CHECK_EQUAL(counters1.getOutInterest(), 3);
- BOOST_CHECK_EQUAL(counters1.getOutData() , 1);
+ BOOST_CHECK_EQUAL(counters1.getNInInterests() , 2);
+ BOOST_CHECK_EQUAL(counters1.getNInDatas() , 4);
+ BOOST_CHECK_EQUAL(counters1.getNOutInterests(), 3);
+ BOOST_CHECK_EQUAL(counters1.getNOutDatas() , 1);
const FaceCounters& counters2 = face2->getCounters();
- BOOST_CHECK_EQUAL(counters2.getInInterest() , 3);
- BOOST_CHECK_EQUAL(counters2.getInData() , 1);
- BOOST_CHECK_EQUAL(counters2.getOutInterest(), 2);
- BOOST_CHECK_EQUAL(counters2.getOutData() , 4);
+ BOOST_CHECK_EQUAL(counters2.getNInInterests() , 3);
+ BOOST_CHECK_EQUAL(counters2.getNInDatas() , 1);
+ BOOST_CHECK_EQUAL(counters2.getNOutInterests(), 2);
+ BOOST_CHECK_EQUAL(counters2.getNOutDatas() , 4);
}
BOOST_FIXTURE_TEST_CASE(EndToEnd6, EndToEndFixture)
diff --git a/tests/face/unix-stream.cpp b/tests/face/unix-stream.cpp
index 2c7c177..4d7d984 100644
--- a/tests/face/unix-stream.cpp
+++ b/tests/face/unix-stream.cpp
@@ -197,16 +197,16 @@
BOOST_CHECK_EQUAL(face2_receivedDatas [0].getName(), data1.getName());
const FaceCounters& counters1 = face1->getCounters();
- BOOST_CHECK_EQUAL(counters1.getInInterest() , 1);
- BOOST_CHECK_EQUAL(counters1.getInData() , 3);
- BOOST_CHECK_EQUAL(counters1.getOutInterest(), 3);
- BOOST_CHECK_EQUAL(counters1.getOutData() , 1);
+ BOOST_CHECK_EQUAL(counters1.getNInInterests() , 1);
+ BOOST_CHECK_EQUAL(counters1.getNInDatas() , 3);
+ BOOST_CHECK_EQUAL(counters1.getNOutInterests(), 3);
+ BOOST_CHECK_EQUAL(counters1.getNOutDatas() , 1);
const FaceCounters& counters2 = face2->getCounters();
- BOOST_CHECK_EQUAL(counters2.getInInterest() , 3);
- BOOST_CHECK_EQUAL(counters2.getInData() , 1);
- BOOST_CHECK_EQUAL(counters2.getOutInterest(), 1);
- BOOST_CHECK_EQUAL(counters2.getOutData() , 3);
+ BOOST_CHECK_EQUAL(counters2.getNInInterests() , 3);
+ BOOST_CHECK_EQUAL(counters2.getNInDatas() , 1);
+ BOOST_CHECK_EQUAL(counters2.getNOutInterests(), 1);
+ BOOST_CHECK_EQUAL(counters2.getNOutDatas() , 3);
}
BOOST_FIXTURE_TEST_CASE(MultipleAccepts, EndToEndFixture)