• Home
  • Raw
  • Download

Lines Matching refs:get

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()
70 BufferHubEventFd dupEventFd(dup(eventFd.get())); 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()
76 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
77 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
86 ASSERT_GE(epollFd.get(), 0); in TEST_F()
90 ASSERT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
94 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
95 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
98 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
106 ASSERT_GE(epollFd.get(), 0); in TEST_F()
111 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
114 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
117 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
124 ASSERT_GE(epollFd.get(), 0); in TEST_F()
126 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
131 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
132 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
140 ASSERT_GE(epollFd.get(), 0); in TEST_F()
142 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
144 BufferHubEventFd dupEventFd(dup(eventFd.get())); in TEST_F()
150 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
151 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
162 ASSERT_GE(epollFd.get(), 0); in TEST_F()
163 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
169 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
179 ASSERT_GE(epollFd.get(), 0); in TEST_F()
180 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
185 BufferHubEventFd dupedEventFd(dup(eventFd.get())); in TEST_F()
186 ASSERT_GE(dupedEventFd.get(), 0); in TEST_F()
189 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
192 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
195 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
200 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
211 ASSERT_GE(epollFd1.get(), 0); in TEST_F()
212 ASSERT_GE(epollFd2.get(), 0); in TEST_F()
215 ASSERT_EQ(epoll_ctl(epollFd1.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
216 ASSERT_EQ(epoll_ctl(epollFd2.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
219 EXPECT_EQ(epoll_wait(epollFd1.get(), events.data(), events.size(), 0), 0); in TEST_F()
220 EXPECT_EQ(epoll_wait(epollFd2.get(), events.data(), events.size(), 0), 0); in TEST_F()
223 EXPECT_EQ(epoll_wait(epollFd1.get(), events.data(), events.size(), 0), 1); in TEST_F()
224 EXPECT_EQ(epoll_wait(epollFd2.get(), events.data(), events.size(), 0), 1); in TEST_F()
227 EXPECT_EQ(epoll_wait(epollFd1.get(), events.data(), events.size(), 0), 0); in TEST_F()
228 EXPECT_EQ(epoll_wait(epollFd2.get(), events.data(), events.size(), 0), 0); in TEST_F()
231 EXPECT_EQ(epoll_wait(epollFd1.get(), events.data(), events.size(), 0), 1); in TEST_F()
234 EXPECT_EQ(epoll_wait(epollFd1.get(), events.data(), events.size(), 0), 0); in TEST_F()
235 EXPECT_EQ(epoll_wait(epollFd2.get(), events.data(), events.size(), 0), 0); in TEST_F()
249 ASSERT_GE(epollFd.get(), 0); in TEST_F()
250 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd1.get(), &e1), 0); in TEST_F()
251 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd2.get(), &e2), 0); in TEST_F()
254 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
258 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
262 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
268 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 2); in TEST_F()
275 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F()
280 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F()
294 ASSERT_GE(epollFd.get(), 0); in TEST_F()
295 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd1.get(), &e1), 0); in TEST_F()
296 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd2.get(), &e2), 0); in TEST_F()
310 int ret = epoll_wait(epollFd.get(), events.data(), events.size(), kTimeout); in TEST_F()
362 ASSERT_GE(epollFd1.get(), 0); in TEST_F()
363 ASSERT_GE(epollFd2.get(), 0); in TEST_F()
366 ASSERT_EQ(epoll_ctl(epollFd1.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
367 ASSERT_EQ(epoll_ctl(epollFd2.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F()
378 int ret = epoll_wait(epollFd1.get(), events.data(), events.size(), kTimeout); in TEST_F()
392 int ret = epoll_wait(epollFd2.get(), events.data(), events.size(), kTimeout); in TEST_F()