Lines Matching refs:scratch_dir
62 ScratchDir scratch_dir(/*keep_files=*/false); in TEST_F() local
66 scratch_dir.GetPath() + "/a", in TEST_F()
67 scratch_dir.GetPath() + "/b", in TEST_F()
68 scratch_dir.GetPath() + "/b/c", in TEST_F()
69 scratch_dir.GetPath() + "/d" in TEST_F()
76 scratch_dir.GetPath() + "/zero.txt", in TEST_F()
77 scratch_dir.GetPath() + "/a/one.txt", in TEST_F()
78 scratch_dir.GetPath() + "/b/two.txt", in TEST_F()
79 scratch_dir.GetPath() + "/b/c/three.txt", in TEST_F()
80 scratch_dir.GetPath() + "/b/c/four.txt", in TEST_F()
87 ASSERT_TRUE(RemoveDirectory(scratch_dir.GetPath())); in TEST_F()
99 ASSERT_FALSE(OS::DirectoryExists(scratch_dir.GetPath().c_str())); in TEST_F()
116 ScratchDir scratch_dir(/*keep_files=*/false); in TEST_F() local
120 ASSERT_TRUE(EnsureDirectoryExists(scratch_dir.GetPath() + "/" + relative_sub_dir)); in TEST_F()
129 ScratchDir scratch_dir(/*keep_files=*/false); in TEST_F() local
131 const std::string first_file_path = scratch_dir.GetPath() + "/1.dat"; in TEST_F()
139 ASSERT_TRUE(GetUsedSpace(scratch_dir.GetPath(), &bytes_used)); in TEST_F()
141 const std::string second_file_path = scratch_dir.GetPath() + "/2.dat"; in TEST_F()
144 ASSERT_TRUE(GetUsedSpace(scratch_dir.GetPath(), &bytes_used)); in TEST_F()
149 const std::string sub_dir_path = scratch_dir.GetPath() + "/sub"; in TEST_F()
155 ASSERT_TRUE(GetUsedSpace(scratch_dir.GetPath(), &bytes_used)); in TEST_F()
161 ScratchDir scratch_dir(/*keep_files=*/false); in TEST_F() local
162 const std::string bad_path = scratch_dir.GetPath() + "/bad_path"; in TEST_F()