Lines Matching refs:loop
28 IOEventLoop loop; in TEST() local
31 ASSERT_NE(nullptr, loop.AddReadEvent(fd[0], [&]() { in TEST()
37 return loop.ExitLoop(); in TEST()
55 ASSERT_TRUE(loop.RunLoop()); in TEST()
67 IOEventLoop loop; in TEST() local
69 ASSERT_NE(nullptr, loop.AddWriteEvent(fd[1], [&]() { in TEST()
76 loop.ExitLoop(); in TEST()
92 ASSERT_TRUE(loop.RunLoop()); in TEST()
101 IOEventLoop loop; in TEST() local
103 ASSERT_TRUE(loop.AddSignalEvent(SIGINT, [&]() { in TEST()
105 loop.ExitLoop(); in TEST()
116 ASSERT_TRUE(loop.RunLoop()); in TEST()
127 IOEventLoop loop; in TEST() local
128 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() { in TEST()
130 loop.ExitLoop(); in TEST()
135 ASSERT_TRUE(loop.RunLoop()); in TEST()
150 IOEventLoop loop; in TEST() local
152 IOEventRef ref = loop.AddReadEvent(fd[0], [&]() { in TEST()
165 ASSERT_TRUE(loop.RunLoop()); in TEST()
175 IOEventLoop loop; in TEST() local
177 IOEventRef ref = loop.AddWriteEvent(fd[1], [&]() { in TEST()
187 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() { in TEST()
198 return loop.ExitLoop(); in TEST()
202 ASSERT_TRUE(loop.RunLoop()); in TEST()