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

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

Merge "Fix VtsHalAudioCoreTargetTest test case error" into main

parents 23950c56 f2ee5f3f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -367,8 +367,15 @@ class AudioCoreConfig : public testing::TestWithParam<std::string> {
            auto criterionValue = criterionRule.criterionAndValue;
            auto matchesWhen = criterionRule.matchingRule;
            auto criteriaIt = find_if(criteria.begin(), criteria.end(), [&](const auto& criterion) {
                auto getForceConfigTag = [](const AudioHalCapCriterionV2& forceConfig) {
                    return forceConfig.get<AudioHalCapCriterionV2::forceConfigForUse>()
                            .values[0].getTag();
                };
                return criterion.has_value() &&
                       criterion.value().getTag() == selectionCriterion.getTag();
                       criterion.value().getTag() == selectionCriterion.getTag() &&
                       (criterion.value().getTag() != AudioHalCapCriterionV2::forceConfigForUse ||
                        getForceConfigTag(criterion.value()) ==
                                getForceConfigTag(selectionCriterion));
            });
            EXPECT_NE(criteriaIt, criteria.end())
                    << " Invalid rule criterion " << toString(selectionCriterion.getTag());