[network/ruqola] src/widgets/room/autotests: Prepare autotest pendingattachmentwidget
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit d755b9a5d90a4b1753c04fa0a72ebf84aa5337d9 by Laurent Montel. Committed on 16/07/2026 at 22:13. Pushed by mlaurent into branch 'master'. Prepare autotest pendingattachmentwidget M +1 -0 src/widgets/room/autotests/CMakeLists.txt A +22 -0 src/widgets/room/autotests/pendingattachmentwidgettest.cpp [License: LGPL(v2.0+)] A +19 -0 src/widgets/room/autotests/pendingattachmentwidgettest.h [License: LGPL(v2.0+)] https://invent.kde.org/network/ruqola/-/commit/d755b9a5d90a4b1753c04fa0a72ebf84aa5337d9 diff --git a/src/widgets/room/autotests/CMakeLists.txt b/src/widgets/room/autotests/CMakeLists.txt index c29e202726..6ebbec5b5b 100644 --- a/src/widgets/room/autotests/CMakeLists.txt +++ b/src/widgets/room/autotests/CMakeLists.txt @@ -71,3 +71,4 @@ add_ruqolaroom_test(messagelineextratoolbuttontest.cpp) add_ruqolaroom_test(showdebugdialogtest.cpp) add_ruqolaroom_test(showdebugwidgettest.cpp) add_ruqolaroom_test(pendingattachmentclickablewidgettest.cpp) +add_ruqolaroom_test(pendingattachmentwidgettest.cpp) diff --git a/src/widgets/room/autotests/pendingattachmentwidgettest.cpp b/src/widgets/room/autotests/pendingattachmentwidgettest.cpp new file mode 100644 index 0000000000..4bb7633168 --- /dev/null +++ b/src/widgets/room/autotests/pendingattachmentwidgettest.cpp @@ -0,0 +1,22 @@ +/* + SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]> + + SPDX-License-Identifier: LGPL-2.0-or-later +*/ + +#include "pendingattachmentwidgettest.h" +#include "room/pendingattachmentwidget.h" + +#include <QTest> +QTEST_MAIN(PendingAttachmentWidgetTest) + +PendingAttachmentWidgetTest::PendingAttachmentWidgetTest(QObject *parent) + : QObject{parent} +{ +} + +void PendingAttachmentWidgetTest::shouldHaveDefaultValues() +{ + const PendingAttachmentWidget w; + // TODO +} diff --git a/src/widgets/room/autotests/pendingattachmentwidgettest.h b/src/widgets/room/autotests/pendingattachmentwidgettest.h new file mode 100644 index 0000000000..7549a51721 --- /dev/null +++ b/src/widgets/room/autotests/pendingattachmentwidgettest.h @@ -0,0 +1,19 @@ +/* + SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]> + + SPDX-License-Identifier: LGPL-2.0-or-later +*/ + +#pragma once + +#include <QObject> + +class PendingAttachmentWidgetTest : public QObject +{ + Q_OBJECT +public: + explicit PendingAttachmentWidgetTest(QObject *parent = nullptr); + ~PendingAttachmentWidgetTest() override = default; +private Q_SLOTS: + void shouldHaveDefaultValues(); +};