Lines Matching refs:Access
51 EXPECT_EQ(ENOENT, fs.Access(Path("/foo"), R_OK | W_OK));
64 EXPECT_EQ(0, fs.Access(Path("/foo"), R_OK | W_OK));
65 EXPECT_EQ(EACCES, fs.Access(Path("/foo"), X_OK));
67 // All access should be allowed on the root directory.
68 EXPECT_EQ(0, fs.Access(Path("/"), R_OK | W_OK | X_OK));
160 EXPECT_EQ(ENOENT, fs.Access(Path("/foo"), F_OK));
216 ASSERT_EQ(0, fs.Access(Path("/dir1/file"), R_OK));
221 ASSERT_NE(0, fs.Access(Path("/dir1/file"), R_OK));
222 ASSERT_EQ(0, fs.Access(Path("/dir2/new_file"), R_OK));
227 ASSERT_NE(0, fs.Access(Path("/dir2/new_file"), R_OK));
228 ASSERT_EQ(0, fs.Access(Path("/dir2/new_file2"), R_OK));
233 ASSERT_NE(0, fs.Access(Path("/dir2/new_file2"), R_OK));
234 ASSERT_EQ(0, fs.Access(Path("/dir1/new_file2"), R_OK));
247 ASSERT_NE(0, fs.Access(Path("/dir1"), R_OK));
248 ASSERT_EQ(0, fs.Access(Path("/dir2"), R_OK));
257 ASSERT_EQ(0, fs.Access(Path("/dir2"), R_OK));
258 ASSERT_EQ(0, fs.Access(Path("/dir2/foo"), R_OK));
276 ASSERT_EQ(ENOENT, fs.Access(Path("/foo"), F_OK));
299 ASSERT_EQ(0, fs.Access(Path("/null"), R_OK | W_OK));
300 ASSERT_EQ(EACCES, fs.Access(Path("/null"), X_OK));
323 ASSERT_EQ(0, fs.Access(Path("/zero"), R_OK | W_OK));
324 ASSERT_EQ(EACCES, fs.Access(Path("/zero"), X_OK));
354 ASSERT_EQ(0, fs.Access(Path("/urandom"), R_OK | W_OK));
355 ASSERT_EQ(EACCES, fs.Access(Path("/urandom"), X_OK));