diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-06-08 14:53:13 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-06-08 14:53:13 +0200 |
| commit | 63aa6b86c211828c47027145ff405fd7e3fc5c3a (patch) | |
| tree | ff77a5279b845b0fa2d5d5ef7c11de97a71c5c96 /gui/tests/gtk-test.hpp | |
| parent | 0c5b0e03345d31406963e8ed8348a8c77ebe6352 (diff) | |
| download | turns-63aa6b86c211828c47027145ff405fd7e3fc5c3a.tar.xz turns-63aa6b86c211828c47027145ff405fd7e3fc5c3a.zip | |
gui: wrap tests in application
Diffstat (limited to 'gui/tests/gtk-test.hpp')
| -rw-r--r-- | gui/tests/gtk-test.hpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gui/tests/gtk-test.hpp b/gui/tests/gtk-test.hpp deleted file mode 100644 index 5ac6753..0000000 --- a/gui/tests/gtk-test.hpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> - * SPDX-License-Identifier: LGPL-2.1-only - */ - -#ifndef TURNS_GUI_TESTS_GTK_TEST_HPP -#define TURNS_GUI_TESTS_GTK_TEST_HPP - -#include <catch2/reporters/catch_reporter_event_listener.hpp> -#include <catch2/reporters/catch_reporter_registrars.hpp> - -#include <adwaitamm/application.hpp> -#include <glibmm/refptr.h> - -namespace Turns::gui::tests -{ - - struct gtk_test : Catch::EventListenerBase - { - using Catch::EventListenerBase::EventListenerBase; - - static inline Glib::RefPtr<Adwaita::Application> application{}; - - auto testRunStarting(Catch::TestRunInfo const &) -> void override; - auto testRunEnded(Catch::TestRunStats const &) -> void override; - auto testCaseEnded(Catch::TestCaseStats const &) -> void override; - }; - - CATCH_REGISTER_LISTENER(gtk_test); - -} // namespace turns::ui::tests - -#endif |
