summaryrefslogtreecommitdiffstats
path: root/support/src/test/java/tests/resources
Commit message (Collapse)AuthorAgeFilesLines
* StrictJarFile: unittest for missing filesNick Kralevich2015-04-141-0/+0
| | | | | | | | Add a test to verify that we error out when the manifest declares a file which isn't present in the jar. Bug: 1162500 Change-Id: I3c6814c500d218036a5c0515e9f4f93e3f7a63d5
* JarUtils: stop trying to build chain past candidates lengthKenny Root2014-11-131-0/+0
| | | | | | | | | If the certs in the PKCS#7 bag are in a loop, it will go on forever trying to build a chain. Instead just stop trying to build the chain when our chain exceeds the length of the candidates. Bug: 17972577 Change-Id: If4f92e3eeabe893612a618bab0068a0f8cf75ea9
* resolved conflicts for merge of 9687e46b to masterKenny Root2014-04-302-0/+0
|\ | | | | | | Change-Id: Iaeaea9b44423257e8ccbcf631f40720d3035cecd
| * am 42db8377: am 15e6f173: am d353b8e2: am ddc91700: am 0a0379d4: am ↵Kenny Root2014-04-302-0/+0
| |\ | | | | | | | | | | | | | | | | | | 297a7de2: am 183efbb4: am 4629f94a: am e0350a80: am afd7d947: Merge "JarFile: make test chain 3 long" into jb-dev * commit '42db8377fdd20cdff6cac1994b25382551270a26': JarFile: make test chain 3 long
| | * am 15e6f173: am d353b8e2: am ddc91700: am 0a0379d4: am 297a7de2: am ↵Kenny Root2014-04-302-0/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | 183efbb4: am 4629f94a: am e0350a80: am afd7d947: Merge "JarFile: make test chain 3 long" into jb-dev * commit '15e6f173de11133e1a61090635e350303ac0481a': JarFile: make test chain 3 long
| | | * am ddc91700: am 0a0379d4: am 297a7de2: am 183efbb4: am 4629f94a: am ↵Kenny Root2014-04-302-0/+0
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e0350a80: am afd7d947: Merge "JarFile: make test chain 3 long" into jb-dev * commit 'ddc91700a5bed8e2b7214d6ca1e317929e378bc7': JarFile: make test chain 3 long
| | | | * am 297a7de2: am 183efbb4: am 4629f94a: am e0350a80: am afd7d947: Merge ↵Kenny Root2014-04-302-0/+0
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "JarFile: make test chain 3 long" into jb-dev * commit '297a7de2a15cae179d6713182641bddfdf89f397': JarFile: make test chain 3 long
| | | | | * JarFile: make test chain 3 longKenny Root2014-04-292-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I761f0a652a8502e28a4f9bb15ac9782d3ad42355
* | | | | | JarFile: Add tests for ambiguous chainsKenny Root2014-04-221-0/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some chains using the old code will have incorrect splits between CodeSigner paths. Bug: 13678484 Change-Id: Ia77b7cbcde9394e0d48a6f082bbd1cdfd880d74b
* | | | | am 0779dcac: am 008fbfd0: am a317f758: am ced71a50: am 99a25a47: am ↵Kenny Root2014-04-222-0/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | 5321ebb7: am 6d949cbf: am 951aa4f4: am 531968cf: am cb11b9ff: Tests for API to check certificate chain signatures * commit '0779dcac1bdc0d6d02ef6e4843a312aa03081f03': Tests for API to check certificate chain signatures
| * | | | am 008fbfd0: am a317f758: am ced71a50: am 99a25a47: am 5321ebb7: am ↵Kenny Root2014-04-222-0/+0
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | 6d949cbf: am 951aa4f4: am 531968cf: am cb11b9ff: Tests for API to check certificate chain signatures * commit '008fbfd0ff37cb88047825d56d2116d0f62b69a5': Tests for API to check certificate chain signatures
| | * | | am ced71a50: am 99a25a47: am 5321ebb7: am 6d949cbf: am 951aa4f4: am ↵Kenny Root2014-04-222-0/+0
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | 531968cf: am cb11b9ff: Tests for API to check certificate chain signatures * commit 'ced71a503c6cf79b0cee407123d9df94bf988e0b': Tests for API to check certificate chain signatures
| | | * | am 5321ebb7: am 6d949cbf: am 951aa4f4: am 531968cf: am cb11b9ff: Tests for ↵Kenny Root2014-04-222-0/+0
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | API to check certificate chain signatures * commit '5321ebb789eb77b5fc4c6e2e5d2fcaba242d275d': Tests for API to check certificate chain signatures
| | | | * Tests for API to check certificate chain signaturesKenny Root2014-04-182-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 13678484 Change-Id: Ibc14b3e9b1159c7b0b130d01fac933f71a99ad96
* | | | | Delete unused test resources.Narayan Kamath2014-02-122-0/+0
|/ / / / | | | | | | | | | | | | | | | | These resources were used only by DalvikExecTest. Change-Id: Icb063fcf96593eeb3c6d9392214b3bc67305af53
* | | | X509CertificateTest: add test for negative serialKenny Root2014-01-2842-83/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update cert tests to save the private keys and also change the main certificate to a negative serial to exercise more corner cases. Change-Id: Ia59eece8ced0988b140ebf2e932b54298047f32d
* | | | Import resources, fix JarURLConnectionTest.Narayan Kamath2013-11-141-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | The test case with the escaped URL still fails. Change-Id: Iae3a58fea800d8b981cb09474d1fa77b7c361e4e
* | | | Add untracked harmony tests.Narayan Kamath2013-11-1314-0/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been deduped against : libcore/luni/src/test/java/org/apache/harmony/luni/tests libcore/luni/src/test/java/tests/api/ libcore/harmony-tests/src/test/java/tests/api This is a minimal change that builds the entire test suite. Many tests don't pass yet, they will be fixed in follow ups. Notable tests that haven't been moved: - ExcludedProxyTest: Might make requests to (now defunct) external servers. All of this code is tested in okhttp. - URLClassLoaderTest: Has a dependency on jetty, tested in okhttp. Notable test cases that haven't been moved: - URLTest: overlap with okhttp, might make requests to external servers. - ServerSocketTest#test_init: Uses Support_execJava, which we don't support yet. Isn't testing anything useful. - FileTest#testDeleteOnExist: Uses Support_execJava which we don't support yet. This is a useful test and we must ressurect it if at all possible. bug: 11650799 Change-Id: Ib277eb0bad465ea72b090168490a1a633611b3f3
* | | | JarUtils: try using the DigestEncryptionAlgorithmKenny Root2013-10-091-0/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | The original code tried getting an instance of the DigestAlgorithm by itself as a Signature type. This appears meant to be the DigestEncryptionAlgorithm by itself. Algorithms such as SHA256withECDSA have their own OID. Change-Id: I9384127bb026c8a5d3956095a9880427ead366b4
* | | JarFile: finish support for authenticated attributesKenny Root2013-07-011-0/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | There was an unfinished code path to use Authenticated Attributes to verify JAR files. This finishes it up and allows PKCS#7 signatures with that field instead of a direct digest on the encapsulated data. The description of Authenticated Attributes can be found in RFC 3852 section 9 referred to as "authAttrs." Bug: 9625223 Change-Id: Ia2c8fc09d39fbb67c1bdcdfe087f185471dcedd4
* | Cleanup openssl test generation scripts to work in any directoryBrian Carlstrom2013-03-202-63/+63
| | | | | | | | Change-Id: I7ac00ef5c7efe6fc243bd2663c31ef8ad8af9445
* | Add test for empty CRLKenny Root2013-03-062-1/+4
| | | | | | | | Change-Id: Ie8b099eec5628e5c577cff23050431d4ed1e2be2
* | SigAlgParams and other testsKenny Root2013-03-0538-60/+75
| | | | | | | | | | | | Add tests for getSigAlgParams using RSA-PSS signatures. Change-Id: Ib24b75a873dcc2007c6d511c6d307c92391a3f58
* | X509CertificateTest: test for empty subjectAltNamesKenny Root2013-01-073-0/+4
| | | | | | | | | | | | If the subjectAltNames field is missing, providers should return null Change-Id: If11202d97e0a5a41ca598fb7df3320d6a20474c9
* | Add test for X509CertificateFactory#generateCertificatesKenny Root2013-01-025-0/+101
| | | | | | | | Change-Id: I461881d515201829eae08046574824dbda30d460
* | Add X509CRLTest in libcore testsKenny Root2013-01-0230-7/+43
| | | | | | | | Change-Id: I551d6ea887e06481a3eaefec980a728a8c4191f7
* | Add X509CertificateTest in libcore testsKenny Root2013-01-0124-0/+369
| | | | | | | | Change-Id: I678a8b89d0514c270ce0ee57057cfaadf3b47543
* | Add support for ECDSA signatures on jar filesKenny Root2012-10-121-0/+0
| | | | | | | | Change-Id: If928f2244b3a0809255d6619c25268beb84f76d3
* | Add stronger digest support to JarVerifierKenny Root2012-10-102-0/+0
|/ | | | | | | Adds support for SHA-256, SHA-384, and SHA-512. Bug: http://code.google.com/p/android/issues/detail?id=38321 Change-Id: I9bf3f9cb2fa53b9f980e6c1cffcba81aa289a762
* GZIPInputStream/GZIPOutputStream test improvements.Elliott Hughes2010-11-041-0/+0
| | | | | | | | | | | | | | | 1. Ensure that there's a direct mapping from the class to its test, so we're more likely to run the right tests. I've broken GzipTest into two for this. 2. Include actual data rather than always round-tripping, to avoid potential symmetric errors. (This wasn't important in this case.) 3. Remove a dead file that belonged to a test that's already been removed. Bug: 3164285 Change-Id: I312237454eead26d0dbbdb8f6339aa29ed8eea4e
* JarFile was not able to verify signed files with size 0.Urs Grob2009-09-071-0/+0
| | | | | | This regressen was introduced by harmony optimizations done in HARMONY-4569. This fix allows for jar entries of size 0 to also get successfully validated. A regression test has been added to JarFileTest.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0387-0/+126
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0387-126/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-1010-0/+0
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-0922-0/+25
|
* Initial ContributionThe Android Open Source Project2008-10-2155-0/+101