src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/test/workqueue_test.cc
// Ensure that canceling an unqueued job works.
Ensure that canceling an unqueued job works.
Ensure that canceling an unqueued job works .
TEST(Workqueue, CancelUnqueued) {
  TestWork work1;
  work1.work = WorkItem(handler);
  work1.state = 1;
  work1.work.Cancel();
  EXPECT_EQ(work1.state, 1);
}
TEST ( Workqueue , CancelUnqueued ) { TestWork work1 ; work1 . work = WorkItem ( handler ) ; work1 . state = 1 ; work1 . work . Cancel ( ) ; EXPECT_EQ ( work1 . state , 1 ) ; }
Ensure that canceling an unqueued job works.
Ensure that canceling an unqueued job works .