Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
9d2204be
Commit
9d2204be
authored
Oct 27, 2018
by
Patrick José Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qgcunittest: Move to pragma once
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
d96fc0a6
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
47 additions
and
73 deletions
+47
-73
FileDialogTest.h
src/qgcunittest/FileDialogTest.h
+2
-4
FileManagerTest.h
src/qgcunittest/FileManagerTest.h
+2
-4
FlightGearTest.h
src/qgcunittest/FlightGearTest.h
+2
-4
GeoTest.h
src/qgcunittest/GeoTest.h
+2
-4
LinkManagerTest.h
src/qgcunittest/LinkManagerTest.h
+2
-4
MainWindowTest.h
src/qgcunittest/MainWindowTest.h
+2
-4
MavlinkLogTest.h
src/qgcunittest/MavlinkLogTest.h
+2
-4
MessageBoxTest.h
src/qgcunittest/MessageBoxTest.h
+2
-4
MultiSignalSpy.h
src/qgcunittest/MultiSignalSpy.h
+2
-4
RadioConfigTest.h
src/qgcunittest/RadioConfigTest.h
+2
-4
TCPLinkTest.h
src/qgcunittest/TCPLinkTest.h
+2
-4
TCPLoopBackServer.h
src/qgcunittest/TCPLoopBackServer.h
+2
-4
UnitTest.h
src/qgcunittest/UnitTest.h
+23
-25
No files found.
src/qgcunittest/FileDialogTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
///
///
/// @author Don Gagne <don@thegagnes.com>
/// @author Don Gagne <don@thegagnes.com>
#ifndef FILEDIALOGTEST_H
#pragma once
#define FILEDIALOGTEST_H
#include "UnitTest.h"
#include "UnitTest.h"
...
@@ -33,4 +32,3 @@ private slots:
...
@@ -33,4 +32,3 @@ private slots:
void
_fileDialogExpectedIncorrect_test
(
void
);
void
_fileDialogExpectedIncorrect_test
(
void
);
};
};
#endif
src/qgcunittest/FileManagerTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
****************************************************************************/
****************************************************************************/
#ifndef FileManagerTEST_H
#pragma once
#define FileManagerTEST_H
#include <QObject>
#include <QObject>
#include <QtTest/QtTest>
#include <QtTest/QtTest>
...
@@ -77,4 +76,3 @@ private:
...
@@ -77,4 +76,3 @@ private:
QStringList
_fileListReceived
;
QStringList
_fileListReceived
;
};
};
#endif
src/qgcunittest/FlightGearTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
****************************************************************************/
****************************************************************************/
#ifndef FLIGHTGEARTEST_H
#pragma once
#define FLIGHTGEARTEST_H
#include "UnitTest.h"
#include "UnitTest.h"
#include "TCPLink.h"
#include "TCPLink.h"
...
@@ -31,4 +30,3 @@ private slots:
...
@@ -31,4 +30,3 @@ private slots:
void
_parseUIArguments_test
(
void
);
void
_parseUIArguments_test
(
void
);
};
};
#endif
src/qgcunittest/GeoTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
///
///
/// @author David Goodman <dagoodma@gmail.com>
/// @author David Goodman <dagoodma@gmail.com>
#ifndef GEOTEST_H
#pragma once
#define GEOTEST_H
#include <QGeoCoordinate>
#include <QGeoCoordinate>
...
@@ -38,4 +37,3 @@ private:
...
@@ -38,4 +37,3 @@ private:
QGeoCoordinate
_origin
;
QGeoCoordinate
_origin
;
};
};
#endif // GEOTEST_H
src/qgcunittest/LinkManagerTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
****************************************************************************/
****************************************************************************/
#ifndef LINKMANAGERTEST_H
#pragma once
#define LINKMANAGERTEST_H
#include "UnitTest.h"
#include "UnitTest.h"
#include "LinkManager.h"
#include "LinkManager.h"
...
@@ -54,4 +53,3 @@ private:
...
@@ -54,4 +53,3 @@ private:
const
char
*
_rgSignals
[
_cSignals
];
const
char
*
_rgSignals
[
_cSignals
];
};
};
#endif
src/qgcunittest/MainWindowTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
///
///
/// @author Don Gagne <don@thegagnes.com>
/// @author Don Gagne <don@thegagnes.com>
#ifndef MAINWINDOWTEST_H
#pragma once
#define MAINWINDOWTEST_H
#include "UnitTest.h"
#include "UnitTest.h"
#include "MainWindow.h"
#include "MainWindow.h"
...
@@ -31,4 +30,3 @@ private:
...
@@ -31,4 +30,3 @@ private:
void
_connectWindowClose_test
(
MAV_AUTOPILOT
autopilot
);
void
_connectWindowClose_test
(
MAV_AUTOPILOT
autopilot
);
};
};
#endif
src/qgcunittest/MavlinkLogTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
///
///
/// @author Don Gagne <don@thegagnes.com>
/// @author Don Gagne <don@thegagnes.com>
#ifndef MAVLINKLOGTEST_H
#pragma once
#define MAVLINKLOGTEST_H
#include "UnitTest.h"
#include "UnitTest.h"
...
@@ -48,4 +47,3 @@ private:
...
@@ -48,4 +47,3 @@ private:
static
const
char
*
_saveLogFilename
;
///< Filename to save log files to
static
const
char
*
_saveLogFilename
;
///< Filename to save log files to
};
};
#endif
src/qgcunittest/MessageBoxTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
///
///
/// @author Don Gagne <don@thegagnes.com>
/// @author Don Gagne <don@thegagnes.com>
#ifndef MESSAGEBOXTEST_H
#pragma once
#define MESSAGEBOXTEST_H
#include "UnitTest.h"
#include "UnitTest.h"
...
@@ -33,4 +32,3 @@ private slots:
...
@@ -33,4 +32,3 @@ private slots:
void
_badResponseButton_test
(
void
);
void
_badResponseButton_test
(
void
);
};
};
#endif
src/qgcunittest/MultiSignalSpy.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
****************************************************************************/
****************************************************************************/
#ifndef MULTISIGNALSPY_H
#pragma once
#define MULTISIGNALSPY_H
#include <QObject>
#include <QObject>
#include <QSignalSpy>
#include <QSignalSpy>
...
@@ -80,4 +79,3 @@ private:
...
@@ -80,4 +79,3 @@ private:
bool
_timeout
;
bool
_timeout
;
};
};
#endif
src/qgcunittest/RadioConfigTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
****************************************************************************/
****************************************************************************/
#ifndef RadioConfigTest_H
#pragma once
#define RadioConfigTest_H
#include "UnitTest.h"
#include "UnitTest.h"
#include "MockLink.h"
#include "MockLink.h"
...
@@ -116,4 +115,3 @@ private:
...
@@ -116,4 +115,3 @@ private:
RadioComponentController
*
_controller
;
RadioComponentController
*
_controller
;
};
};
#endif
src/qgcunittest/TCPLinkTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
****************************************************************************/
****************************************************************************/
#ifndef TCPLINKTEST_H
#pragma once
#define TCPLINKTEST_H
#include "UnitTest.h"
#include "UnitTest.h"
#include "TCPLink.h"
#include "TCPLink.h"
...
@@ -67,4 +66,3 @@ private:
...
@@ -67,4 +66,3 @@ private:
const
char
*
_rgSignals
[
_cSignals
];
const
char
*
_rgSignals
[
_cSignals
];
};
};
#endif
src/qgcunittest/TCPLoopBackServer.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
****************************************************************************/
****************************************************************************/
#ifndef TCPLOOPBACKSERVER_H
#pragma once
#define TCPLOOPBACKSERVER_H
#include <QThread>
#include <QThread>
#include <QTcpServer>
#include <QTcpServer>
...
@@ -44,4 +43,3 @@ private:
...
@@ -44,4 +43,3 @@ private:
QTcpSocket
*
_tcpSocket
;
QTcpSocket
*
_tcpSocket
;
};
};
#endif
\ No newline at end of file
src/qgcunittest/UnitTest.h
View file @
9d2204be
/****************************************************************************
/****************************************************************************
*
*
* (c) 2009-201
6
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-201
8
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
*
* QGroundControl is licensed according to the terms in the file
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
* COPYING.md in the root of the source code directory.
...
@@ -13,9 +13,8 @@
...
@@ -13,9 +13,8 @@
///
///
/// @author Don Gagne <don@thegagnes.com>
/// @author Don Gagne <don@thegagnes.com>
#ifndef UNITTEST_H
#define UNITTEST_H
#ifndef __mobile__
#ifndef __mobile__
#pragma once
#include <QObject>
#include <QObject>
#include <QtTest>
#include <QtTest>
...
@@ -42,15 +41,15 @@ class UnitTest : public QObject
...
@@ -42,15 +41,15 @@ class UnitTest : public QObject
public:
public:
UnitTest
(
void
);
UnitTest
(
void
);
virtual
~
UnitTest
(
void
);
virtual
~
UnitTest
(
void
);
/// @brief Called to run all the registered unit tests
/// @brief Called to run all the registered unit tests
/// @param singleTest Name of test to just run a single test
/// @param singleTest Name of test to just run a single test
static
int
run
(
QString
&
singleTest
);
static
int
run
(
QString
&
singleTest
);
/// @brief Sets up for an expected QGCMessageBox
/// @brief Sets up for an expected QGCMessageBox
/// @param response Response to take on message box
/// @param response Response to take on message box
void
setExpectedMessageBox
(
QMessageBox
::
StandardButton
response
);
void
setExpectedMessageBox
(
QMessageBox
::
StandardButton
response
);
/// @brief Types for UnitTest::setExpectedFileDialog
/// @brief Types for UnitTest::setExpectedFileDialog
enum
FileDialogType
{
enum
FileDialogType
{
getExistingDirectory
,
getExistingDirectory
,
...
@@ -58,30 +57,30 @@ public:
...
@@ -58,30 +57,30 @@ public:
getOpenFileNames
,
getOpenFileNames
,
getSaveFileName
getSaveFileName
};
};
/// @brief Sets up for an expected QGCQFileDialog
/// @brief Sets up for an expected QGCQFileDialog
/// @param type Type of expected file dialog
/// @param type Type of expected file dialog
/// @param response Files to return from call. Multiple files only supported by getOpenFileNames
/// @param response Files to return from call. Multiple files only supported by getOpenFileNames
void
setExpectedFileDialog
(
enum
FileDialogType
type
,
QStringList
response
);
void
setExpectedFileDialog
(
enum
FileDialogType
type
,
QStringList
response
);
enum
{
enum
{
expectFailNoFailure
=
1
<<
0
,
///< not expecting any failures
expectFailNoFailure
=
1
<<
0
,
///< not expecting any failures
expectFailNoDialog
=
1
<<
1
,
///< expecting a failure due to no dialog displayed
expectFailNoDialog
=
1
<<
1
,
///< expecting a failure due to no dialog displayed
expectFailBadResponseButton
=
1
<<
2
,
///< expecting a failure due to bad button response (QGCMessageBox only)
expectFailBadResponseButton
=
1
<<
2
,
///< expecting a failure due to bad button response (QGCMessageBox only)
expectFailWrongFileDialog
=
1
<<
3
///< expecting one dialog type, got the wrong type (QGCQFileDialog ony)
expectFailWrongFileDialog
=
1
<<
3
///< expecting one dialog type, got the wrong type (QGCQFileDialog ony)
};
};
/// @brief Check whether a message box was displayed and correctly responded to
/// @brief Check whether a message box was displayed and correctly responded to
// @param Expected failure response flags
// @param Expected failure response flags
void
checkExpectedMessageBox
(
int
expectFailFlags
=
expectFailNoFailure
);
void
checkExpectedMessageBox
(
int
expectFailFlags
=
expectFailNoFailure
);
/// Checks that the specified number of message boxes where shown. Do not call setExpectedMessageBox when using this method.
/// Checks that the specified number of message boxes where shown. Do not call setExpectedMessageBox when using this method.
void
checkMultipleExpectedMessageBox
(
int
messageCount
);
void
checkMultipleExpectedMessageBox
(
int
messageCount
);
/// @brief Check whether a message box was displayed and correctly responded to
/// @brief Check whether a message box was displayed and correctly responded to
// @param Expected failure response flags
// @param Expected failure response flags
void
checkExpectedFileDialog
(
int
expectFailFlags
=
expectFailNoFailure
);
void
checkExpectedFileDialog
(
int
expectFailFlags
=
expectFailNoFailure
);
/// @brief Adds a unit test to the list. Should only be called by UnitTestWrapper.
/// @brief Adds a unit test to the list. Should only be called by UnitTestWrapper.
static
void
_addTest
(
QObject
*
test
);
static
void
_addTest
(
QObject
*
test
);
...
@@ -102,18 +101,18 @@ public:
...
@@ -102,18 +101,18 @@ public:
void
changeFactValue
(
Fact
*
fact
,
double
increment
=
0
);
void
changeFactValue
(
Fact
*
fact
,
double
increment
=
0
);
protected
slots
:
protected
slots
:
// These are all pure virtuals to force the derived class to implement each one and in turn
// These are all pure virtuals to force the derived class to implement each one and in turn
// call the UnitTest private implementation.
// call the UnitTest private implementation.
/// @brief Called before each test.
/// @brief Called before each test.
/// Make sure to call UnitTest::init first in your derived class.
/// Make sure to call UnitTest::init first in your derived class.
virtual
void
init
(
void
);
virtual
void
init
(
void
);
/// @brief Called after each test.
/// @brief Called after each test.
/// Make sure to call UnitTest::cleanup last in your derived class.
/// Make sure to call UnitTest::cleanup last in your derived class.
virtual
void
cleanup
(
void
);
virtual
void
cleanup
(
void
);
protected:
protected:
void
_connectMockLink
(
MAV_AUTOPILOT
autopilot
=
MAV_AUTOPILOT_PX4
);
void
_connectMockLink
(
MAV_AUTOPILOT
autopilot
=
MAV_AUTOPILOT_PX4
);
void
_disconnectMockLink
(
void
);
void
_disconnectMockLink
(
void
);
...
@@ -133,38 +132,38 @@ private slots:
...
@@ -133,38 +132,38 @@ private slots:
private:
private:
// When the app is running in unit test mode the QGCMessageBox methods are re-routed here.
// When the app is running in unit test mode the QGCMessageBox methods are re-routed here.
static
QMessageBox
::
StandardButton
_messageBox
(
QMessageBox
::
Icon
icon
,
static
QMessageBox
::
StandardButton
_messageBox
(
QMessageBox
::
Icon
icon
,
const
QString
&
title
,
const
QString
&
title
,
const
QString
&
text
,
const
QString
&
text
,
QMessageBox
::
StandardButtons
buttons
,
QMessageBox
::
StandardButtons
buttons
,
QMessageBox
::
StandardButton
defaultButton
);
QMessageBox
::
StandardButton
defaultButton
);
// This allows the private call to _messageBox
// This allows the private call to _messageBox
friend
class
QGCMessageBox
;
friend
class
QGCMessageBox
;
// When the app is running in unit test mode the QGCQFileDialog methods are re-routed here.
// When the app is running in unit test mode the QGCQFileDialog methods are re-routed here.
static
QString
_getExistingDirectory
(
static
QString
_getExistingDirectory
(
QWidget
*
parent
,
QWidget
*
parent
,
const
QString
&
caption
,
const
QString
&
caption
,
const
QString
&
dir
,
const
QString
&
dir
,
QFileDialog
::
Options
options
);
QFileDialog
::
Options
options
);
static
QString
_getOpenFileName
(
static
QString
_getOpenFileName
(
QWidget
*
parent
,
QWidget
*
parent
,
const
QString
&
caption
,
const
QString
&
caption
,
const
QString
&
dir
,
const
QString
&
dir
,
const
QString
&
filter
,
const
QString
&
filter
,
QFileDialog
::
Options
options
);
QFileDialog
::
Options
options
);
static
QStringList
_getOpenFileNames
(
static
QStringList
_getOpenFileNames
(
QWidget
*
parent
,
QWidget
*
parent
,
const
QString
&
caption
,
const
QString
&
caption
,
const
QString
&
dir
,
const
QString
&
dir
,
const
QString
&
filter
,
const
QString
&
filter
,
QFileDialog
::
Options
options
);
QFileDialog
::
Options
options
);
static
QString
_getSaveFileName
(
static
QString
_getSaveFileName
(
QWidget
*
parent
,
QWidget
*
parent
,
const
QString
&
caption
,
const
QString
&
caption
,
...
@@ -186,14 +185,14 @@ private:
...
@@ -186,14 +185,14 @@ private:
static
bool
_badResponseButton
;
///< Attempt to repond to expected message box with button not being displayed
static
bool
_badResponseButton
;
///< Attempt to repond to expected message box with button not being displayed
static
QMessageBox
::
StandardButton
_messageBoxResponseButton
;
///< Response to next message box
static
QMessageBox
::
StandardButton
_messageBoxResponseButton
;
///< Response to next message box
static
int
_missedMessageBoxCount
;
///< Count of message box not checked with call to messageBoxWasDisplayed
static
int
_missedMessageBoxCount
;
///< Count of message box not checked with call to messageBoxWasDisplayed
// Catch QGCQFileDialog calls
// Catch QGCQFileDialog calls
static
bool
_fileDialogRespondedTo
;
///< File dialog was responded to
static
bool
_fileDialogRespondedTo
;
///< File dialog was responded to
static
bool
_fileDialogResponseSet
;
///< true: _fileDialogResponse was set by a call to UnitTest::setExpectedFileDialog
static
bool
_fileDialogResponseSet
;
///< true: _fileDialogResponse was set by a call to UnitTest::setExpectedFileDialog
static
QStringList
_fileDialogResponse
;
///< Response to next file dialog
static
QStringList
_fileDialogResponse
;
///< Response to next file dialog
static
enum
FileDialogType
_fileDialogExpectedType
;
///< type of file dialog expected to show
static
enum
FileDialogType
_fileDialogExpectedType
;
///< type of file dialog expected to show
static
int
_missedFileDialogCount
;
///< Count of file dialogs not checked with call to UnitTest::fileDialogWasDisplayed
static
int
_missedFileDialogCount
;
///< Count of file dialogs not checked with call to UnitTest::fileDialogWasDisplayed
bool
_unitTestRun
;
///< true: Unit Test was run
bool
_unitTestRun
;
///< true: Unit Test was run
bool
_initCalled
;
///< true: UnitTest::_init was called
bool
_initCalled
;
///< true: UnitTest::_init was called
bool
_cleanupCalled
;
///< true: UnitTest::_cleanup was called
bool
_cleanupCalled
;
///< true: UnitTest::_cleanup was called
...
@@ -213,5 +212,4 @@ private:
...
@@ -213,5 +212,4 @@ private:
QSharedPointer
<
T
>
_unitTest
;
QSharedPointer
<
T
>
_unitTest
;
};
};
#endif // Android
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment