17#ifndef GZ_COMMON_TESTING_TESTPATHS_HH_
18#define GZ_COMMON_TESTING_TESTPATHS_HH_
27#include "gz/common/testing/Export.hh"
29#include <gz/utils/SuppressWarning.hh>
31#ifndef TESTING_PROJECT_SOURCE_DIR
32#define TESTING_PROJECT_SOURCE_DIR ""
35namespace gz::common::testing
51enum class GZ_COMMON_TESTING_VISIBLE BuildType
69 const std::string &_projectSourcePath = kTestingProjectSourceDir);
84GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
87GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
102GZ_COMMON_TESTING_VISIBLE
106 bool _cleanup =
true);
123 bool _cleanup =
true)
137GZ_COMMON_TESTING_VISIBLE
139 const std::string &_projectSourcePath = kTestingProjectSourceDir);
147GZ_COMMON_TESTING_VISIBLE
149 const std::string &_projectSourcePath = kTestingProjectSourceDir);
159template <
typename... Args>
163 assert(
nullptr != testPaths);
166 testPaths->ProjectSourcePath(dataDir);
167 return common::joinPaths(dataDir, args...);
178template <
typename... Args>
192template <
typename... Args>
196 assert(
nullptr != testPaths);
199 testPaths->TestTmpPath(dataDir);
200 return common::joinPaths(dataDir, args...);