Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6564583 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Call EXPECT_CALL before the incoming event"

parents 53d29f36 aa40915a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -507,9 +507,9 @@ TEST_F(LeExtendedAdvertisingManagerTest, create_advertiser_test) {
  le_advertising_manager_->RemoveAdvertiser(id);
  result = last_command_future.wait_for(std::chrono::duration(std::chrono::milliseconds(100)));
  ASSERT_EQ(std::future_status::ready, result);
  test_hci_layer_->IncomingEvent(LeSetExtendedAdvertisingEnableCompleteBuilder::Create(uint8_t{1}, ErrorCode::SUCCESS));
  EXPECT_CALL(
      mock_advertising_callback_, onAdvertisingEnabled(id, false, AdvertisingCallback::AdvertisingStatus::SUCCESS));
  test_hci_layer_->IncomingEvent(LeSetExtendedAdvertisingEnableCompleteBuilder::Create(uint8_t{1}, ErrorCode::SUCCESS));
  sync_client_handler();
}
}  // namespace