summaryrefslogtreecommitdiffstats
path: root/luni/src/test/resources
Commit message (Collapse)AuthorAgeFilesLines
* Add CRLReason and friendsKenny Root2014-05-081-0/+0
| | | | | | | New API for getting the revocation reason. Add tests and exceptions associated with it. Change-Id: Ifd6444ab966c984312f069a6ee330d255110ea85
* Fix for ClassLoaderTest under CTSNeil Fuller2014-04-072-0/+2
| | | | | | | | | | The tests could not work given the arrangement of classloaders in Android apps. This also fixes a known failure case in ClassLoaderTest which was due to missing resources. Also updated ClassTest. Change-Id: I114aa9b1a177911aed0aef87819d93a260f0b8d1 Bug: 12491655
* Improve error message when attempting to open an empty zipPaul Duffin2014-02-261-0/+0
| | | | | | | | | | | | | | The bug report states that the behaviour of ZipFile has changed between 4.3 and 4.4 when opening an empty zip file. I did some investigation and it appears as though the reference implementation also throws an exception in that case so I decided that 4.4 is working as designed. However, to make it clearer I made a minor change to explicitly check for an empty zip file so that we can report a slightly improved message explaining that they are not supported. I added a test for various forms of empty streams and zip files and removed part of an older test from harmony tests as it is no longer necessary. Bug: https://code.google.com/p/android/issues/detail?id=65380 Change-Id: I1f2fcbf6bbaedb7dbccf8dd4f1cec4e330274524
* Fixed broken EnumTestPaul Duffin2014-01-215-0/+0
| | | | | | | | | | | | | | | A previous file move changed the class name for various classes used in the EnumTest. That broke the tests as they relied on files containing serialized forms of those classes and so had hard coded references to the old class names which no longer existed. The fix was two part: - Use the correct class names in the serialized files - Remove duplicate serialized files that are no longer used Bug: 12491225 Change-Id: I60b503bb2509071ccac5fec7b05dd5160d9dd7d0
* Move tests from tests/api to harmony-tests. (Take 2)Narayan Kamath2013-11-157-0/+0
| | | | | | | This reverts commit d5e281743e55e1daa297fd8043b2d9b6e8e1bed2. The makefile issue that caused the original build break has been resolved.
* Revert "Move tests from tests/api to harmony-tests."Narayan Kamath2013-11-157-0/+0
| | | | | | | | This reverts commit 81bf28ad31131815d0a36a43a0eca3c29aefdfcd. Breaks build Change-Id: I3f1562921ffe8fdbec36971dd65db398c27c92db
* Move tests from tests/api to harmony-tests.Narayan Kamath2013-11-157-0/+0
| | | | | | | The vast majority of cleaned up harmony tests are now in harmony-tests/src/test/org/apache/harmony/tests/ Change-Id: I56c2e484ff434b5618cf6751d602ae9f0db96b30
* Use a consistent package path for harmony tests.Narayan Kamath2013-11-1532-2/+0
| | | | | | | | | | | | | | | | | | | | | Harmony was never consistent about where they put their tests. There's no reason we have to be the same. Also, there's no need to have separate subtrees for nio, nio_char etc. etc. This change makes all existing apache harmony tests subpackages of "org.apache.harmony.tests" and put them under libcore/harmony-tests. We somehow managed to end up with two vastly different copies of CharsetDecoderTest & CharsetEncoderTest. I've renamed the copies CharsetDecoder2Test & CharsetEncoder2Test to avoid having to go in and resolve the complicated diffs or speculate about the reasons for their divergence. Change-Id: Ic34e69c2faab8893edd54e05eccd7091f4a09abd
* Add serialization golden files, fix tests.Narayan Kamath2013-11-135-0/+0
| | | | | | | | | - Moves a few golden files from luni/ to harmony-tests/ - Delete dead code in SerializationTester - Fix a bug in SerializationTest (not sure how this ever worked for resources with "." in their name) Change-Id: Ia5b1376f4ada9b9c706a266ae077debeea5b1f29
* Add Random serialization testKenny Root2013-10-251-0/+0
| | | | | | This makes sure we don't mess up the serialization format in the future. Change-Id: Ied814b1ae5dedf2865239304d27af5f8388e5a83
* Add harmony java.text tests.Elliott Hughes2013-08-271-0/+0
| | | | Change-Id: Id8d0acd77d08ff337b4851ae74a48cc002d66cd9
* Fix a bunch of Charset tests.Elliott Hughes2013-08-155-0/+6
| | | | | | | | | | The isRegistered test is still failing. The problem is that icu4c's convrtrs.txt has names like "windows-1252" that are both the canonical name for one charset and an alias for another legacy charset. I need to work out how to resolve that. Bug: 10210999 Change-Id: If3425321c814622e4f54b2efca95a767bd16c080
* Kill SerializationTester; obsoleted by SerializableTester.Jesse Wilson2011-12-138-0/+0
| | | | | Bug: http://b/5397460 Change-Id: Ic20f4363c8937d5feff0dec89e5de7ccf20f1dac
* Remove dead tests.Elliott Hughes2011-06-064-3/+0
| | | | Change-Id: Ife89885ea95de3bb2617172b95cdfd46d586a644
* Clean up test duplication and fix broken tests.Elliott Hughes2011-06-063-0/+0
| | | | Change-Id: I22bbc320536d7f4d862102d3962b521d26e30a9f
* More Harmony test consolidation.Elliott Hughes2011-05-253-0/+0
| | | | Change-Id: I98070d03c8b5f5764d54e3d2058c5707bbb954ce
* post bouncycastle 1.46 upgrade test cleanupBrian Carlstrom2011-04-141-0/+0
| | | | Change-Id: I6e9be66b3f4fd4c09b31e2508236af62fa5214e3
* Make the comment reflect reality.Dan Bornstein2011-01-172-0/+0
| | | | Change-Id: I28911532a169c763bf52fb95b29f1ade34792d34
* Naming: Reduce confusion, increase consistency.Dan Bornstein2011-01-172-0/+0
| | | | Change-Id: I25e5fccac4c025e35d45d4920d9f2308c658ec53
* Start to use the second jar/dex file in DexClassLoaderTest.Dan Bornstein2011-01-173-0/+0
| | | | | | This demonstrates that there is an issue with resource handling. Change-Id: I2a33b6fd6f2be2e1d1879d539c86ecbb8e5b198c
* Clean up and slightly expand this test.Dan Bornstein2011-01-162-0/+0
| | | | | | | * Added a same-loader resource reading test. * Rearranged the main test class to be a little clearer. Change-Id: I7e85685245800dbdf6e3925390840d18e5ae4222
* Add a second jar/dex file for testing purposes.Dan Bornstein2011-01-162-0/+0
| | | | Change-Id: Icc665b78ab5ecf9ae93cf9301ddc4e26e36b6558
* This test is now bona fide nontrivial.Dan Bornstein2011-01-142-0/+0
| | | | | | | It also demonstrates that loading from a raw dex file doesn't yet work! Change-Id: I2b0ccd517edd052d374af8d0762c8f1f8734720f
* Make the test even yet a little less trivial.Dan Bornstein2011-01-141-0/+0
| | | | | | (How do you eat an elephant? One bite at a time.) Change-Id: Ibf2fd6794e05133642c7426fe4608d2b5a4b7592
* Trivial test for DexClassLoader.Dan Bornstein2011-01-121-0/+0
| | | | | | To be expanded, soon! Change-Id: Iecdcc9ff8cc8560c7e3bd9720b2fbe9c1e9ed8a9
* Add a dex-containing jar file to the luni test resources.Dan Bornstein2011-01-111-0/+0
| | | | | | | This is meant to be used in the class loading tests. This change doesn't include any such tests, but they'll be coming soon! Change-Id: Ic02a9d0faa572745d1485d6b5c83e70303b31abb
* Merge "Fix ServiceLoaderTest, which was broken when I renamed it."Jesse Wilson2010-12-072-7/+7
|\
| * Fix ServiceLoaderTest, which was broken when I renamed it.Jesse Wilson2010-12-072-7/+7
| | | | | | | | | | | | | | Adding the 'libcore' prefix broke the test's ability to find its list of implementations. Change-Id: I91c6cbf2cebcfe8deb34e755ef5f8f9b5eff8ddb
* | Fix ObjectStreamClassTest classloader and serial version failures.Jesse Wilson2010-12-071-0/+0
|/ | | | | | | | The included .jar file is from Harmony, run through dx to convert the inner .class files into an inner .dex file. The source for that file is also in the .jar. Change-Id: Ib3d4893b0ddc18398c5a7a9b040a68603d9143df
* Deduplicate java.lang tests from Harmony.Jesse Wilson2010-12-012-0/+0
| | | | | | | | This removes all tests duplicated in Harmony's test suite, and moves the rest into the libcore.java.lang package. Change-Id: Ic2fe12cc1e10513abb721d98e7b9b3a2e00192f5 http://b/3246523
* am 51a8be20: am bf1bdd0a: am c84c0e51: Merge "Remove logging tests ↵Jesse Wilson2010-10-041-2/+2
|\ | | | | | | | | | | | | | | | | duplicated from Harmony" into gingerbread Merge commit '51a8be20a63718519a5095603e95eee7e71b9090' into dalvik-dev * commit '51a8be20a63718519a5095603e95eee7e71b9090': Remove logging tests duplicated from Harmony
| * Merge "Remove logging tests duplicated from Harmony" into gingerbreadJesse Wilson2010-10-041-2/+2
| |\
| | * Remove logging tests duplicated from HarmonyJesse Wilson2010-10-021-2/+2
| | | | | | | | | | | | Change-Id: I057552b555ee891810d4577b7359ed309d5c1611
* | | am ecfa0645: am 65eee03b: am 2d9aee7a: Merge "Update TestUtils certificates ↵Brian Carlstrom2010-10-041-0/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | to fix CertPathBuilder1Test and CertPathTest" into gingerbread Merge commit 'ecfa0645b680e5f68e90eda5db0413ef72306d3b' into dalvik-dev * commit 'ecfa0645b680e5f68e90eda5db0413ef72306d3b': Update TestUtils certificates to fix CertPathBuilder1Test and CertPathTest
| * | Update TestUtils certificates to fix CertPathBuilder1Test and CertPathTestBrian Carlstrom2010-10-041-0/+0
| |/ | | | | | | | | Bug: 2322662 Change-Id: I8ad9a91f4095807bd710045eef3a97a86b560f49
* | Fix OldResponseCache.test_get() which was broken by moving the test.Jesse Wilson2010-09-241-1/+0
|/ | | | Change-Id: I7edc4348cae3181ead252c0a3f77015451d47826
* resolved conflicts for merge of ce588a3a to masterJesse Wilson2010-06-018-340/+0
|\ | | | | | | Change-Id: I711a9afb47d478d75fc26247271eb09bb9aa7b3b
* | Merge awt-kernel, icu, luni-kernel, prefs, security-kernel, x-net into luniPeter Hallam2010-05-0437-0/+1370
| | | | | | | | Merge xml except xmlpull and kxml into luni
* | merge more modules into luniPeter Hallam2010-04-2762-0/+134
| |
* | More merging of nio into luniPeter Hallam2010-04-2322-0/+0
| | | | | | | | Change-Id: Ib4356b3cd57490df8ff246ea6a4bc1c269ba848b
* | Add Java 6's java.util.ServiceLoader.Elliott Hughes2010-04-021-0/+7
|/ | | | | | | | | | | | | | | | New implementation, documentation, and tests, very loosely based on the harmony code. We can't run the harmony or jtreg tests because we don't have the infrastructure. My test just tests the most obvious use cases, on the assumption that at some point we'll get the other test suites working; quite possibly before anyone ever wants to use this stuff on Android. (We might want to switch over existing META-INF/services/ code to use ServiceLoader. I've raised http://b/2567593 for this.) Bug: 2497395 Change-Id: I62b0ac4748204555d3ba9356794a72aff4f4f01e
* Remove broken .so and fix bogus test.Elliott Hughes2009-10-291-0/+0
| | | | | | | | | | | | valgrind doesn't like this because the .so *only* exists for x86 (contrary to the claim in the @AndroidOnly annotation) but it's broken there, returning a char* instead of a jstring. I'm not really sure what they were trying to test here, but let's assume it was that Runtime.getRuntime().load behaves like System.load, and fix the tests that way. Bug: 2223234
* AI 143657: am: CL 143626 am: CL 143453 Bringing the luni tests down to zero ↵Jorg Pleumann2009-03-311-0/+0
| | | | | | | | | | | failures. Original author: jorgp Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 143657
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-111-0/+1
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0373-0/+8
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0373-8/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+0
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-0911-0/+3
|
* Initial ContributionThe Android Open Source Project2008-10-2161-0/+5