src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/test/timer_test.cc
// This test creates a one-shot timer and checks if the handler fired
This test creates a one-shot timer and checks if the handler fired
This test creates a one - shot timer and checks if the handler fired
TEST_F(TimerTest, one_shot) {
  TestTimerCfg timer(GetFakeDrvr(), GetQueue(), ZX_MSEC(10), 1, false, false, false);
  zx_status_t status = sync_completion_wait(&timer.wait_for_timer, ZX_TIME_INFINITE);
  timer.timer.Stop();
  EXPECT_EQ(status, ZX_OK);
  EXPECT_EQ(timer.timer_cnt, timer.target_cnt);
}
TEST_F ( TimerTest , one_shot ) { TestTimerCfg timer ( GetFakeDrvr ( ) , GetQueue ( ) , ZX_MSEC ( 10 ) , 1 , false , false , false ) ; zx_status_t status = sync_completion_wait ( & timer . wait_for_timer , ZX_TIME_INFINITE ) ; timer . timer . Stop ( ) ; EXPECT_EQ ( status , ZX_OK ) ; EXPECT_EQ ( timer . timer_cnt , timer . target_cnt ) ; }
This test creates a one-shot timer and checks if the handler fired
This test creates a one - shot timer and checks if the handler fired
// Check to make sure the timer fired