Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/apptests.cpp
Show All 17 Lines | |||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
#include <wallet/db.h> | #include <wallet/db.h> | ||||
#endif | #endif | ||||
#include <test/setup_common.h> | |||||
#include <QAction> | #include <QAction> | ||||
#include <QEventLoop> | #include <QEventLoop> | ||||
#include <QLineEdit> | #include <QLineEdit> | ||||
#include <QScopedPointer> | #include <QScopedPointer> | ||||
#include <QTest> | #include <QTest> | ||||
#include <QTextEdit> | #include <QTextEdit> | ||||
#include <QtGlobal> | #include <QtGlobal> | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | if (QApplication::platformName() == "minimal") { | ||||
"with 'test_bitcoin-qt -platform cocoa' on mac, or else use a " | "with 'test_bitcoin-qt -platform cocoa' on mac, or else use a " | ||||
"linux or windows build."); | "linux or windows build."); | ||||
return; | return; | ||||
} | } | ||||
#endif | #endif | ||||
Config &config = const_cast<Config &>(GetConfig()); | Config &config = const_cast<Config &>(GetConfig()); | ||||
// Create a temp data directory to backup the gui settings to | |||||
BasicTestingSetup test{CBaseChainParams::REGTEST}; | |||||
// Already started by the common test setup, so stop it to avoid | // Already started by the common test setup, so stop it to avoid | ||||
// interference | // interference | ||||
ECC_Stop(); | ECC_Stop(); | ||||
LogInstance().DisconnectTestLogger(); | LogInstance().DisconnectTestLogger(); | ||||
m_app.parameterSetup(); | m_app.parameterSetup(); | ||||
m_app.createOptionsModel(true /* reset settings */); | m_app.createOptionsModel(true /* reset settings */); | ||||
QScopedPointer<const NetworkStyle> style(NetworkStyle::instantiate( | QScopedPointer<const NetworkStyle> style(NetworkStyle::instantiate( | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |