mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Rename LeoFileInputTestCase
This commit is contained in:
parent
9ead83462b
commit
42787c2b41
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue