From 3ff5bd46952144926d9bd9beedf50023a51913ee Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 29 Apr 2025 16:33:32 +0200 Subject: ui: flatten namespace hierarchy --- ui/tests/participant_row.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ui/tests/participant_row.cpp (limited to 'ui/tests/participant_row.cpp') diff --git a/ui/tests/participant_row.cpp b/ui/tests/participant_row.cpp new file mode 100644 index 0000000..5d89c42 --- /dev/null +++ b/ui/tests/participant_row.cpp @@ -0,0 +1,30 @@ +#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