Skip to content

Commit aa99222

Browse files
Johnny CarlsonJohnny Carlson
authored andcommitted
qmltest: rename onboardingtests to setup
1 parent ecc13ce commit aa99222

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

src/Makefile.qmltest.include

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
bin_PROGRAMS += qml/test/test_bitcoin-qt
66
TESTS += qml/test/test_bitcoin-qt
77

8-
TEST_QML_MOC_CPP = qml/test/moc_onboardingtests.cpp
8+
TEST_QML_MOC_CPP = qml/test/moc_setup.cpp
99

10-
TEST_QML_H = qml/test/onboardingtests.h qml/test/testimageprovider.h
10+
TEST_QML_H = qml/test/setup.h qml/test/testimageprovider.h
1111

1212
qml_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
1313
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(QT_QUICKTEST_INCLUDES) $(BOOST_CPPFLAGS) $(QT_QUICKTEST_CFLAGS)
1414

1515
qml_test_test_bitcoin_qt_SOURCES = \
16-
qml/test/onboardingtests.cpp \
16+
qml/test/setup.cpp \
1717
qml/bitcoin_qml.qrc \
1818
qml/test/testimageprovider.cpp \
1919
$(TEST_QML_H)

src/qml/test/onboardingtests.cpp renamed to src/qml/test/setup.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
// Copyright (c) 2023 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
#include <qml/test/setup.h>
5+
46
#include <QtQuickTest>
57
#include <QQmlEngine>
68
#include <QQmlContext>
79
#include <qml/test/testimageprovider.h>
8-
#include <qml/test/onboardingtests.h>
9-
10-
Setup::Setup()
11-
{
12-
}
1310

1411
void Setup::qmlEngineAvailable(QQmlEngine * engine) {
1512
engine->addImageProvider(QStringLiteral("images"), new TestImageProvider());
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) 2014-2023 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4-
#ifndef BITCOIN_QML_TEST_ONBOARDINGTESTS_H
5-
#define BITCOIN_QML_TEST_ONBOARDINGTESTS_H
4+
#ifndef BITCOIN_QML_TEST_SETUP_H
5+
#define BITCOIN_QML_TEST_SETUP_H
66

77
#include <QObject>
88
#include <QQmlEngine>
@@ -12,11 +12,11 @@ class Setup : public QObject
1212
Q_OBJECT
1313

1414
public:
15-
Setup();
15+
Setup() = default;
1616
~Setup() = default;
1717

1818
public Q_SLOTS:
1919
void qmlEngineAvailable(QQmlEngine * engine);
2020
};
2121

22-
#endif // BITCOIN_QML_TEST_ONBOARDINGTESTS_H
22+
#endif // BITCOIN_QML_TEST_SETUP_H

0 commit comments

Comments
 (0)