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

Commit 856eca7d authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix regression in unit test for codec_manager

Need to clear mock expectations.

Regression after
aa4d70f1 Move ConfigureDataPath out of AC

Bug: 310870184
Test: atest bluetooth_le_audio_codec_manager_test
Tag: #feature
Change-Id: I45abd2d2795f9a2d2ee4a9f614e8daa5529cc673
parent 377e43e7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ class CodecManagerTestBase : public Test {
        .WillByDefault(Return(true));

    controller::SetMockControllerInterface(&controller_interface);
    Mock::VerifyAndClearExpectations(&bluetooth::legacy::hci::testing::GetMock());

    codec_manager = CodecManager::GetInstance();
  }
@@ -95,6 +96,7 @@ class CodecManagerTestBase : public Test {
  virtual void TearDown() override {
    codec_manager->Stop();

    Mock::VerifyAndClearExpectations(&bluetooth::legacy::hci::testing::GetMock());
    controller::SetMockControllerInterface(nullptr);
  }