Added network to UNIT tests (needed for CUrl

Other includes where needed
This commit is contained in:
Klaus Basan
2019-06-29 20:48:38 +02:00
committed by Mat Sutcliffe
parent 458daa4532
commit 74be3fa8c2
10 changed files with 16 additions and 15 deletions

View File

@@ -14,6 +14,7 @@
#include <tuple> #include <tuple>
#include "blackmisc/typetraits.h" #include "blackmisc/typetraits.h"
#include "blackmisc/integersequence.h" #include "blackmisc/integersequence.h"
#include <QtGlobal>
namespace BlackMisc namespace BlackMisc
{ {

View File

@@ -11,11 +11,11 @@
#ifndef BLACKMISC_NETWORK_URL_H #ifndef BLACKMISC_NETWORK_URL_H
#define BLACKMISC_NETWORK_URL_H #define BLACKMISC_NETWORK_URL_H
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/metaclass.h" #include "blackmisc/metaclass.h"
#include "blackmisc/propertyindex.h" #include "blackmisc/propertyindex.h"
#include "blackmisc/valueobject.h" #include "blackmisc/valueobject.h"
#include "blackmisc/variant.h" #include "blackmisc/variant.h"
#include "blackmisc/blackmiscexport.h"
#include <QJsonObject> #include <QJsonObject>
#include <QMetaType> #include <QMetaType>

View File

@@ -153,7 +153,7 @@ namespace BlackWxPlugin
m_maxRange = range; m_maxRange = range;
if (m_gribData.isEmpty()) if (m_gribData.isEmpty())
{ {
if (!sApp->isInternetAccessible()) if (!sApp || !sApp->isInternetAccessible())
{ {
CLogMessage(this).error(u"No weather download since network/internet not accessible"); CLogMessage(this).error(u"No weather download since network/internet not accessible");
return; return;

View File

@@ -1,6 +1,6 @@
load(common_pre) load(common_pre)
QT += core dbus testlib QT += core dbus testlib network
TARGET = testflightplan TARGET = testflightplan
CONFIG -= app_bundle CONFIG -= app_bundle

View File

@@ -1,6 +1,6 @@
load(common_pre) load(common_pre)
QT += core dbus testlib QT += core dbus testlib network
TARGET = testxplane TARGET = testxplane
CONFIG -= app_bundle CONFIG -= app_bundle

View File

@@ -1,6 +1,6 @@
load(common_pre) load(common_pre)
QT += core dbus testlib QT += core dbus testlib network
TARGET = testdatastream TARGET = testdatastream
CONFIG -= app_bundle CONFIG -= app_bundle

View File

@@ -1,6 +1,6 @@
load(common_pre) load(common_pre)
QT += core dbus testlib QT += core dbus testlib network
TARGET = testdbus TARGET = testdbus
CONFIG -= app_bundle CONFIG -= app_bundle

View File

@@ -1,6 +1,6 @@
load(common_pre) load(common_pre)
QT += core dbus testlib QT += core dbus testlib network
TARGET = testpropertyindex TARGET = testpropertyindex
CONFIG -= app_bundle CONFIG -= app_bundle

View File

@@ -1,6 +1,6 @@
load(common_pre) load(common_pre)
QT += core dbus testlib QT += core dbus testlib network
TARGET = teststringutils TARGET = teststringutils
CONFIG -= app_bundle CONFIG -= app_bundle

View File

@@ -1,6 +1,6 @@
load(common_pre) load(common_pre)
QT += core dbus testlib QT += core dbus testlib network
TARGET = testweather TARGET = testweather
CONFIG -= app_bundle CONFIG -= app_bundle