fw: Add Random Forwarding Strategy
Implement a forwarding strategy that chooses a random outgoing face,
excluding the incoming face of an Interest packet.
Refs: #4992
Change-Id: I056cd0f05463f5f0742c6adcb32ec1df8ef7529b
diff --git a/tests/daemon/fw/strategy-no-route.t.cpp b/tests/daemon/fw/strategy-no-route.t.cpp
index a8fed80..4cc687d 100644
--- a/tests/daemon/fw/strategy-no-route.t.cpp
+++ b/tests/daemon/fw/strategy-no-route.t.cpp
@@ -33,6 +33,7 @@
#include "fw/asf-strategy.hpp"
#include "fw/best-route-strategy2.hpp"
#include "fw/multicast-strategy.hpp"
+#include "fw/random-strategy.hpp"
#include "tests/test-common.hpp"
#include "tests/daemon/face/dummy-face.hpp"
@@ -150,7 +151,11 @@
Test<MulticastStrategy, EmptyNextHopList<MulticastStrategy>>,
Test<MulticastStrategy, NextHopIsDownstream<MulticastStrategy>>,
- Test<MulticastStrategy, NextHopViolatesScope<MulticastStrategy>>
+ Test<MulticastStrategy, NextHopViolatesScope<MulticastStrategy>>,
+
+ Test<RandomStrategy, EmptyNextHopList<RandomStrategy>>,
+ Test<RandomStrategy, NextHopIsDownstream<RandomStrategy>>,
+ Test<RandomStrategy, NextHopViolatesScope<RandomStrategy>>
>;
BOOST_FIXTURE_TEST_CASE_TEMPLATE(IncomingInterest, T, Tests,