forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMavlinkLogTest.h
49 lines (37 loc) · 1.29 KB
/
MavlinkLogTest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/****************************************************************************
*
* (c) 2009-2018 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.
*
****************************************************************************/
/// @file
/// @brief Test for mavlink log collection
///
/// @author Don Gagne <[email protected]>
#pragma once
#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);
void _connectLogNoArm_test(void);
void _connectLogArm_test(void);
void _deleteTempLogFiles_test(void);
signals:
void checkForLostLogFiles(void);
private:
void _createTempLogFile(bool zeroLength);
void _connectLogWorker(bool arm);
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
};