Searched refs:ProcUtil (Results 1 – 8 of 8) sorted by relevance
16 TEST(ProcUtil, CountOpenFds) { in TEST() argument19 int fd_count = ProcUtil::CountOpenFds(proc_fd.get()); in TEST()22 EXPECT_EQ(fd_count + 1, ProcUtil::CountOpenFds(proc_fd.get())); in TEST()24 EXPECT_EQ(fd_count, ProcUtil::CountOpenFds(proc_fd.get())); in TEST()27 TEST(ProcUtil, HasOpenDirectory) { in TEST() argument29 EXPECT_FALSE(ProcUtil::HasOpenDirectory()); in TEST()34 EXPECT_TRUE(ProcUtil::HasOpenDirectory()); in TEST()36 EXPECT_FALSE(ProcUtil::HasOpenDirectory()); in TEST()39 TEST(ProcUtil, HasOpenDirectoryWithFD) { in TEST() argument46 EXPECT_TRUE(ProcUtil::HasOpenDirectory()); in TEST()[all …]
42 int ProcUtil::CountOpenFds(int proc_fd) { in CountOpenFds()72 bool ProcUtil::HasOpenDirectory(int proc_fd) { in HasOpenDirectory()109 bool ProcUtil::HasOpenDirectory() { in HasOpenDirectory()116 base::ScopedFD ProcUtil::OpenProc() { in OpenProc()
151 CHECK(Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in SANDBOX_TEST()163 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()181 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()203 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()222 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()252 CHECK(Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in SANDBOX_TEST()
14 class SANDBOX_EXPORT ProcUtil {37 DISALLOW_IMPLICIT_CONSTRUCTORS(ProcUtil);
167 base::ScopedFD task_fd(ProcUtil::OpenProc()); in IsSingleThreaded()179 base::ScopedFD task_fd(ProcUtil::OpenProc()); in AssertSingleThreaded()
167 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in DropAllCapabilities()319 CHECK(!ProcUtil::HasOpenDirectory(proc_fd)); in DropFileSystemAccess()
115 CHECK(sandbox::Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in MULTIPROCESS_TEST_MAIN()
161 SetProcFd(ProcUtil::OpenProc()); in StartSandbox()