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

Commit edf51450 authored by Shivaansh Agrawal's avatar Shivaansh Agrawal Committed by Shivaansh Agrawal
Browse files

ExtractorUnitTest: Add wav test vectors

Add wav test vectors to increase code coverage in wav extractor

Coverage increase:
Lines: 58.7% to 74.8%
Functions: no change

Test: atest ExtractorUnitTest -- --enable-module-dynamic-download=true
Bug: 160113693
Change-Id: I90bb3d16ed81a5f088b329ad3cf6e0bd73acb9a5
parent b80e197c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
        <option name="cleanup" value="true" />
        <option name="push" value="ExtractorUnitTest->/data/local/tmp/ExtractorUnitTest" />
        <option name="push-file"
            key="https://storage.googleapis.com/android_media/frameworks/av/media/extractors/tests/extractor-1.2.zip?unzip=true"
            key="https://storage.googleapis.com/android_media/frameworks/av/media/extractors/tests/extractor-1.3.zip?unzip=true"
            value="/data/local/tmp/ExtractorUnitTestRes/" />
    </target_preparer>

+5 −0
Original line number Diff line number Diff line
@@ -1145,7 +1145,12 @@ INSTANTIATE_TEST_SUITE_P(
                make_tuple("ogg", "john_cage.ogg", 1, true),
                make_tuple("ogg", "testopus.opus", 1, true),
                make_tuple("ogg", "sinesweepoggalbumart.ogg", 1, true),
                make_tuple("wav", "loudsoftwav.wav", 1, true),
                make_tuple("wav", "monotestgsm.wav", 1, true),
                make_tuple("wav", "noise_5ch_44khz_aot2_wave.wav", 1, true),
                make_tuple("wav", "sine1khzm40db_alaw.wav", 1, true),
                make_tuple("wav", "sine1khzm40db_f32le.wav", 1, true),
                make_tuple("wav", "sine1khzm40db_mulaw.wav", 1, true),

                make_tuple("mkv", "swirl_144x136_avc.mkv", 1, true),
                make_tuple("mkv", "withoutcues.mkv", 2, true),