Add a regression test for Deflate/zlib behavior

Adds a regression test for Deflate and the underlying native libraries.
If any of these tests fail it suggests that tools such as Google Play
Store that rely on deterministic binary output from Deflate; those tools
may behave inefficiently if the output changes.

Bug: 27637914
Test: run cts -m CtsLibcoreTestCases -t libcore.java.util.zip.DeflateRegressionTest
Change-Id: If281f5c1402959d6f959cc4827e912df46b70c57
2 files changed