/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/ #pragma once #include "UnitTest.h" class FTPManagerTest : public UnitTest { Q_OBJECT private slots: void _performSizeBasedTestCases (void); void _performTestCases (void); void _testLostPackets (void); private: typedef struct { const char* file; } TestCase_t; void _testCaseWorker (const TestCase_t& testCase); void _sizeTestCaseWorker (int fileSize); void _verifyFileSizeAndDelete (const QString& filename, int expectedSize); static const TestCase_t _rgTestCases[]; };