History log of /libcore/luni/src/test/java/dalvik/system/DexClassLoaderTest.java
Revision Date Author Comments
5de855817ee97ed964e524dc36fea7dbe3eb7cd8 14-Oct-2011 Brian Carlstrom <bdc@google.com> DexClassLoaderTest.setUp should clean optimized directory

Bug: 5410715
Change-Id: Ifde74c42105e8c408e0073953e5b0bf91ec86414
d8bf30013b7e67f2f5d4b182827c86f8687569cd 14-Oct-2011 Brian Carlstrom <bdc@google.com> DexClassLoaderTest.setUp should clean optimized directory

Bug: 5410715
Change-Id: Ifde74c42105e8c408e0073953e5b0bf91ec86414
a186c233345c9cc0c7864dc5bd466c4d8413de6c 10-Feb-2011 Dan Bornstein <danfuzz@android.com> I meant assertEquals().

Change-Id: I37c5859dea0bc33eb7271446eddf9548fbbe180a
6f42688fdc1389ed10d611c51aabc6034174db5a 10-Feb-2011 Dan Bornstein <danfuzz@android.com> Clean up test and expand slightly.

In particular:

* Added a test to make sure that optimized dex files are being generated
where expected.
* Made all the helper methods private.
* Removed the "static" declaration from two test methods.

Bug: 3439372
Change-Id: I7d67169304072330f504bb90af3bf4ac09eeb165
ec80ed70b9790785bd70b9482ec94e7dea09fd48 09-Feb-2011 Dan Bornstein <danfuzz@android.com> Fix the test.

It now uses an explicit "optimized" directory for optimized dex files,
so that there is no danger of trampling an unoptimized dex file during
the course of the test.

Bug: 3439372

Change-Id: Ie45ab5fde5e55dda06cdf5a23831abc80f8aab18
6186821cb13f4ac7ff50950c813394367e021eae 08-Feb-2011 Jesse Wilson <jessewilson@google.com> Move libcore.base classes to libcore.util and libcore.io.

Change-Id: I2340a9dbad3561fa681a8ab47d4f406e72c913e3
1a6e00246281eb49b7b48b1b55cf9077e10c1cfe 25-Jan-2011 Dan Bornstein <danfuzz@android.com> Tweak this test to not re(re...)copy files.

The test was sporadically failing, because the VM doesn't ever unload
dex files, and the same file would get truncated and rewritten. If
the VM got asked the right question at the right time, it would find
itself staring at a truncated dex file.

Change-Id: Id9f2ea791b6974a40ce6937d6e54137c78dc7f98
6bfc6b199a14f8eb893426b7d48bcf06a3a32015 17-Jan-2011 Dan Bornstein <danfuzz@android.com> Finish fleshing out the basic coverage.

There are now several tests for each combo in the cross-product of
{dex, jar} x {one file, two files}.

Change-Id: I18057471d51a118af6861b4da7d9e42c9f6fda9e
51d35175d7cce2afc5c9cdd1ef939d60481cd398 17-Jan-2011 Dan Bornstein <danfuzz@android.com> Naming: Reduce confusion, increase consistency.

Change-Id: I25e5fccac4c025e35d45d4920d9f2308c658ec53
0ec98177a2b2ea242a9ca9e0fb5aee39bba0c007 17-Jan-2011 Dan Bornstein <danfuzz@android.com> Copy the second jar/dex files in setUp().

(My last patch demonstrated this deficit in the test, not an actual bug
in resource handling.)

Change-Id: Ia4f6a2e747af870e362a0f41e4e641a4ef488a31
30daad6ce1e6f4a94d1c01672df26d2d35eafaca 17-Jan-2011 Dan Bornstein <danfuzz@android.com> Start to use the second jar/dex file in DexClassLoaderTest.

This demonstrates that there is an issue with resource handling.

Change-Id: I2a33b6fd6f2be2e1d1879d539c86ecbb8e5b198c
1c4757f1439ed6209a7aba6ca2d8e99fd28c9612 16-Jan-2011 Dan Bornstein <danfuzz@android.com> Clean up and slightly expand this test.

* Added a same-loader resource reading test.
* Rearranged the main test class to be a little clearer.

Change-Id: I7e85685245800dbdf6e3925390840d18e5ae4222
8c47f104820836f6bdacce83e1be6cc71c1cace0 15-Jan-2011 Dan Bornstein <danfuzz@android.com> This test is now bona fide nontrivial.

It also demonstrates that loading from a raw dex file doesn't yet
work!

Change-Id: I2b0ccd517edd052d374af8d0762c8f1f8734720f
92c92f5f5306c7bed2c34b8382dad32445f5ef85 14-Jan-2011 Dan Bornstein <danfuzz@android.com> Make the test even yet a little less trivial.

(How do you eat an elephant? One bite at a time.)

Change-Id: Ibf2fd6794e05133642c7426fe4608d2b5a4b7592
0097708dae398465c3da40cc7f9a2dfde5571364 14-Jan-2011 Dan Bornstein <danfuzz@android.com> Make the test a little less trivial.

Change-Id: Ic00cbcdbda15a151b0080e097e74e39ca32d0a32
44401c99f407517a16f8bf75a942a1461a6fecee 12-Jan-2011 Dan Bornstein <danfuzz@android.com> Trivial test for DexClassLoader.

To be expanded, soon!

Change-Id: Iecdcc9ff8cc8560c7e3bd9720b2fbe9c1e9ed8a9