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

Commit 9232d5c2 authored by Manisha Jajoo's avatar Manisha Jajoo
Browse files

ExtractorUnitTest: Fix ConfigParamValidationtest for AAC extractors

Test: atest ExtractorUnitTest -- --enable-module-dynamic-download=true

Bug: 157196787
Change-Id: I68adf953274168632db1675111b7d4e838c5beaa
parent 5a9b7c2b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -726,6 +726,9 @@ TEST_P(ConfigParamTest, ConfigParamValidation) {
    if (configParam.profile != kUndefined) {
        if (AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_PROFILE, &profile)) {
            ASSERT_EQ(configParam.profile, profile) << "profile not as expected";
        } else if (mExtractorName == AAC &&
                   AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_AAC_PROFILE, &profile)) {
            ASSERT_EQ(configParam.profile, profile) << "profile not as expected";
        } else {
            ASSERT_TRUE(false) << "profile not returned in extractor";
        }