mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
More tests for DBus (samples DBus)
This commit is contained in:
@@ -365,11 +365,23 @@ namespace BlackMiscTest
|
||||
ivm = testserviceInterface.pingIndexVariantMap(ivm);
|
||||
qDebug() << "Pinged variant map via interface" << ivm;
|
||||
|
||||
CSimulatorPluginInfo pluginInfo("fsx", "FSX Simulator", "FSX", "Flight Simulator X", true);
|
||||
CSimulatorPluginInfo pluginInfoReceived = testserviceInterface.pingPluginInfo(pluginInfo);
|
||||
qDebug() << "Pinged info via interface"
|
||||
<< ((pluginInfo == pluginInfoReceived) ? "OK" : "ERROR!") << pluginInfoReceived;
|
||||
|
||||
CAtcStation stationReceived = testserviceInterface.pingAtcStation(station);
|
||||
qDebug() << "Pinged ATC station via interface"
|
||||
<< ((station == stationReceived) ? "OK" : "ERROR!") << stationReceived;
|
||||
|
||||
CUser pingUser("223344", "Ping Me user");
|
||||
CAircraftIcaoData icaoData("B737", "DLH");
|
||||
icaoData.setAircraftCombinedType("L2J");
|
||||
icaoData.setAircraftColor("green");
|
||||
CAircraftIcaoData icaoReceived = testserviceInterface.pingIcaoData(icaoData);
|
||||
qDebug() << "Pinged ICAO data via interface"
|
||||
<< ((icaoData == icaoReceived) ? "OK" : "ERROR!") << icaoReceived;
|
||||
|
||||
CUser pingUser("223344", "Ping Me User");
|
||||
CUser userReceived = testserviceInterface.pingUser(pingUser);
|
||||
qDebug() << "Pinged user via interface"
|
||||
<< ((userReceived == pingUser) ? "OK" : "ERROR!") << userReceived;
|
||||
|
||||
Reference in New Issue
Block a user