Stub TcpSocketImpl unit test
authorRaj Bhattacharjea <raj.b@gatech.edu>
Mon Aug 11 16:47:46 2008 -0400 (18 months ago)
changeset 354410c667a90efa
parent 3543 1548d7e3604f
child 3545 fdf978993930
Stub TcpSocketImpl unit test
src/internet-stack/tcp-socket-impl.cc
     1.1 --- a/src/internet-stack/tcp-socket-impl.cc	Tue Aug 12 12:55:11 2008 -0700
     1.2 +++ b/src/internet-stack/tcp-socket-impl.cc	Mon Aug 11 16:47:46 2008 -0400
     1.3 @@ -1547,3 +1547,42 @@
     1.4  }
     1.5  
     1.6  }//namespace ns3
     1.7 +
     1.8 +#ifdef RUN_SELF_TESTS
     1.9 +
    1.10 +#include "ns3/test.h"
    1.11 +#include "ns3/socket-factory.h"
    1.12 +#include "ns3/udp-socket-factory.h"
    1.13 +#include "ns3/simulator.h"
    1.14 +#include "ns3/simple-channel.h"
    1.15 +#include "ns3/simple-net-device.h"
    1.16 +#include "ns3/drop-tail-queue.h"
    1.17 +#include "internet-stack.h"
    1.18 +#include <string>
    1.19 +
    1.20 +namespace ns3 {
    1.21 +	
    1.22 +class TcpSocketImplTest: public Test
    1.23 +{
    1.24 +  public:
    1.25 +  TcpSocketImplTest ();
    1.26 +  virtual bool RunTests (void);
    1.27 +};
    1.28 +
    1.29 +TcpSocketImplTest::TcpSocketImplTest ()
    1.30 +  : Test ("TcpSocketImpl")
    1.31 +{
    1.32 +}
    1.33 +
    1.34 +bool
    1.35 +TcpSocketImplTest::RunTests (void)
    1.36 +{
    1.37 +	bool result = true;
    1.38 +	return result;
    1.39 +}
    1.40 +
    1.41 +static TcpSocketImplTest gTcpSocketImplTest;
    1.42 +
    1.43 +}//namespace ns3
    1.44 +
    1.45 +#endif /* RUN_SELF_TESTS */
    1.46 \ No newline at end of file