mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Unit test renaming
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
* \ingroup testblacksimplugin
|
* \ingroup testblacksimplugin
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "testfsxp3dcommon.h"
|
#include "testblacksimpluginfsxp3d.h"
|
||||||
#include "plugins/simulator/fsxcommon/simconnectdatadefinition.h"
|
#include "plugins/simulator/fsxcommon/simconnectdatadefinition.h"
|
||||||
#include "plugins/simulator/fsxcommon/simconnectsymbols.h"
|
#include "plugins/simulator/fsxcommon/simconnectsymbols.h"
|
||||||
#include "plugins/simulator/fsxcommon/simulatorfsxcommon.h"
|
#include "plugins/simulator/fsxcommon/simulatorfsxcommon.h"
|
||||||
@@ -24,7 +24,7 @@ using namespace BlackSimPlugin::FsxCommon;
|
|||||||
|
|
||||||
namespace BlackSimPluginFsxP3D
|
namespace BlackSimPluginFsxP3D
|
||||||
{
|
{
|
||||||
void CTestFsxP3DCommon::resolveSymbols()
|
void CSimPluginFsxP3d::resolveSymbols()
|
||||||
{
|
{
|
||||||
QVERIFY2(loadAndResolveSimConnect(false), "Could not load and resolve SimConnect library!");
|
QVERIFY2(loadAndResolveSimConnect(false), "Could not load and resolve SimConnect library!");
|
||||||
HANDLE hSimConnect;
|
HANDLE hSimConnect;
|
||||||
@@ -32,7 +32,7 @@ namespace BlackSimPluginFsxP3D
|
|||||||
SimConnect_Close(hSimConnect);
|
SimConnect_Close(hSimConnect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTestFsxP3DCommon::requestIds()
|
void CSimPluginFsxP3d::requestIds()
|
||||||
{
|
{
|
||||||
DWORD objectId = 666;
|
DWORD objectId = 666;
|
||||||
DWORD requestId = CSimulatorFsxCommon::unitTestRequestId(CSimConnectObject::Aircraft);
|
DWORD requestId = CSimulatorFsxCommon::unitTestRequestId(CSimConnectObject::Aircraft);
|
||||||
@@ -71,6 +71,6 @@ namespace BlackSimPluginFsxP3D
|
|||||||
} // ns
|
} // ns
|
||||||
|
|
||||||
//! main
|
//! main
|
||||||
BLACKTEST_APPLESS_MAIN(BlackSimPluginFsxP3D::CTestFsxP3DCommon);
|
BLACKTEST_APPLESS_MAIN(BlackSimPluginFsxP3D::CSimPluginFsxP3d);
|
||||||
|
|
||||||
//! \endcond
|
//! \endcond
|
||||||
@@ -20,13 +20,13 @@
|
|||||||
namespace BlackSimPluginFsxP3D
|
namespace BlackSimPluginFsxP3D
|
||||||
{
|
{
|
||||||
//! FSX/P3D common tests
|
//! FSX/P3D common tests
|
||||||
class CTestFsxP3DCommon : public QObject
|
class CSimPluginFsxP3d : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Standard test case constructor
|
//! Standard test case constructor
|
||||||
explicit CTestFsxP3DCommon(QObject *parent = nullptr) : QObject(parent) {}
|
explicit CSimPluginFsxP3d(QObject *parent = nullptr) : QObject(parent) {}
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//! Resolve SimConnect Symbols
|
//! Resolve SimConnect Symbols
|
||||||
@@ -2,7 +2,7 @@ load(common_pre)
|
|||||||
|
|
||||||
QT += core testlib dbus network gui widgets
|
QT += core testlib dbus network gui widgets
|
||||||
|
|
||||||
TARGET = testsimpluginfsxp3d
|
TARGET = testblacksimpluginfsxp3d
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
CONFIG += blackmisc blackcore blackconfig blackgui
|
CONFIG += blackmisc blackcore blackconfig blackgui
|
||||||
CONFIG += simulatorfsxcommon simulatorfscommon simulatorplugincommon fsuipc simconnect
|
CONFIG += simulatorfsxcommon simulatorfscommon simulatorplugincommon fsuipc simconnect
|
||||||
|
|||||||
Reference in New Issue
Block a user