From d373bc6ed0c3b97526fc350b01d2d407409d0fce Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 14 Sep 2020 02:17:43 +0300 Subject: clang-format: regroup #includes --- test/unit_tests/utils.hpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 test/unit_tests/utils.hpp (limited to 'test/unit_tests/utils.hpp') diff --git a/test/unit_tests/utils.hpp b/test/unit_tests/utils.hpp deleted file mode 100644 index 561ca4d..0000000 --- a/test/unit_tests/utils.hpp +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include -#include -#include - -using path = boost::filesystem::path; - -class FixFilesystem { -public: - FixFilesystem() { boost::nowide::nowide_filesystem(); } -}; - -class Paths { -public: - typedef boost::filesystem::path path; - - static Paths& get() { - static FixFilesystem fix_filesystem; - static Paths instance; - return instance; - } - - Paths() : exe_path{get_executable_path()}, exe_dir{exe_path.parent_path()} {} - - const path exe_path; - const path exe_dir; - -private: - static path get_executable_path() { - const auto argv0 = boost::unit_test::framework::master_test_suite().argv[0]; - return boost::filesystem::system_complete(argv0); - } - - Paths(const Paths&) = delete; - Paths& operator=(const Paths&) = delete; -}; -- cgit v1.3