diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-06-08 12:12:15 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-06-08 12:12:15 +0200 |
| commit | f50ec041a0f6fa036305ab5d5bdbdb9116b48024 (patch) | |
| tree | a11bc0c12113b03c8d1d88873980d680cb7bfd19 /gui/tests/gtk-test.hpp | |
| parent | 8f7d79ed8433bd4809ecef12e6c8c9c015cd903b (diff) | |
| download | turns-f50ec041a0f6fa036305ab5d5bdbdb9116b48024.tar.xz turns-f50ec041a0f6fa036305ab5d5bdbdb9116b48024.zip | |
gui: add more ParticipantEditor editing tests
Diffstat (limited to 'gui/tests/gtk-test.hpp')
| -rw-r--r-- | gui/tests/gtk-test.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gui/tests/gtk-test.hpp b/gui/tests/gtk-test.hpp new file mode 100644 index 0000000..5ac6753 --- /dev/null +++ b/gui/tests/gtk-test.hpp @@ -0,0 +1,33 @@ +/* + * 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 |
