Browse Source

qgcunittest: Move to pragma once

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 7 years ago
parent
commit
9d2204bef4
  1. 6
      src/qgcunittest/FileDialogTest.h
  2. 6
      src/qgcunittest/FileManagerTest.h
  3. 6
      src/qgcunittest/FlightGearTest.h
  4. 6
      src/qgcunittest/GeoTest.h
  5. 6
      src/qgcunittest/LinkManagerTest.h
  6. 6
      src/qgcunittest/MainWindowTest.h
  7. 6
      src/qgcunittest/MavlinkLogTest.h
  8. 6
      src/qgcunittest/MessageBoxTest.h
  9. 6
      src/qgcunittest/MultiSignalSpy.h
  10. 6
      src/qgcunittest/RadioConfigTest.h
  11. 6
      src/qgcunittest/TCPLinkTest.h
  12. 6
      src/qgcunittest/TCPLoopBackServer.h
  13. 6
      src/qgcunittest/UnitTest.h

6
src/qgcunittest/FileDialogTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
/// ///
/// @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:
void _fileDialogExpectedIncorrect_test(void); void _fileDialogExpectedIncorrect_test(void);
}; };
#endif

6
src/qgcunittest/FileManagerTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
****************************************************************************/ ****************************************************************************/
#ifndef FileManagerTEST_H #pragma once
#define FileManagerTEST_H
#include <QObject> #include <QObject>
#include <QtTest/QtTest> #include <QtTest/QtTest>
@ -77,4 +76,3 @@ private:
QStringList _fileListReceived; QStringList _fileListReceived;
}; };
#endif

6
src/qgcunittest/FlightGearTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
****************************************************************************/ ****************************************************************************/
#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:
void _parseUIArguments_test(void); void _parseUIArguments_test(void);
}; };
#endif

6
src/qgcunittest/GeoTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
/// ///
/// @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:
QGeoCoordinate _origin; QGeoCoordinate _origin;
}; };
#endif // GEOTEST_H

6
src/qgcunittest/LinkManagerTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
****************************************************************************/ ****************************************************************************/
#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:
const char* _rgSignals[_cSignals]; const char* _rgSignals[_cSignals];
}; };
#endif

6
src/qgcunittest/MainWindowTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
/// ///
/// @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:
void _connectWindowClose_test(MAV_AUTOPILOT autopilot); void _connectWindowClose_test(MAV_AUTOPILOT autopilot);
}; };
#endif

6
src/qgcunittest/MavlinkLogTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
/// ///
/// @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:
static const char* _saveLogFilename; ///< Filename to save log files to static const char* _saveLogFilename; ///< Filename to save log files to
}; };
#endif

6
src/qgcunittest/MessageBoxTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
/// ///
/// @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:
void _badResponseButton_test(void); void _badResponseButton_test(void);
}; };
#endif

6
src/qgcunittest/MultiSignalSpy.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
****************************************************************************/ ****************************************************************************/
#ifndef MULTISIGNALSPY_H #pragma once
#define MULTISIGNALSPY_H
#include <QObject> #include <QObject>
#include <QSignalSpy> #include <QSignalSpy>
@ -80,4 +79,3 @@ private:
bool _timeout; bool _timeout;
}; };
#endif

6
src/qgcunittest/RadioConfigTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
****************************************************************************/ ****************************************************************************/
#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:
RadioComponentController* _controller; RadioComponentController* _controller;
}; };
#endif

6
src/qgcunittest/TCPLinkTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
****************************************************************************/ ****************************************************************************/
#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:
const char* _rgSignals[_cSignals]; const char* _rgSignals[_cSignals];
}; };
#endif

6
src/qgcunittest/TCPLoopBackServer.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
****************************************************************************/ ****************************************************************************/
#ifndef TCPLOOPBACKSERVER_H #pragma once
#define TCPLOOPBACKSERVER_H
#include <QThread> #include <QThread>
#include <QTcpServer> #include <QTcpServer>
@ -44,4 +43,3 @@ private:
QTcpSocket* _tcpSocket; QTcpSocket* _tcpSocket;
}; };
#endif

6
src/qgcunittest/UnitTest.h

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
* *
* (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 * 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 @@
/// ///
/// @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>
@ -213,5 +212,4 @@ private:
QSharedPointer<T> _unitTest; QSharedPointer<T> _unitTest;
}; };
#endif // Android
#endif #endif

Loading…
Cancel
Save