Home | History | Annotate | Download | only in brillo

Lines Matching defs:file_path_

22     file_path_ = temp_dir_.path().Append("test.temp");
26 base::FilePath file_path_;
29 // Writes |contents| to |file_path_|. Pulled into a separate function just
33 base::WriteFile(file_path_, contents.c_str(), contents.length()));
36 // Verifies that the file at |file_path_| exists and contains |contents|.
38 EXPECT_TRUE(base::PathExists(file_path_));
40 EXPECT_TRUE(base::ReadFileToString(file_path_, &new_contents));
44 // Verifies that the file at |file_path_| has |permissions|.
47 EXPECT_TRUE(base::GetPosixFilePermissions(file_path_, &actual_permissions));
64 EXPECT_TRUE(TouchFile(file_path_));
71 EXPECT_TRUE(TouchFile(file_path_));
78 file_path_ = temp_dir_.path().Append("foo/bar/baz/test.temp");
79 EXPECT_TRUE(TouchFile(file_path_));
85 EXPECT_TRUE(TouchFile(file_path_));
90 EXPECT_TRUE(base::CreateDirectory(file_path_));
91 EXPECT_TRUE(TouchFile(file_path_));
92 EXPECT_FALSE(base::DirectoryExists(file_path_));
98 EXPECT_TRUE(base::CreateSymbolicLink(symlink_target, file_path_));
99 EXPECT_TRUE(TouchFile(file_path_));
100 EXPECT_FALSE(base::IsLink(file_path_));
106 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid() + 1, getegid()));
112 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid() + 1));
117 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid()));
123 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid()));
129 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid()));
130 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid()));