mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
To provide maximum flexibility, the simulator info is specified by each plugin in the JSON metadata file. * Renamed SCimulatorInfo to CSimulatorPluginInfo * Removed pre-defined simulator infos (UnspecifiedSim, FSX, etc) * CContextSimulator keeps track of which plugin is loaded and its info * QSignalMapper keeps track of which listener emitted the simulatorStared() signal * CSimulatorPluginInfo contains name, simulator name and description * TODO: GUI part * TODO: CTestFsCommon
27 lines
842 B
C++
27 lines
842 B
C++
/* Copyright (C) 2013 VATSIM Community / contributors
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "testsimcommon.h"
|
|
#include "blacksim/simulatorplugininfo.h"
|
|
#include <QList>
|
|
|
|
using namespace BlackSim;
|
|
|
|
namespace BlackSimTest
|
|
{
|
|
/*
|
|
* Tests
|
|
*/
|
|
void CTestFsCommon::misc()
|
|
{
|
|
// CSimulatorInfo si1 = CSimulatorInfo::FSX();
|
|
// CSimulatorInfo si2 = CSimulatorInfo::FS9();
|
|
// CSimulatorInfo si1Copy(si1);
|
|
// QVERIFY2(si1.getValueHash() != si2.getValueHash(), "Info objects expect unequal hashs");
|
|
// QVERIFY2(si1.getValueHash() == si1Copy.getValueHash(), "Info objects expect equal hashs");
|
|
}
|
|
|
|
} // namespace
|