src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/test/assoc_unittests.cc
/* Verify that association requests are ignored when the association handling state is set to
   ASSOC_IGNORED.

   Timeline for this test:
   1s: send assoc request
 */
Verify that association requests are ignored when the association handling state is set to
ASSOC_IGNORED.

Timeline for this test:
1s: send assoc request
Verify that association requests are ignored when the association handling state is set to ASSOC_IGNORED . Timeline for this test : 1s : send assoc request
TEST_F(AssocTest, IgnoreAssociations) {
  auto handler = new std::function<void()>;
  *handler = std::bind(&simulation::Environment::TxAssocReq, &env_, this, kDefaultChannel,
                       kClientMacAddr, kApBssid);
  env_.ScheduleNotification(this, zx::sec(1), static_cast<void*>(handler));
  ap_.SetAssocHandling(simulation::FakeAp::ASSOC_IGNORED);
  env_.Run();
  EXPECT_EQ(assoc_resp_count_, 0U);
}
TEST_F ( AssocTest , IgnoreAssociations ) { auto handler = new std :: function < void ( ) > ; * handler = std :: bind ( & simulation :: Environment :: TxAssocReq , & env_ , this , kDefaultChannel , kClientMacAddr , kApBssid ) ; env_ . ScheduleNotification ( this , zx :: sec ( 1 ) , static_cast < void * > ( handler ) ) ; ap_ . SetAssocHandling ( simulation :: FakeAp :: ASSOC_IGNORED ) ; env_ . Run ( ) ; EXPECT_EQ ( assoc_resp_count_ , 0U ) ; }
Verify that association requests are ignored when the association handling state is set to
ASSOC_IGNORED.
Verify that association requests are ignored when the association handling state is set to ASSOC_IGNORED .
// Schedule assoc req // Verify that no assoc responses were seen in the environment