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

Commit 38198418 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix audio control device to context test" into main

parents 275bc4e0 b8a4e87c
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -125,12 +125,13 @@ bool hasValidAudioRoute(const DeviceToContextEntry& entry, std::string& message,
    }
    std::set<std::string> contextInRoute;
    for (const auto& context : entry.contextNames) {
        if (!contextInRoute.contains(ToString(context))) {
            continue;
        }
        message = " Context can not repeat for the same DeviceToContextEntry";
        std::string contextString = ToString(context);
        if (contextInRoute.contains(contextString)) {
            message = " Context " + contextString + " repeats for DeviceToContextEntry";
            return false;
        }
        groupDevices.insert(contextString);
    }
    audiomediacommon::AudioDeviceDescription description;
    if (!testutils::getAudioPortDeviceDescriptor(entry.device, description)) {
        message = " DeviceToContextEntry must have a valid device port";