Home
last modified time | relevance | path

Searched defs:scoped_test_env (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/libcxx/test/support/
H A Dfilesystem_test_helper.hpp125 struct scoped_test_env struct
127 scoped_test_env() : test_root(random_env_path()) in scoped_test_env() argument
130 ~scoped_test_env() in ~scoped_test_env() argument
136 fs::path make_env_path(std::string p) { return sanitize_path(p); } in make_env_path()
138 std::string sanitize_path(std::string raw) { in sanitize_path()
150 std::string create_file(std::string filename, std::size_t size = 0) { in create_file()
160 std::string create_dir(std::string filename) { in create_dir()
166 std::string create_symlink(std::string source, std::string to) { in create_symlink()
173 std::string create_hardlink(std::string source, std::string to) { in create_hardlink()
180 std::string create_fifo(std::string file) { in create_fifo()
[all …]
/aosp_15_r20/external/cronet/third_party/libc++/src/test/support/
H A Dfilesystem_test_helper.h150 struct scoped_test_env struct
152 scoped_test_env() : test_root(available_cwd_path()) { in scoped_test_env() function
170 ~scoped_test_env() { in ~scoped_test_env() argument
208 scoped_test_env & operator=(scoped_test_env const &) = delete; argument
210 fs::path make_env_path(std::string p) { return sanitize_path(p); } in make_env_path()
212 std::string sanitize_path(std::string raw) { in sanitize_path()
230 std::string filename = sanitize_path(filename_path.string());
245 FILE* file = utils::fopen64(filename.c_str(), "w" FOPEN_CLOEXEC_FLAG);
264 std::string create_dir(fs::path filename_path) { in create_dir()
281 int ret = utils::symlink(source.c_str(), to.c_str(), is_dir);
[all …]