diff options
Diffstat (limited to 'src/test/GpgFrontendTest.h')
-rw-r--r-- | src/test/GpgFrontendTest.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/test/GpgFrontendTest.h b/src/test/GpgFrontendTest.h index 897a8a05..405eee90 100644 --- a/src/test/GpgFrontendTest.h +++ b/src/test/GpgFrontendTest.h @@ -28,23 +28,24 @@ #pragma once -#include <spdlog/spdlog.h> - #include "GpgFrontendTestExport.h" +// Core +#include "core/utils/LogUtils.h" + namespace GpgFrontend::Test { struct GpgFrontendContext { int argc; char **argv; - spdlog::level::level_enum log_level; }; -void GPGFRONTEND_TEST_EXPORT -InitTestLoggingSystem(spdlog::level::level_enum level); - -void GPGFRONTEND_TEST_EXPORT ShutdownTestLoggingSystem(); - auto GPGFRONTEND_TEST_EXPORT ExecuteAllTestCase(GpgFrontendContext args) -> int; +#define GF_TEST_LOG_TRACE(...) GF_LOG_TRACE("test", __VA_ARGS__) +#define GF_TEST_LOG_DEBUG(...) GF_LOG_DEBUG("test", __VA_ARGS__) +#define GF_TEST_LOG_INFO(...) GF_LOG_INFO("test", __VA_ARGS__) +#define GF_TEST_LOG_WARN(...) GF_LOG_WARN("test", __VA_ARGS__) +#define GF_TEST_LOG_ERROR(...) GF_LOG_ERROR("test", __VA_ARGS__) + } // namespace GpgFrontend::Test |