Home
last modified time | relevance | path

Searched refs:old_fd_ (Results 1 – 2 of 2) sorted by relevance

/system/libbase/
Dtest_utils.cpp30 CapturedStdFd::CapturedStdFd(int std_fd) : std_fd_(std_fd), old_fd_(-1) { in CapturedStdFd()
35 if (old_fd_ != -1) { in ~CapturedStdFd()
53 CHECK_EQ(-1, old_fd_); in Reset()
64 old_fd_ = dup(std_fd_); in Start()
65 CHECK_NE(-1, old_fd_); in Start()
70 CHECK_NE(-1, old_fd_); in Stop()
71 CHECK_NE(-1, dup2(old_fd_, std_fd_)); in Stop()
72 close(old_fd_); in Stop()
73 old_fd_ = -1; in Stop()
/system/libbase/include/android-base/
Dtest_utils.h41 int old_fd_ = -1; variable