Rename LeoFileInputTestCase

This commit is contained in:
Tim Schubert 2020-07-07 12:45:18 +02:00
parent 9ead83462b
commit 42787c2b41

View file

@ -5,27 +5,27 @@
using namespace ns3; using namespace ns3;
class LeoFileInputTestCase : public TestCase class LeoWaypointFileEmptyTestCase : public TestCase
{ {
public: public:
LeoFileInputTestCase (); LeoWaypointFileEmptyTestCase ();
virtual ~LeoFileInputTestCase (); virtual ~LeoWaypointFileEmptyTestCase ();
private: private:
virtual void DoRun (void); virtual void DoRun (void);
}; };
LeoFileInputTestCase::LeoFileInputTestCase () LeoWaypointFileEmptyTestCase::LeoWaypointFileEmptyTestCase ()
: TestCase ("Test reading from empty file") : TestCase ("Test reading from empty file")
{ {
} }
LeoFileInputTestCase::~LeoFileInputTestCase () LeoWaypointFileEmptyTestCase::~LeoWaypointFileEmptyTestCase ()
{ {
} }
void void
LeoFileInputTestCase::DoRun (void) LeoWaypointFileEmptyTestCase::DoRun (void)
{ {
Ptr<LeoWaypointInputFileStreamContainer> container = CreateObject<LeoWaypointInputFileStreamContainer> (); Ptr<LeoWaypointInputFileStreamContainer> container = CreateObject<LeoWaypointInputFileStreamContainer> ();
container->SetAttribute("File", StringValue ("contrib/leo/data/empty")); container->SetAttribute("File", StringValue ("contrib/leo/data/empty"));
@ -47,7 +47,7 @@ LeoWaypointsTestSuite::LeoWaypointsTestSuite ()
: TestSuite ("leo-waypoints", UNIT) : TestSuite ("leo-waypoints", UNIT)
{ {
// TestDuration for TestCase can be QUICK, EXTENSIVE or TAKES_FOREVER // TestDuration for TestCase can be QUICK, EXTENSIVE or TAKES_FOREVER
AddTestCase (new LeoFileInputTestCase, TestCase::QUICK); AddTestCase (new LeoWaypointFileEmptyTestCase, TestCase::QUICK);
} }
// Do not forget to allocate an instance of this TestSuite // Do not forget to allocate an instance of this TestSuite