src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/test/timeout_test.cc
// verify the disassociation timeout is triggered.
verify the disassociation timeout is triggered.
verify the disassociation timeout is triggered .
TEST_F(TimeoutTest, DisassocTimeout) {
  Init();
  brcmf_simdev* sim = device_->GetSim();
  sim->sim_fw->err_inj_.AddErrInjCmd(BRCMF_C_DISASSOC, ZX_OK, client_ifc_.iface_id_);
  SCHEDULE_CALL(zx::msec(10), &SimInterface::DeauthenticateFrom, &client_ifc_, kDefaultBssid,
                WLAN_DEAUTH_REASON_UNSPECIFIED);
  env_->Run(kTestDuration);
  EXPECT_EQ(client_ifc_.stats_.deauth_results.size(), 1U);
}
TEST_F ( TimeoutTest , DisassocTimeout ) { Init ( ) ; brcmf_simdev * sim = device_ -> GetSim ( ) ; sim -> sim_fw -> err_inj_ . AddErrInjCmd ( BRCMF_C_DISASSOC , ZX_OK , client_ifc_ . iface_id_ ) ; SCHEDULE_CALL ( zx :: msec ( 10 ) , & SimInterface :: DeauthenticateFrom , & client_ifc_ , kDefaultBssid , WLAN_DEAUTH_REASON_UNSPECIFIED ) ; env_ -> Run ( kTestDuration ) ; EXPECT_EQ ( client_ifc_ . stats_ . deauth_results . size ( ) , 1U ) ; }
verify the disassociation timeout is triggered.
verify the disassociation timeout is triggered .
// Ignore disassociation req in sim-fw. // deauth_conf have no return status, just verify it's received.