mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
Rename test case
This commit is contained in:
parent
e8bf45a5d9
commit
f43517d025
1 changed files with 7 additions and 7 deletions
|
@ -11,27 +11,27 @@
|
||||||
|
|
||||||
using namespace ns3;
|
using namespace ns3;
|
||||||
|
|
||||||
class IslMockChannelTransmitTestCase : public TestCase
|
class IslMockChannelTransmitUnknownTestCase : public TestCase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
IslMockChannelTransmitTestCase ();
|
IslMockChannelTransmitUnknownTestCase ();
|
||||||
virtual ~IslMockChannelTransmitTestCase ();
|
virtual ~IslMockChannelTransmitUnknownTestCase ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void DoRun (void);
|
virtual void DoRun (void);
|
||||||
};
|
};
|
||||||
|
|
||||||
IslMockChannelTransmitTestCase::IslMockChannelTransmitTestCase ()
|
IslMockChannelTransmitUnknownTestCase::IslMockChannelTransmitUnknownTestCase ()
|
||||||
: TestCase ("Test channel transmission")
|
: TestCase ("Test channel transmission")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
IslMockChannelTransmitTestCase::~IslMockChannelTransmitTestCase ()
|
IslMockChannelTransmitUnknownTestCase::~IslMockChannelTransmitUnknownTestCase ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
IslMockChannelTransmitTestCase::DoRun (void)
|
IslMockChannelTransmitUnknownTestCase::DoRun (void)
|
||||||
{
|
{
|
||||||
Ptr<IslMockChannel> channel = CreateObject<IslMockChannel> ();
|
Ptr<IslMockChannel> channel = CreateObject<IslMockChannel> ();
|
||||||
Packet *packet = new Packet ();
|
Packet *packet = new Packet ();
|
||||||
|
@ -55,7 +55,7 @@ IslMockChannelTestSuite::IslMockChannelTestSuite ()
|
||||||
: TestSuite ("isl-mock-channel", UNIT)
|
: TestSuite ("isl-mock-channel", UNIT)
|
||||||
{
|
{
|
||||||
// TestDuration for TestCase can be QUICK, EXTENSIVE or TAKES_FOREVER
|
// TestDuration for TestCase can be QUICK, EXTENSIVE or TAKES_FOREVER
|
||||||
AddTestCase (new IslMockChannelTransmitTestCase, TestCase::QUICK);
|
AddTestCase (new IslMockChannelTransmitUnknownTestCase, 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