diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-27 09:04:05 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-27 09:04:05 -0500 |
commit | b8345246dcc2121bcb6d1515a9341789de20199f (patch) | |
tree | 4a25857512a90ff38e8a40166c54694b74920216 /test/test_common.hpp | |
parent | f84b8259f6e980fed647d8e1ec0634f89ee59c06 (diff) |
First crack at file objects.
Diffstat (limited to 'test/test_common.hpp')
-rw-r--r-- | test/test_common.hpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/test_common.hpp b/test/test_common.hpp index f049fed..3d7ecba 100644 --- a/test/test_common.hpp +++ b/test/test_common.hpp @@ -18,9 +18,15 @@ #ifndef FUD_TEST_COMMON_HPP #define FUD_TEST_COMMON_HPP +#include "fud_status.hpp" + #include <cstddef> #include <cstdlib> +extern "C" { +int unlink_cb(const char* fpath, const struct stat* sb_unused, int typeflag, struct FTW* ftwbuf); +} + namespace fud { // NOLINTBEGIN(cppcoreguidelines-macro-usage) @@ -70,11 +76,14 @@ struct MockFudAllocator { void deallocate(void* pointer); MockFudAlloc* m_allocator{&globalDefaultMockAlloc}; - MockFudDealloc* m_deallocator{&globalDefaultMockDealloc};; + MockFudDealloc* m_deallocator{&globalDefaultMockDealloc}; }; extern MockFudAllocator globalMockFudAlloc; -} // namespace ext_lib +class String; +FudStatus removeRecursive(const String& path); + +} // namespace fud #endif |