lsa: Accept LSA type argument in LSA base constructor
refs: #2788
Change-Id: I12d9b26fb9087b037134988f1594576ed7ba90f3
diff --git a/tests/test-name-prefix-table.cpp b/tests/test-name-prefix-table.cpp
index 8392102..989db19 100644
--- a/tests/test-name-prefix-table.cpp
+++ b/tests/test-name-prefix-table.cpp
@@ -69,9 +69,7 @@
// This router's Adjacency LSA
nlsr.getAdjacencyList().insert(bupt);
- AdjLsa thisRouterAdjLsa(thisRouter.getName(),
- AdjLsa::TYPE_STRING,
- 1,
+ AdjLsa thisRouterAdjLsa(thisRouter.getName(), 1,
ndn::time::system_clock::now() + ndn::time::seconds::max(),
2,
nlsr.getAdjacencyList());
@@ -81,9 +79,7 @@
// BUPT Adjacency LSA
AdjacencyList buptAdjacencies;
buptAdjacencies.insert(thisRouter);
- AdjLsa buptAdjLsa(buptRouterName,
- AdjLsa::TYPE_STRING,
- 1,
+ AdjLsa buptAdjLsa(buptRouterName, 1,
ndn::time::system_clock::now() + ndn::time::seconds(5),
0 , buptAdjacencies);
@@ -95,10 +91,7 @@
NamePrefixList buptNames;
buptNames.insert(buptAdvertisedName);
- NameLsa buptNameLsa(buptRouterName,
- NameLsa::TYPE_STRING,
- 1,
- ndn::time::system_clock::now(),
+ NameLsa buptNameLsa(buptRouterName, 1, ndn::time::system_clock::now(),
buptNames);
lsdb.installNameLsa(buptNameLsa);
@@ -111,8 +104,7 @@
BOOST_REQUIRE(it == npt.end());
// Install new name LSA
- NameLsa buptNewNameLsa(buptRouterName, NameLsa::TYPE_STRING,
- 12,
+ NameLsa buptNewNameLsa(buptRouterName, 12,
ndn::time::system_clock::now() + ndn::time::seconds(3600),
buptNames);
@@ -121,8 +113,7 @@
this->advanceClocks(ndn::time::seconds(1));
// Install new adjacency LSA
- AdjLsa buptNewAdjLsa(buptRouterName, AdjLsa::TYPE_STRING,
- 12,
+ AdjLsa buptNewAdjLsa(buptRouterName, 12,
ndn::time::system_clock::now() + ndn::time::seconds(3600),
0, buptAdjacencies);
lsdb.installAdjLsa(buptNewAdjLsa);