MavlinkLogTest.h 1.29 KB
Newer Older
1 2
/****************************************************************************
 *
3
 *   (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 5 6 7 8 9
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/

10 11 12 13 14 15

/// @file
///     @brief Test for mavlink log collection
///
///     @author Don Gagne <don@thegagnes.com>

16
#pragma once
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

#include "UnitTest.h"

class MavlinkLogTest : public UnitTest
{
    Q_OBJECT
    
public:
    MavlinkLogTest(void);
    
private slots:
    void init(void);
    void cleanup(void);
    
    void _bootLogDetectionCancel_test(void);
    void _bootLogDetectionSave_test(void);
    void _bootLogDetectionZeroLength_test(void);
34 35
    void _connectLogNoArm_test(void);
    void _connectLogArm_test(void);
36
    void _deleteTempLogFiles_test(void);
37
    
38 39 40
signals:
    void checkForLostLogFiles(void);
    
41
private:
42
    void _createTempLogFile(bool zeroLength);
43
    void _connectLogWorker(bool arm);
44
    
45 46 47 48 49
    static const char* _tempLogFileTemplate;    ///< Template for temporary log file
    static const char* _logFileExtension;       ///< Extension for log files
    static const char* _saveLogFilename;        ///< Filename to save log files to
};