mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Remove unnecessary optional from scheduler.
PiperOrigin-RevId: 795275868
This commit is contained in:
committed by
Copybara-Service
parent
59f46f4b5a
commit
cff660eacf
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user