Lines Matching defs:const
22 inline fs::path makePath(fs::path const& p) {
24 static const fs::path env_path = LIBCXX_FILESYSTEM_STATIC_TEST_ROOT;
28 static const fs::path Root = LIBCXX_FILESYSTEM_STATIC_TEST_ROOT;
30 static const fs::path TestFileList[] = {
36 const std::size_t TestFileListSize = sizeof(TestFileList) / sizeof(fs::path);
38 static const fs::path TestDirList[] = {
43 const std::size_t TestDirListSize = sizeof(TestDirList) / sizeof(fs::path);
45 static const fs::path File = TestFileList[0];
46 static const fs::path Dir = TestDirList[0];
47 static const fs::path Dir2 = TestDirList[1];
48 static const fs::path Dir3 = TestDirList[2];
49 static const fs::path SymlinkToFile = makePath("symlink_to_empty_file");
50 static const fs::path SymlinkToDir = makePath("symlink_to_dir");
51 static const fs::path BadSymlink = makePath("bad_symlink");
52 static const fs::path DNE = makePath("DNE");
53 static const fs::path EmptyFile = TestFileList[0];
54 static const fs::path NonEmptyFile = TestFileList[1];
55 static const fs::path CharFile = "/dev/null"; // Hopefully this exists
57 static const fs::path DirIterationList[] = {
62 const std::size_t DirIterationListSize = sizeof(DirIterationList)
65 static const fs::path DirIterationListDepth1[] = {
72 static const fs::path RecDirIterationList[] = {
83 static const fs::path RecDirFollowSymlinksIterationList[] = {
115 scoped_test_env(scoped_test_env const &) = delete;
116 scoped_test_env & operator=(scoped_test_env const &) = delete;
122 std::string const& root = test_root.native();
178 fs::path const test_root;
203 static const char* env_path = LIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT;
209 static inline std::string make_arg(std::string const& arg) {
219 fs_make_cmd(std::string const& cmd_name, T const& arg) {
225 fs_make_cmd(std::string const& cmd_name, T const& arg1, U const& arg2) {
229 static inline void fs_helper_run(std::string const& raw_cmd) {
269 const char* s;
270 const wchar_t* w;
271 const char16_t* u16;
272 const char32_t* u32;
274 operator const char* () const { return s; }
275 operator const wchar_t* () const { return w; }
276 operator const char16_t* () const { return u16; }
277 operator const char32_t* () const { return u32; }
280 const MultiStringType PathList[] = {
324 const unsigned PathListSize = sizeof(PathList) / sizeof(MultiStringType);
335 const CharT* StrEnd(CharT const* P) {
340 std::size_t StrLen(CharT const* P) {
348 auto const& native_ref = p.native();
354 Iter1 start1, Iter1 const end1
355 , Iter2 start2, Iter2 const end2
370 Iter1 const start1, Iter1 end1
371 , Iter2 const start2, Iter2 end2
399 const auto wake_time = Clock::now() + dur;