From 72ab1fb4c1bf363f46470816d8b914a78ac493c4 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 24 May 2025 11:58:39 +0200 Subject: gui: restructure file layout and apply licenses --- gui/tests/participant_row.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 gui/tests/participant_row.cpp (limited to 'gui/tests/participant_row.cpp') diff --git a/gui/tests/participant_row.cpp b/gui/tests/participant_row.cpp new file mode 100644 index 0000000..e32be78 --- /dev/null +++ b/gui/tests/participant_row.cpp @@ -0,0 +1,35 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner + * SPDX-License-Identifier: LGPL-2.1-only + */ + +#include "turns/ui/participant_row.hpp" + +#include "turns/core/disposition.hpp" +#include "turns/core/participant.hpp" + +#include + +#include + +#include + +#include + +namespace turns::ui::tests +{ + + TEST_CASE("A freshly constructed participant row") + { + SECTION("can be created without a participant") + { + REQUIRE(std::make_shared(Glib::RefPtr{})); + } + + SECTION("can be created with a participant") + { + REQUIRE(std::make_shared(core::Participant::create("Tazmyla Fireforge", 13, core::Disposition::Secret))); + } + } + +} // namespace turns::ui::widgets::tests \ No newline at end of file -- cgit v1.2.3