Skip to content

Commit

Permalink
qml/test: add include guards to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Carlson authored and Johnny Carlson committed Jan 13, 2023
1 parent 90c2237 commit 27a615a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/qml/test/onboardingtests.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QML_TEST_ONBOARDINGTESTS_H
#define BITCOIN_QML_TEST_ONBOARDINGTESTS_H

#include <QtQuickTest>
#include <QQmlEngine>
#include <QQmlContext>
Expand All @@ -13,3 +19,5 @@ void Setup::qmlEngineAvailable(QQmlEngine * engine) {
}

QUICK_TEST_MAIN_WITH_SETUP(onboarding, Setup)

#endif // BITCOIN_QML_TEST_ONBOARDINGTESTS_H
7 changes: 5 additions & 2 deletions src/qml/test/onboardingtests.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) 2014-2023 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QML_TEST_ONBOARDINGTESTS_H
#define BITCOIN_QML_TEST_ONBOARDINGTESTS_H

#include <QObject>
#include <QQmlEngine>
Expand All @@ -10,10 +12,11 @@ class Setup : public QObject
Q_OBJECT

public:
Setup();
Setup();
~Setup() = default;

public Q_SLOTS:
void qmlEngineAvailable(QQmlEngine * engine);
void qmlEngineAvailable(QQmlEngine * engine);
};

#endif // BITCOIN_QML_TEST_ONBOARDINGTESTS_H
8 changes: 4 additions & 4 deletions src/qml/test/testimageprovider.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) 2021 The Bitcoin Core developers
// Copyright (c) 2023 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_QML_TEST_IMAGEPROVIDER_H
#define BITCOIN_QML_TEST_IMAGEPROVIDER_H
#ifndef BITCOIN_QML_TEST_TESTIMAGEPROVIDER_H
#define BITCOIN_QML_TEST_TESTIMAGEPROVIDER_H

#include <QPixmap>
#include <QQuickImageProvider>
Expand All @@ -22,4 +22,4 @@ class TestImageProvider : public QQuickImageProvider

};

#endif // BITCOIN_QML_IMAGEPROVIDER_H
#endif // BITCOIN_QML_TEST_TESTIMAGEPROVIDER_H

0 comments on commit 27a615a

Please sign in to comment.