Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/tests/
DBufferHubEventFd_test.cpp49 base::unique_fd epollFd(epoll_create(64)); in TEST_F() local
50 ASSERT_GE(epollFd.get(), 0); in TEST_F()
53 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
56 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
59 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
62 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
66 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
67 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
73 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
74 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
[all …]
DBufferHubBuffer_test.cpp190 base::unique_fd epollFd(epoll_create(64)); in TEST_F() local
191 ASSERT_GE(epollFd.get(), 0); in TEST_F()
195 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd1.get(), &e), 0) << strerror(errno); in TEST_F()
198 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
201 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
204 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
208 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()