Home | History | Annotate | Download | only in disk_cache

Lines Matching refs:file_util

6 #include "base/file_util.h"
22 ASSERT_TRUE(file_util::CreateDirectory(cache_dir_));
23 FILE *fp = file_util::OpenFile(file1_, "w");
25 file_util::CloseFile(fp);
26 fp = file_util::OpenFile(file2_, "w");
28 file_util::CloseFile(fp);
29 ASSERT_TRUE(file_util::CreateDirectory(dir1_));
50 EXPECT_TRUE(file_util::PathExists(dest_dir_));
51 EXPECT_TRUE(file_util::PathExists(dest_file1_));
52 EXPECT_TRUE(file_util::PathExists(dest_file2_));
53 EXPECT_TRUE(file_util::PathExists(dest_dir1_));
55 EXPECT_TRUE(file_util::PathExists(cache_dir_)); // old cache dir stays
57 EXPECT_FALSE(file_util::PathExists(cache_dir_)); // old cache is gone
59 EXPECT_FALSE(file_util::PathExists(file1_));
60 EXPECT_FALSE(file_util::PathExists(file2_));
61 EXPECT_FALSE(file_util::PathExists(dir1_));
67 file_util::Delete(dir1_, false);
69 EXPECT_TRUE(file_util::PathExists(cache_dir_)); // cache dir stays
70 EXPECT_FALSE(file_util::PathExists(file1_));
71 EXPECT_FALSE(file_util::PathExists(file2_));
77 file_util::Delete(dir1_, false);
79 EXPECT_FALSE(file_util::PathExists(cache_dir_)); // cache dir is gone
80 EXPECT_FALSE(file_util::PathExists(file1_));
81 EXPECT_FALSE(file_util::PathExists(file2_));
86 EXPECT_FALSE(file_util::PathExists(file1_));
87 EXPECT_TRUE(file_util::PathExists(cache_dir_)); // cache dir stays