From 6f0600473e9f58fc4dd0fe5ab0bdd741bb0de76f Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 23 Aug 2012 11:03:00 -0700 Subject: [PATCH] Added some comments to UASUnitTest.cc --- src/qgcunittest/UASUnitTest.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qgcunittest/UASUnitTest.cc b/src/qgcunittest/UASUnitTest.cc index c3d893e1b..11b95ccd7 100644 --- a/src/qgcunittest/UASUnitTest.cc +++ b/src/qgcunittest/UASUnitTest.cc @@ -89,6 +89,7 @@ void UASUnitTest::setAutopilotType_test() QCOMPARE(uas->getAutopilotType(), 2); } +//verify that the correct status is returned if a certain statue is given to uas void UASUnitTest::getStatusForCode_test() { QString state, desc; @@ -347,6 +348,8 @@ void UASUnitTest::signalUASLink_test() QCOMPARE(spyS.count(), 3); QCOMPARE(LinkManager::instance()->getLinks().count(), 2); + //all the links in LinkManager must be deleted because LinkManager::instance + //is static. LinkManager::instance()->removeLink(link3); delete link3; QCOMPARE(LinkManager::instance()->getLinks().count(), 1); -- 2.22.0