face: link layer byte counts in FaceCounters
This commit declares the counters, but does not increment the new counters.
refs #1729
Change-Id: I9cd136fc65955192a92d567629a9aba2df8090f3
diff --git a/tests/daemon/mgmt/face-status-publisher-common.hpp b/tests/daemon/mgmt/face-status-publisher-common.hpp
index 0cfe6a2..0779997 100644
--- a/tests/daemon/mgmt/face-status-publisher-common.hpp
+++ b/tests/daemon/mgmt/face-status-publisher-common.hpp
@@ -53,16 +53,16 @@
}
void
- setCounters(FaceCounter nInInterests,
- FaceCounter nInDatas,
- FaceCounter nOutInterests,
- FaceCounter nOutDatas)
+ setCounters(PacketCounter::rep nInInterests,
+ PacketCounter::rep nInDatas,
+ PacketCounter::rep nOutInterests,
+ PacketCounter::rep nOutDatas)
{
FaceCounters& counters = getMutableCounters();
- counters.getNInInterests() = nInInterests;
- counters.getNInDatas() = nInDatas;
- counters.getNOutInterests() = nOutInterests;
- counters.getNOutDatas() = nOutDatas;
+ counters.getNInInterests().set(nInInterests);
+ counters.getNInDatas().set(nInDatas);
+ counters.getNOutInterests().set(nOutInterests);
+ counters.getNOutDatas().set(nOutDatas);
}