src/test/ns3tcp/ns3tcp-loss-test-suite.cc
changeset 6192 cf8ef89e65c4
parent 6191 5cde5bcbc902
child 6279 006a660a021a
--- a/src/test/ns3tcp/ns3tcp-loss-test-suite.cc	Sun Apr 11 23:15:09 2010 -0700
+++ b/src/test/ns3tcp/ns3tcp-loss-test-suite.cc	Mon Apr 12 20:50:04 2010 -0400
@@ -16,6 +16,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include "receive-list-error-model.h"
+
 #include "ns3/log.h"
 #include "ns3/abort.h"
 #include "ns3/test.h"
@@ -129,7 +131,7 @@
   sampleList.push_back (0);
   sampleList.push_back (1);
   // This time, we'll explicitly create the error model we want
-  Ptr<ListErrorModel> pem = CreateObject<ListErrorModel> ();
+  Ptr<ReceiveListErrorModel> pem = CreateObject<ReceiveListErrorModel> ();
   pem->SetList (sampleList);
   devices.Get (1)->SetAttribute ("ReceiveErrorModel", PointerValue (pem));
 
@@ -235,9 +237,9 @@
 
   std::list<uint32_t> sampleList;
   // Lose first data segment
-  sampleList.push_back (15);
+  sampleList.push_back (2);
   // This time, we'll explicitly create the error model we want
-  Ptr<ListErrorModel> pem = CreateObject<ListErrorModel> ();
+  Ptr<ReceiveListErrorModel> pem = CreateObject<ReceiveListErrorModel> ();
   pem->SetList (sampleList);
   devices.Get (1)->SetAttribute ("ReceiveErrorModel", PointerValue (pem));
 
@@ -273,7 +275,7 @@
   : TestSuite ("ns3-tcp-loss", SYSTEM)
 {
   AddTestCase (new Ns3TcpLossTestCase1);
-  //AddTestCase (new Ns3TcpLossTestCase2);
+  AddTestCase (new Ns3TcpLossTestCase2);
 }
 
 Ns3TcpLossTestSuite ns3TcpLossTestSuite;