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

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

Merge "Update TypeConverter#ParseFormats to handle DEFAULT format"

parents 14dcc28c 6dfda52f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -182,8 +182,9 @@ TEST(TypeConverter, ParseFormats) {
        audio_format_t format;
        EXPECT_TRUE(FormatConverter::fromString(stringVal, format))
                << "Conversion of \"" << stringVal << "\" failed";
        EXPECT_TRUE(audio_is_valid_format(format))
                << "Converted format \"" << stringVal << "\" is invalid";
        EXPECT_EQ(enumVal != xsd::AudioFormat::AUDIO_FORMAT_DEFAULT,
                audio_is_valid_format(format))
                << "Validity of \"" << stringVal << "\" is not as expected";
        EXPECT_EQ(stringVal, toString(format));
    }
}