#include "test/test_paths.h"
#include <stdlib.h>
#include <sys/stat.h>
#include "base/check.h"
#include "base/logging.h"
#include "build/build_config.h"
#include "util/misc/paths.h"
namespace crashpad {
namespace test {
namespace {
bool IsTestDataRoot(const base::FilePath& candidate) { … }
base::FilePath TestDataRootInternal() { … }
#if BUILDFLAG(IS_WIN) && defined(ARCH_CPU_64_BITS)
base::FilePath Output32BitDirectory() {
const wchar_t* environment_value = _wgetenv(L"CRASHPAD_TEST_32_BIT_OUTPUT");
if (!environment_value) {
return base::FilePath();
}
return base::FilePath(environment_value);
}
#endif
}
base::FilePath TestPaths::Executable() { … }
base::FilePath TestPaths::ExpectedExecutableBasename(
const base::FilePath::StringType& name) { … }
base::FilePath TestPaths::TestDataRoot() { … }
base::FilePath TestPaths::BuildArtifact(
const base::FilePath::StringType& module,
const base::FilePath::StringType& artifact,
FileType file_type,
Architecture architecture) { … }
#if BUILDFLAG(IS_WIN) && defined(ARCH_CPU_64_BITS)
bool TestPaths::Has32BitBuildArtifacts() {
return !Output32BitDirectory().empty();
}
#endif
}
}