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 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -13,8 +13,7 @@ @@ -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: @@ -33,4 +32,3 @@ private slots:
void _fileDialogExpectedIncorrect_test(void);
};
#endif

6
src/qgcunittest/FileManagerTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef FileManagerTEST_H
#define FileManagerTEST_H
#pragma once
#include <QObject>
#include <QtTest/QtTest>
@ -77,4 +76,3 @@ private: @@ -77,4 +76,3 @@ private:
QStringList _fileListReceived;
};
#endif

6
src/qgcunittest/FlightGearTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef FLIGHTGEARTEST_H
#define FLIGHTGEARTEST_H
#pragma once
#include "UnitTest.h"
#include "TCPLink.h"
@ -31,4 +30,3 @@ private slots: @@ -31,4 +30,3 @@ private slots:
void _parseUIArguments_test(void);
};
#endif

6
src/qgcunittest/GeoTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -13,8 +13,7 @@ @@ -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: @@ -38,4 +37,3 @@ private:
QGeoCoordinate _origin;
};
#endif // GEOTEST_H

6
src/qgcunittest/LinkManagerTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef LINKMANAGERTEST_H
#define LINKMANAGERTEST_H
#pragma once
#include "UnitTest.h"
#include "LinkManager.h"
@ -54,4 +53,3 @@ private: @@ -54,4 +53,3 @@ private:
const char* _rgSignals[_cSignals];
};
#endif

6
src/qgcunittest/MainWindowTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -13,8 +13,7 @@ @@ -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: @@ -31,4 +30,3 @@ private:
void _connectWindowClose_test(MAV_AUTOPILOT autopilot);
};
#endif

6
src/qgcunittest/MavlinkLogTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -13,8 +13,7 @@ @@ -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: @@ -48,4 +47,3 @@ private:
static const char* _saveLogFilename; ///< Filename to save log files to
};
#endif

6
src/qgcunittest/MessageBoxTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -13,8 +13,7 @@ @@ -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: @@ -33,4 +32,3 @@ private slots:
void _badResponseButton_test(void);
};
#endif

6
src/qgcunittest/MultiSignalSpy.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MULTISIGNALSPY_H
#define MULTISIGNALSPY_H
#pragma once
#include <QObject>
#include <QSignalSpy>
@ -80,4 +79,3 @@ private: @@ -80,4 +79,3 @@ private:
bool _timeout;
};
#endif

6
src/qgcunittest/RadioConfigTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef RadioConfigTest_H
#define RadioConfigTest_H
#pragma once
#include "UnitTest.h"
#include "MockLink.h"
@ -116,4 +115,3 @@ private: @@ -116,4 +115,3 @@ private:
RadioComponentController* _controller;
};
#endif

6
src/qgcunittest/TCPLinkTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef TCPLINKTEST_H
#define TCPLINKTEST_H
#pragma once
#include "UnitTest.h"
#include "TCPLink.h"
@ -67,4 +66,3 @@ private: @@ -67,4 +66,3 @@ private:
const char* _rgSignals[_cSignals];
};
#endif

6
src/qgcunittest/TCPLoopBackServer.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef TCPLOOPBACKSERVER_H
#define TCPLOOPBACKSERVER_H
#pragma once
#include <QThread>
#include <QTcpServer>
@ -44,4 +43,3 @@ private: @@ -44,4 +43,3 @@ private:
QTcpSocket* _tcpSocket;
};
#endif

6
src/qgcunittest/UnitTest.h

@ -1,6 +1,6 @@ @@ -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
* COPYING.md in the root of the source code directory.
@ -13,9 +13,8 @@ @@ -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: @@ -213,5 +212,4 @@ private:
QSharedPointer<T> _unitTest;
};
#endif // Android
#endif

Loading…
Cancel
Save