Lines Matching full:base
12 #include <base/files/file_util.h>
13 #include <base/files/scoped_temp_dir.h>
26 base::FilePath file_path_;
27 base::ScopedTempDir temp_dir_;
33 base::WriteFile(file_path_, contents.c_str(), contents.length()));
38 EXPECT_TRUE(base::PathExists(file_path_));
40 EXPECT_TRUE(base::ReadFileToString(file_path_, &new_contents));
47 EXPECT_TRUE(base::GetPosixFilePermissions(file_path_, &actual_permissions));
56 base::FILE_PERMISSION_READ_BY_USER | base::FILE_PERMISSION_WRITE_BY_USER,
57 kPermissions700 = base::FILE_PERMISSION_USER_MASK,
58 kPermissions777 = base::FILE_PERMISSION_MASK
90 EXPECT_TRUE(base::CreateDirectory(file_path_));
92 EXPECT_FALSE(base::DirectoryExists(file_path_));
97 base::FilePath symlink_target = temp_dir_.path().Append("target.temp");
98 EXPECT_TRUE(base::CreateSymbolicLink(symlink_target, file_path_));
100 EXPECT_FALSE(base::IsLink(file_path_));