From c1f0d7071bc029d4f0c378a781bd3bcb9340aabf Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 5 May 2014 09:03:02 +0200 Subject: [PATCH] Add missing bits to unit test --- src/qgcunittest/MockUAS.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qgcunittest/MockUAS.h b/src/qgcunittest/MockUAS.h index 8f6ad10b4..3c715c084 100644 --- a/src/qgcunittest/MockUAS.h +++ b/src/qgcunittest/MockUAS.h @@ -109,6 +109,12 @@ public: virtual bool systemCanReverse() const { Q_ASSERT(false); return false; }; virtual QString getSystemTypeName() { Q_ASSERT(false); return _bogusString; }; virtual int getAutopilotType() { Q_ASSERT(false); return 0; }; + virtual QGCUASFileManager* getFileManager() {Q_ASSERT(false); return NULL; } + + /** @brief Send a message over this link (to this or to all UAS on this link) */ + virtual void sendMessage(LinkInterface* link, mavlink_message_t message){Q_ASSERT(false);} + /** @brief Send a message over all links this UAS can be reached with (!= all links) */ + virtual void sendMessage(mavlink_message_t message) {Q_ASSERT(false);} virtual QString getAutopilotTypeName() { Q_ASSERT(false); return _bogusString; }; virtual void setAutopilotType(int apType) { Q_UNUSED(apType); Q_ASSERT(false); }; virtual QMap getComponents() { Q_ASSERT(false); return _bogusMapIntQString; }; -- 2.22.0