Remove unnecessary optional from scheduler.

PiperOrigin-RevId: 795275868
This commit is contained in:
Francis Tsui
2025-08-14 18:07:15 -07:00
committed by Copybara-Service
parent 59f46f4b5a
commit cff660eacf
27 changed files with 181 additions and 211 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ namespace {
TEST(TimerImpl, TestCreateTimer) {
TimerImpl timer;
EXPECT_FALSE(timer.Start(-100, 0, nullptr));
EXPECT_TRUE(timer.Start(-100, 0, []() {}));
timer.Stop();
EXPECT_TRUE(timer.Start(0, -100, []() {}));
timer.Stop();
EXPECT_TRUE(timer.Start(100, 100, []() {}));
timer.Stop();
}