fw: remove reliance upon marker name components
refs #5044
Change-Id: Iea6c98e03dbd3e4463f7bb6fca0be4953a2cdc40
diff --git a/tests/tools/nfdc/strategy-choice-module.t.cpp b/tests/tools/nfdc/strategy-choice-module.t.cpp
index dc4965a..634682b 100644
--- a/tests/tools/nfdc/strategy-choice-module.t.cpp
+++ b/tests/tools/nfdc/strategy-choice-module.t.cpp
@@ -48,11 +48,11 @@
StrategyChoice entry1;
entry1.setName("/");
- entry1.setStrategy("/strategyP/%FD%01");
+ entry1.setStrategy(Name("/strategyP").appendVersion(1));
StrategyChoice entry2;
entry2.setName("/52VRvpL9/Yqfut4TNHv");
- entry2.setStrategy("/strategyQ/%FD%02");
+ entry2.setStrategy(Name("/strategyQ").appendVersion(2));
this->sendDataset(interest.getName(), entry1, entry2);
return true;
@@ -139,7 +139,7 @@
ControlParameters resp;
resp.setName("/VBXSJg3m/XYs81ARNhx");
- resp.setStrategy("/strategyP/%FD%05");
+ resp.setStrategy(Name("/strategyP").appendVersion(5));
this->succeedCommand(interest, resp);
};
@@ -248,10 +248,10 @@
this->fetchStatus();
StrategyChoice payload1;
payload1.setName("/")
- .setStrategy("/localhost/nfd/strategy/best-route/%FD%04");
+ .setStrategy(Name("/localhost/nfd/strategy/best-route").appendVersion(4));
StrategyChoice payload2;
payload2.setName("/localhost")
- .setStrategy("/localhost/nfd/strategy/multicast/%FD%04");
+ .setStrategy(Name("/localhost/nfd/strategy/multicast").appendVersion(4));
this->sendDataset("/localhost/nfd/strategy-choice/list", payload1, payload2);
this->prepareStatusOutput();