mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Remove Timer::FireNow.
PiperOrigin-RevId: 811123106
This commit is contained in:
committed by
Copybara-Service
parent
eb3ae063f5
commit
72088b7fe2
@@ -49,16 +49,6 @@ TEST(TimerImpl, TestStartRunningTimer) {
|
||||
timer.Stop();
|
||||
}
|
||||
|
||||
TEST(TimerImpl, TestFireNow) {
|
||||
TimerImpl timer;
|
||||
int count = 0;
|
||||
|
||||
EXPECT_TRUE(timer.Start(100, 100, [&count]() { ++count; }));
|
||||
EXPECT_TRUE(timer.FireNow());
|
||||
timer.Stop();
|
||||
EXPECT_EQ(count, 1);
|
||||
}
|
||||
|
||||
TEST(TimerImpl, TestStopAfterFire) {
|
||||
TimerImpl timer;
|
||||
absl::Notification notification;
|
||||
|
||||
Reference in New Issue
Block a user