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

Commit 8628810a authored by Mariusz Skamra's avatar Mariusz Skamra
Browse files

bta: le_audio_client_test: Fix ConfigureStream mock method

Missing CIS Connection Handle assignment in UnicastTest's
LeAudioGroupStateMachine::ConfigureStream to mock the
LeAudioGroupStateMachineImpl::ConfigureStream method.
This fix is needed by succeeding patches that add new
unit tests.

Bug: 357472821
Flag: Exempt; trivial change covered with unit tests
Test: atest bluetooth_le_audio_client_test
Change-Id: I12139d851f374bb13f1afe44cc412cbcb80566d9
parent 3525c228
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -883,6 +883,14 @@ protected:
                      for (LeAudioDevice* device = group->GetFirstDevice(); device != nullptr;
                           device = group->GetNextDevice(device)) {
                        if (!group->cig.AssignCisIds(device)) {
                          continue;
                        }
                        if (group->cig.GetState() == types::CigState::CREATED) {
                          group->AssignCisConnHandlesToAses(device);
                        }
                        for (auto& ase : device->ases_) {
                          ase.cis_state = types::CisState::IDLE;
                          ase.data_path_state = types::DataPathState::IDLE;