Lines Matching refs:TimerThread
53 TimerThread thread; in testBasic()
54 TimerThread::Handle handle = in testBasic()
55 thread.scheduleTask("Basic", [&taskRan](TimerThread::Handle) { in testBasic()
57 ASSERT_TRUE(TimerThread::isTimeoutHandle(handle)); in testBasic()
71 TimerThread thread; in testCancel()
72 TimerThread::Handle handle = in testCancel()
73 thread.scheduleTask("Cancel", [&taskRan](TimerThread::Handle) { in testCancel()
75 ASSERT_TRUE(TimerThread::isTimeoutHandle(handle)); in testCancel()
90 TimerThread thread; in testCancelAfterRun()
91 TimerThread::Handle handle = in testCancelAfterRun()
93 [&taskRan](TimerThread::Handle) { in testCancelAfterRun()
96 ASSERT_TRUE(TimerThread::isTimeoutHandle(handle)); in testCancelAfterRun()
109 TimerThread thread; in testMultipleTasks()
113 thread.scheduleTask("0", [&taskRan](TimerThread::Handle) { in testMultipleTasks()
115 thread.scheduleTask("1", [&taskRan](TimerThread::Handle) { in testMultipleTasks()
117 thread.scheduleTask("2", [&taskRan](TimerThread::Handle) { in testMultipleTasks()
119 thread.scheduleTask("3", [&taskRan](TimerThread::Handle) { in testMultipleTasks()
121 auto handle4 = thread.scheduleTask("4", [&taskRan](TimerThread::Handle) { in testMultipleTasks()
123 thread.scheduleTask("5", [&taskRan](TimerThread::Handle) { in testMultipleTasks()
216 TimerThread,
221 TEST(TimerThread, TrackedTasks) { in TEST() argument
222 TimerThread thread; in TEST()
228 ASSERT_TRUE(TimerThread::isNoTimeoutHandle(handle0)); in TEST()
229 ASSERT_TRUE(TimerThread::isNoTimeoutHandle(handle1)); in TEST()
230 ASSERT_TRUE(TimerThread::isNoTimeoutHandle(handle2)); in TEST()
255 ASSERT_TRUE(TimerThread::isNoTimeoutHandle(handle3)); in TEST()