summaryrefslogtreecommitdiff
path: root/ui/tests
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-29 16:33:32 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-29 16:33:32 +0200
commit3ff5bd46952144926d9bd9beedf50023a51913ee (patch)
tree2c579fe13bbb5cc90f8f50e7af35218c98e123d5 /ui/tests
parent873bf396b904ce477a238f22d1891e1b03f24eff (diff)
downloadturns-3ff5bd46952144926d9bd9beedf50023a51913ee.tar.xz
turns-3ff5bd46952144926d9bd9beedf50023a51913ee.zip
ui: flatten namespace hierarchy
Diffstat (limited to 'ui/tests')
-rw-r--r--ui/tests/participant_editor.cpp (renamed from ui/tests/widgets/participant_editor.cpp)4
-rw-r--r--ui/tests/participant_row.cpp (renamed from ui/tests/widgets/participant_row.cpp)4
-rw-r--r--ui/tests/resources.cpp (renamed from ui/tests/windows/resources.cpp)2
-rw-r--r--ui/tests/tracker.cpp (renamed from ui/tests/windows/tracker.cpp)8
4 files changed, 9 insertions, 9 deletions
diff --git a/ui/tests/widgets/participant_editor.cpp b/ui/tests/participant_editor.cpp
index 41ba5bd..d222598 100644
--- a/ui/tests/widgets/participant_editor.cpp
+++ b/ui/tests/participant_editor.cpp
@@ -1,4 +1,4 @@
-#include "turns/ui/widgets/participant_editor.hpp"
+#include "turns/ui/participant_editor.hpp"
#include "turns/core/disposition.hpp"
#include "turns/core/participant.hpp"
@@ -23,7 +23,7 @@
#include <clocale>
#include <memory>
-namespace turns::ui::widgets::tests
+namespace turns::ui::tests
{
TEST_CASE("A freshly constructed participant editor without a participant", "[windows]")
diff --git a/ui/tests/widgets/participant_row.cpp b/ui/tests/participant_row.cpp
index 491dcc8..5d89c42 100644
--- a/ui/tests/widgets/participant_row.cpp
+++ b/ui/tests/participant_row.cpp
@@ -1,4 +1,4 @@
-#include "turns/ui/widgets/participant_row.hpp"
+#include "turns/ui/participant_row.hpp"
#include "turns/core/disposition.hpp"
#include "turns/core/participant.hpp"
@@ -11,7 +11,7 @@
#include <memory>
-namespace turns::ui::widgets::tests
+namespace turns::ui::tests
{
TEST_CASE("A freshly constructed participant row")
diff --git a/ui/tests/windows/resources.cpp b/ui/tests/resources.cpp
index 022f3c4..07c026a 100644
--- a/ui/tests/windows/resources.cpp
+++ b/ui/tests/resources.cpp
@@ -5,7 +5,7 @@
TEST_CASE("GResource for tracker")
{
- auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/tracker.ui");
+ auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/tracker.ui");
SECTION("can create Gtk.Builder for the tracker window UI definition")
{
diff --git a/ui/tests/windows/tracker.cpp b/ui/tests/tracker.cpp
index 0f79000..4065a6b 100644
--- a/ui/tests/windows/tracker.cpp
+++ b/ui/tests/tracker.cpp
@@ -1,4 +1,4 @@
-#include "turns/ui/windows/tracker.hpp"
+#include "turns/ui/tracker.hpp"
#include "turns/core/settings.hpp"
#include "turns/lang/messages.hpp"
@@ -18,7 +18,7 @@
#include <clocale>
-namespace turns::ui::windows::tests
+namespace turns::ui::tests
{
TEST_CASE("A freshly constructed tracker window", "[windows]")
@@ -26,7 +26,7 @@ namespace turns::ui::windows::tests
auto locale = GENERATE("en_US.UTF-8", "de_CH.UTF-8");
setlocale(LC_ALL, locale);
- auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/tracker.ui");
+ auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/tracker.ui");
auto instance = Gtk::Builder::get_widget_derived<tracker>(builder, "tracker", core::get_settings());
SECTION("was successfully constructed")
@@ -74,4 +74,4 @@ namespace turns::ui::windows::tests
delete instance;
}
-} // namespace turns::ui::windows::tests \ No newline at end of file
+} // namespace turns::ui::tests \ No newline at end of file