Home
last modified time | relevance | path

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

/system/netd/libnetdutils/
DSyscallsTest.cpp58 constexpr Fd kFd(40); in TEST_F() local
62 EXPECT_CALL(mSyscalls, open(kPath, kFlags, kMode)).WillOnce(Return(ByMove(UniqueFd(kFd)))); in TEST_F()
63 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F()
66 EXPECT_EQ(kFd, result.value()); in TEST_F()
70 constexpr Fd kFd(40); in TEST_F() local
75 EXPECT_CALL(mSyscalls, getsockname(kFd, _, _)) in TEST_F()
81 const auto result = sys.getsockname<sockaddr_nl>(kFd); in TEST_F()
87 EXPECT_CALL(mSyscalls, getsockname(kFd, _, _)).WillOnce(Return(kError)); in TEST_F()
88 EXPECT_EQ(kError, sys.getsockname<sockaddr_nl>(kFd).status()); in TEST_F()
92 constexpr Fd kFd(40); in TEST_F() local
[all …]
DFdTest.cpp101 constexpr Fd kFd(101); in TEST_F() local
102 UniqueFd u1(kFd); in TEST_F()
107 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F()
114 constexpr Fd kFd(102); in TEST_F() local
115 UniqueFd u1(kFd); in TEST_F()
124 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F()
131 constexpr Fd kFd(103); in TEST_F() local
132 const UniqueFd u(kFd); in TEST_F()
137 constexpr Fd kFd(103); in TEST_F() local
138 UniqueFd u(kFd); in TEST_F()