Lines Matching refs:Access
146 ASSERT_EQ(0, fs->Access(Path("/foo"), R_OK | W_OK | X_OK));
159 ASSERT_EQ(0, fs->Access(Path("/bar"), R_OK | W_OK | X_OK));
160 ASSERT_EQ(ENOENT, fs->Access(Path("/foo/bar"), F_OK));
163 TEST_F(Html5FsTest, Access) {
169 ASSERT_EQ(0, fs->Access(Path("/foo"), R_OK | W_OK | X_OK));
170 ASSERT_EQ(ENOENT, fs->Access(Path("/bar"), F_OK));
181 ASSERT_EQ(ENOENT, fs->Access(path, F_OK));
198 ASSERT_EQ(0, fs->Access(path, F_OK));
200 EXPECT_EQ(ENOENT, fs->Access(path, F_OK));
212 EXPECT_EQ(ENOENT, fs->Access(Path("/file"), F_OK));
213 EXPECT_EQ(0, fs->Access(Path("/dir"), F_OK));
225 EXPECT_EQ(ENOENT, fs->Access(Path("/dir"), F_OK));
226 EXPECT_EQ(0, fs->Access(Path("/file"), F_OK));
237 ASSERT_EQ(0, fs->Access(path, F_OK));
239 EXPECT_EQ(ENOENT, fs->Access(path, F_OK));
240 EXPECT_EQ(0, fs->Access(newpath, F_OK));
248 EXPECT_EQ(ENOENT, fs->Access(path, F_OK));
271 // Try to truncate without write access.