/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * 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"classSendMavCommandWithHandlerTest:publicUnitTest{Q_OBJECTprivateslots:void_performTestCases(void);private:typedefstruct{MAV_CMDcommand;MAV_RESULTexpectedCommandResult;boolexpectedNoResponseFromVehicle;}TestCase_t;void_testCaseWorker(TestCase_t&testCase);staticvoid_mavCmdResultHandler(void*resultHandlerData,intcompId,MAV_RESULTcommandResult,boolnoResponsefromVehicle);staticTestCase_t_rgTestCases[];};