diff options
author | saturneric <[email protected]> | 2023-12-13 10:01:06 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-13 10:01:06 +0000 |
commit | 42264ed0d7a3c91fbe9f307984964ffc9e5fe65c (patch) | |
tree | a3ddecbd6ad723e42d68cc2c5aed7a88c4e242a3 /src/test/GpgFrontendTest.h | |
parent | feat: move test to src and add submodule googletest (diff) | |
download | GpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.tar.gz GpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.zip |
refactor: improve the structure of main,core and test module
Diffstat (limited to 'src/test/GpgFrontendTest.h')
-rw-r--r-- | src/test/GpgFrontendTest.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/test/GpgFrontendTest.h b/src/test/GpgFrontendTest.h index 55c6b734..897a8a05 100644 --- a/src/test/GpgFrontendTest.h +++ b/src/test/GpgFrontendTest.h @@ -28,14 +28,23 @@ #pragma once -#include <gtest/gtest.h> -#include <spdlog/sinks/rotating_file_sink.h> -#include <spdlog/sinks/stdout_color_sinks.h> #include <spdlog/spdlog.h> +#include "GpgFrontendTestExport.h" -#include <libconfig.h++> +namespace GpgFrontend::Test { -#include "GpgFrontendTestExport.h" +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; -namespace GpgFrontend::Test {} // namespace GpgFrontend::Test +} // namespace GpgFrontend::Test |