Lines Matching refs:timer
23 Timer timer; member in TimerTest
26 TimerTest() : rc(sd_event_default(&events)), timer(events) in TimerTest()
53 std::unique_ptr<Timer> timer = nullptr; member in TimerTestCallBack
73 timer = std::make_unique<Timer>(events, func); in TimerTestCallBack()
91 EXPECT_GE(timer.start(time), 0); in TEST_F()
96 while (count < 2 && !timer.isExpired()) in TEST_F()
105 EXPECT_EQ(true, timer.isExpired()); in TEST_F()
116 EXPECT_GE(timer.start(time), 0); in TEST_F()
120 EXPECT_GE(timer.stop(), 0); in TEST_F()
133 EXPECT_EQ(false, timer.isExpired()); in TEST_F()
147 EXPECT_GE(timer.start(time), 0); in TEST_F()
154 EXPECT_GE(timer.start(time), 0); in TEST_F()
158 while (count < 3 && !timer.isExpired()) in TEST_F()
167 EXPECT_EQ(true, timer.isExpired()); in TEST_F()
179 EXPECT_GE(timer.start(time), 0); in TEST_F()
186 EXPECT_GE(timer.start(time), 0); in TEST_F()
190 EXPECT_GE(timer.stop(), 0); in TEST_F()
203 EXPECT_EQ(false, timer.isExpired()); in TEST_F()
215 EXPECT_GE(timer->start(time), 0); in TEST_F()
220 while (count < 2 && !timer->isExpired()) in TEST_F()
229 EXPECT_EQ(true, timer->isExpired()); in TEST_F()
241 EXPECT_GE(timer->start(time), 0); in TEST_F()
245 EXPECT_GE(timer->stop(), 0); in TEST_F()
258 EXPECT_EQ(false, timer->isExpired()); in TEST_F()