Tests: Minor refactoring.

This commit is contained in:
Nodir Temirkhodjaev 2018-11-14 19:19:31 +05:00
parent ad3d242daf
commit 8d42f95869
8 changed files with 20 additions and 16 deletions

View File

@ -6,14 +6,17 @@ CONFIG -= app_bundle
TARGET = test
TEMPLATE = app
UIPATH = ../../ui
UIPATH = $$PWD/../../ui
INCLUDEPATH += $$UIPATH
INCLUDEPATH += $$PWD
SOURCES += \
../common/main.cpp \
$$PWD/main.cpp \
test.cpp
HEADERS += \
$$PWD/commontest.h \
test.h
# Windows

View File

@ -0,0 +1,9 @@
#ifndef TESTUTIL_H
#define TESTUTIL_H
#include <QtTest>
#define _STR(x) #x
#define STR(x) _STR(x)
#endif // TESTUTIL_H

View File

@ -1,7 +1,6 @@
#include "test.h"
#include <QtTest>
#include "commontest.h"
#include "conf/addressgroup.h"
#include "conf/appgroup.h"
#include "conf/firewallconf.h"

View File

@ -1,8 +1,8 @@
#include "test.h"
#include <QtTest>
#include <QElapsedTimer>
#include "commontest.h"
#include "db/databasemanager.h"
#include "db/quotamanager.h"
#include "db/sqlite/sqlitedb.h"

View File

@ -1,7 +1,6 @@
#include "test.h"
#include <QtTest>
#include "commontest.h"
#include "util/fileutil.h"
#include "util/processinfo.h"

View File

@ -1,7 +1,6 @@
#include "test.h"
#include <QtTest>
#include "commontest.h"
#include "fortcommon.h"
#include "log/logbuffer.h"
#include "log/logentryblocked.h"

View File

@ -1,9 +1,8 @@
#include "test.h"
#include <QtTest>
#include <QDebug>
#include <QFile>
#include "commontest.h"
#include "conf/addressgroup.h"
#include "conf/appgroup.h"
#include "conf/firewallconf.h"

View File

@ -1,15 +1,11 @@
#include "test.h"
#include <QtTest>
#include "commontest.h"
#include "task/tasktasix.h"
#include "util/fileutil.h"
#include "util/net/ip4range.h"
#include "util/net/netutil.h"
#define _STR(x) #x
#define STR(x) _STR(x)
void Test::ip4Text()
{
const QString ip4Str("172.16.0.1");