Home | History | Annotate | Download | only in tests

Lines Matching refs:filename

14  *  Will use SkOSPath::Join to append filename to dir, test that it works correctly,
19 * @param filename String representing the basename of a file. Must NOT
23 SkString filename) {
24 // If filename contains SkOSPath::SEPARATOR, the tests will fail.
25 SkASSERT(!filename.contains(SkOSPath::SEPARATOR));
30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str());
34 size_t expectedSize = dir.size() + filename.size();
43 // basename should be the same as filename
44 REPORTER_ASSERT(reporter, basename.equals(filename));
60 // Now take the basename of filename, which should be the same as filename.
61 basename = SkOSPath::Basename(filename.c_str());
62 REPORTER_ASSERT(reporter, basename.equals(filename));
67 SkString filename("file");
68 test_dir_with_file(reporter, dir, filename);
72 test_dir_with_file(reporter, dir, filename);
74 // Test using no filename.
78 test_dir_with_file(reporter, SkString(), filename);
82 test_dir_with_file(reporter, dir, filename);
95 filename.set("file");
96 test_dir_with_file(reporter, dir, filename);
99 filename.reset();
100 test_dir_with_file(reporter, dir, filename);
102 // Test that nullptr can be used for the directory and filename.