Commit 6f060047 authored by unknown's avatar unknown

Added some comments to UASUnitTest.cc

parent ca568f56
...@@ -89,6 +89,7 @@ void UASUnitTest::setAutopilotType_test() ...@@ -89,6 +89,7 @@ void UASUnitTest::setAutopilotType_test()
QCOMPARE(uas->getAutopilotType(), 2); QCOMPARE(uas->getAutopilotType(), 2);
} }
//verify that the correct status is returned if a certain statue is given to uas
void UASUnitTest::getStatusForCode_test() void UASUnitTest::getStatusForCode_test()
{ {
QString state, desc; QString state, desc;
...@@ -347,6 +348,8 @@ void UASUnitTest::signalUASLink_test() ...@@ -347,6 +348,8 @@ void UASUnitTest::signalUASLink_test()
QCOMPARE(spyS.count(), 3); QCOMPARE(spyS.count(), 3);
QCOMPARE(LinkManager::instance()->getLinks().count(), 2); QCOMPARE(LinkManager::instance()->getLinks().count(), 2);
//all the links in LinkManager must be deleted because LinkManager::instance
//is static.
LinkManager::instance()->removeLink(link3); LinkManager::instance()->removeLink(link3);
delete link3; delete link3;
QCOMPARE(LinkManager::instance()->getLinks().count(), 1); QCOMPARE(LinkManager::instance()->getLinks().count(), 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment