From 0b34bd33d9b74e51adccba4b330b0bd264a7d24c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Dec 2025 15:08:37 +0000 Subject: Rename test utilities to avoid name conflict. --- test/test-util.hpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 test/test-util.hpp (limited to 'test/test-util.hpp') diff --git a/test/test-util.hpp b/test/test-util.hpp deleted file mode 100644 index f933cba..0000000 --- a/test/test-util.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include - -namespace WebStat { -#define XSTR(s) STR(s) -#define STR(s) #s - inline const std::filesystem::path SRC_DIR(XSTR(SRC)); - inline const std::filesystem::path TEST_DIR(XSTR(TEST)); - inline const std::filesystem::path FIXTURE_DIR(XSTR(FIXTURES)); - inline const std::string FIXTURE_URL_BASE = "file://" + std::filesystem::canonical(FIXTURE_DIR).string(); -#undef XSTR -#undef STR - - struct MockDB : public DB::PluginMock { - MockDB(); - }; - - class MockDBPool : public DB::BasicConnectionPool { - public: - MockDBPool(std::string); - - protected: - DB::ConnectionPtr createResource() const; - - private: - std::string name; - }; - - template using ParseData = std::tuple; - - utsname getTestUtsName(std::string_view); - - struct LogFile { - LogFile(std::filesystem::path where, size_t entries); - ~LogFile(); - SPECIAL_MEMBERS_DELETE(LogFile); - - const std::filesystem::path path; - }; -} -- cgit v1.3