Commit 9d2204be authored by Patrick José Pereira's avatar Patrick José Pereira

qgcunittest: Move to pragma once

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent d96fc0a6
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef FILEDIALOGTEST_H
#define FILEDIALOGTEST_H
#pragma once
#include "UnitTest.h"
......@@ -33,4 +32,3 @@ private slots:
void _fileDialogExpectedIncorrect_test(void);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef FileManagerTEST_H
#define FileManagerTEST_H
#pragma once
#include <QObject>
#include <QtTest/QtTest>
......@@ -77,4 +76,3 @@ private:
QStringList _fileListReceived;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef FLIGHTGEARTEST_H
#define FLIGHTGEARTEST_H
#pragma once
#include "UnitTest.h"
#include "TCPLink.h"
......@@ -31,4 +30,3 @@ private slots:
void _parseUIArguments_test(void);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -13,8 +13,7 @@
///
/// @author David Goodman <dagoodma@gmail.com>
#ifndef GEOTEST_H
#define GEOTEST_H
#pragma once
#include <QGeoCoordinate>
......@@ -38,4 +37,3 @@ private:
QGeoCoordinate _origin;
};
#endif // GEOTEST_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef LINKMANAGERTEST_H
#define LINKMANAGERTEST_H
#pragma once
#include "UnitTest.h"
#include "LinkManager.h"
......@@ -54,4 +53,3 @@ private:
const char* _rgSignals[_cSignals];
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef MAINWINDOWTEST_H
#define MAINWINDOWTEST_H
#pragma once
#include "UnitTest.h"
#include "MainWindow.h"
......@@ -31,4 +30,3 @@ private:
void _connectWindowClose_test(MAV_AUTOPILOT autopilot);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef MAVLINKLOGTEST_H
#define MAVLINKLOGTEST_H
#pragma once
#include "UnitTest.h"
......@@ -48,4 +47,3 @@ private:
static const char* _saveLogFilename; ///< Filename to save log files to
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef MESSAGEBOXTEST_H
#define MESSAGEBOXTEST_H
#pragma once
#include "UnitTest.h"
......@@ -33,4 +32,3 @@ private slots:
void _badResponseButton_test(void);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MULTISIGNALSPY_H
#define MULTISIGNALSPY_H
#pragma once
#include <QObject>
#include <QSignalSpy>
......@@ -80,4 +79,3 @@ private:
bool _timeout;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef RadioConfigTest_H
#define RadioConfigTest_H
#pragma once
#include "UnitTest.h"
#include "MockLink.h"
......@@ -116,4 +115,3 @@ private:
RadioComponentController* _controller;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef TCPLINKTEST_H
#define TCPLINKTEST_H
#pragma once
#include "UnitTest.h"
#include "TCPLink.h"
......@@ -67,4 +66,3 @@ private:
const char* _rgSignals[_cSignals];
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef TCPLOOPBACKSERVER_H
#define TCPLOOPBACKSERVER_H
#pragma once
#include <QThread>
#include <QTcpServer>
......@@ -44,4 +43,3 @@ private:
QTcpSocket* _tcpSocket;
};
#endif
\ No newline at end of file
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (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.
......@@ -13,9 +13,8 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef UNITTEST_H
#define UNITTEST_H
#ifndef __mobile__
#pragma once
#include <QObject>
#include <QtTest>
......@@ -213,5 +212,4 @@ private:
QSharedPointer<T> _unitTest;
};
#endif // Android
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment