Lines Matching refs:dir
22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, in test_dir_with_file() argument
30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str()); in test_dir_with_file()
34 size_t expectedSize = dir.size() + filename.size(); in test_dir_with_file()
35 if (!dir.endsWith(SkOSPath::SEPARATOR) && !dir.isEmpty()) { in test_dir_with_file()
48 SkString strippedDir = dir; in test_dir_with_file()
53 SkDebugf("OOUCH %s %s %s\n", dir.c_str(), strippedDir.c_str(), dirname.c_str()); in test_dir_with_file()
66 SkString dir("dir"); in DEF_TEST() local
68 test_dir_with_file(reporter, dir, filename); in DEF_TEST()
71 dir.appendUnichar(SkOSPath::SEPARATOR); in DEF_TEST()
72 test_dir_with_file(reporter, dir, filename); in DEF_TEST()
75 test_dir_with_file(reporter, dir, SkString()); in DEF_TEST()
81 dir.append("subDir"); in DEF_TEST()
82 test_dir_with_file(reporter, dir, filename); in DEF_TEST()
85 dir.appendUnichar(SkOSPath::SEPARATOR); in DEF_TEST()
86 SkString baseOfDir = SkOSPath::Basename(dir.c_str()); in DEF_TEST()
94 dir.printf("%c", SkOSPath::SEPARATOR); in DEF_TEST()
96 test_dir_with_file(reporter, dir, filename); in DEF_TEST()
100 test_dir_with_file(reporter, dir, filename); in DEF_TEST()