Lines Matching refs:setPermissions

759   fs::setPermissions(Twine(TestDirectory) + "/noreadperm", fs::no_perms);  in TEST_F()
760 fs::setPermissions(Twine(TestDirectory) + "/noreadperm", fs::all_exe); in TEST_F()
1902 ASSERT_NO_ERROR(fs::setPermissions(TempPath, AllRWE)); in TEST_F()
1908 ASSERT_NO_ERROR(fs::setPermissions(TempPath, AllRWE)); in TEST_F()
1915 fs::setPermissions(FD, static_cast<fs::perms>(AllRWE & ~fs::getUmask()))); in TEST_F()
1924 fs::setPermissions(FD, static_cast<fs::perms>(AllRWE & ~fs::getUmask()))); in TEST_F()
1972 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_all), NoError); in TEST_F()
1975 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_read | fs::all_exe), NoError); in TEST_F()
1980 EXPECT_EQ(fs::setPermissions(TempPath, fs::no_perms), NoError); in TEST_F()
1983 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_read), NoError); in TEST_F()
1986 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_write), NoError); in TEST_F()
1989 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_exe), NoError); in TEST_F()
1992 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_all), NoError); in TEST_F()
1995 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_read), NoError); in TEST_F()
1998 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_write), NoError); in TEST_F()
2001 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_exe), NoError); in TEST_F()
2004 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_all), NoError); in TEST_F()
2007 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_read), NoError); in TEST_F()
2010 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_write), NoError); in TEST_F()
2013 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_exe), NoError); in TEST_F()
2016 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_all), NoError); in TEST_F()
2019 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_read), NoError); in TEST_F()
2022 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_write), NoError); in TEST_F()
2025 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_exe), NoError); in TEST_F()
2028 EXPECT_EQ(fs::setPermissions(TempPath, fs::set_uid_on_exe), NoError); in TEST_F()
2031 EXPECT_EQ(fs::setPermissions(TempPath, fs::set_gid_on_exe), NoError); in TEST_F()
2034 EXPECT_EQ(fs::setPermissions(TempPath, fs::sticky_bit), NoError); in TEST_F()
2037 EXPECT_EQ(fs::setPermissions(TempPath, fs::set_uid_on_exe | in TEST_F()
2043 EXPECT_EQ(fs::setPermissions(TempPath, ReadOnly | fs::set_uid_on_exe | in TEST_F()
2049 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_perms), NoError); in TEST_F()
2052 EXPECT_EQ(fs::setPermissions(TempPath, fs::no_perms), NoError); in TEST_F()
2055 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_read), NoError); in TEST_F()
2058 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_write), NoError); in TEST_F()
2061 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_exe), NoError); in TEST_F()
2064 EXPECT_EQ(fs::setPermissions(TempPath, fs::owner_all), NoError); in TEST_F()
2067 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_read), NoError); in TEST_F()
2070 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_write), NoError); in TEST_F()
2073 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_exe), NoError); in TEST_F()
2076 EXPECT_EQ(fs::setPermissions(TempPath, fs::group_all), NoError); in TEST_F()
2079 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_read), NoError); in TEST_F()
2082 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_write), NoError); in TEST_F()
2085 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_exe), NoError); in TEST_F()
2088 EXPECT_EQ(fs::setPermissions(TempPath, fs::others_all), NoError); in TEST_F()
2091 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_read), NoError); in TEST_F()
2094 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_write), NoError); in TEST_F()
2097 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_exe), NoError); in TEST_F()
2100 EXPECT_EQ(fs::setPermissions(TempPath, fs::set_uid_on_exe), NoError); in TEST_F()
2103 EXPECT_EQ(fs::setPermissions(TempPath, fs::set_gid_on_exe), NoError); in TEST_F()
2111 EXPECT_EQ(fs::setPermissions(TempPath, fs::sticky_bit), NoError); in TEST_F()
2114 EXPECT_EQ(fs::setPermissions(TempPath, fs::set_uid_on_exe | in TEST_F()
2121 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_read | fs::set_uid_on_exe | in TEST_F()
2128 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_perms), NoError); in TEST_F()
2132 EXPECT_EQ(fs::setPermissions(TempPath, fs::all_perms & ~fs::sticky_bit), in TEST_F()