test: add a test to confirm that mp3 file is stored (not compressed)

This commit is contained in:
Connor Tumbleson 2018-04-12 12:00:38 -04:00
parent 061ddb8ee6
commit ba9b532283
3 changed files with 11 additions and 0 deletions

View File

@ -173,6 +173,13 @@ public class BuildAndDecodeTest extends BaseTest {
assertEquals(0x8888, aaaa.length()); assertEquals(0x8888, aaaa.length());
} }
@Test
public void storedMp3FilesAreNotCompressedTest() throws BrutException {
ExtFile extFile = new ExtFile(sTmpDir, "testapp.apk");
Integer built = extFile.getDirectory().getCompressionLevel("res/raw/rain.mp3");
assertEquals(new Integer(0), built);
}
@Test @Test
public void crossTypeTest() throws BrutException { public void crossTypeTest() throws BrutException {
compareValuesFiles("values-mcc003/strings.xml"); compareValuesFiles("values-mcc003/strings.xml");

View File

@ -10,6 +10,10 @@ versionInfo:
versionCode: '1' versionCode: '1'
versionName: '1.0' versionName: '1.0'
compressionType: false compressionType: false
doNotCompress:
- arsc
- png
- mp3
unknownFiles: unknownFiles:
hidden.file: '8' hidden.file: '8'
non\u007Fprintable.file: '8' non\u007Fprintable.file: '8'