aboutsummaryrefslogtreecommitdiff
path: root/test/ui
diff options
context:
space:
mode:
Diffstat (limited to 'test/ui')
-rw-r--r--test/ui/CMakeLists.txt6
-rw-r--r--test/ui/DeleteLaterTest.cpp17
2 files changed, 0 insertions, 23 deletions
diff --git a/test/ui/CMakeLists.txt b/test/ui/CMakeLists.txt
index 66a7cd27..e69de29b 100644
--- a/test/ui/CMakeLists.txt
+++ b/test/ui/CMakeLists.txt
@@ -1,6 +0,0 @@
-add_executable(CruUiTest
- DeleteLaterTest.cpp
-)
-target_link_libraries(CruUiTest PRIVATE CruUi CruTestBase)
-
-cru_catch_discover_tests(CruUiTest)
diff --git a/test/ui/DeleteLaterTest.cpp b/test/ui/DeleteLaterTest.cpp
deleted file mode 100644
index c9d600de..00000000
--- a/test/ui/DeleteLaterTest.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "cru/ui/DeleteLater.h"
-
-#include <catch2/catch_test_macros.hpp>
-
-struct MockDeleteLater {
- bool triggered = false;
-
- void DeleteLater() { triggered = true; }
-};
-
-TEST_CASE("DeleteLaterPtr should work.", "[delete-later]") {
- auto ptr = cru::ui::MakeDeleteLater<MockDeleteLater>();
- auto p = ptr.get();
- ptr.reset();
- REQUIRE(p->triggered);
- delete p;
-}