Small change with LoadStats unit tests
diff --git a/test/ndnSIM-stats-tree.cc b/test/ndnSIM-stats-tree.cc
index 377f09f..58b9c4b 100644
--- a/test/ndnSIM-stats-tree.cc
+++ b/test/ndnSIM-stats-tree.cc
@@ -20,6 +20,7 @@
#include "ndnSIM-stats-tree.h"
#include "ns3/core-module.h"
+#include "ns3/point-to-point-module.h"
#include "ns3/ndnSIM-module.h"
#include "../utils/stats-tree.h"
#include "../apps/ccnx-producer.h"
@@ -36,6 +37,14 @@
void
StatsTreeTest::DoRun ()
{
+ BasicTests ();
+ SimpleScenario ();
+}
+
+
+void
+StatsTreeTest::BasicTests ()
+{
CcnxStackHelper ccnx;
Ptr<Node> node1 = CreateObject<Node> ();
@@ -181,7 +190,7 @@
NS_TEST_ASSERT_MSG_NE (&tree ["/bla/bla/bla"],
&tree ["/"],
"The stats tree should not be empty");
- for (uint32_t i = 0; i < 50; i++)
+ for (uint32_t i = 0; i < 9; i++)
{
tree.Step ();
}
@@ -192,4 +201,18 @@
"The stats tree should be empty (only root node)");
}
+
+
+void
+StatsTreeTest::SimpleScenario ()
+{
+ NodeContainer nodes;
+ nodes.Create (2);
+ PointToPointHelper p2pHelper;
+ p2pHelper.Install (nodes);
+
+
+
+}
+
}