summaryrefslogtreecommitdiffstats
path: root/luni/src/test/java/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Improve the Locale.getISO3Country/getISO3Language documentation and behavior.Elliott Hughes2013-04-041-37/+0
|/ | | | | Bug: 8541850 Change-Id: I8843aeee25eeefe0f6d5e16dd359ba78ef5a01cc
* Fix test since getExtendedKeyUsage doc disagreesKenny Root2013-03-151-4/+15
| | | | | | | | The documentation for X509Certificate#getExtendedKeyUsage says that it must return an unmodifiable list. The test was testing the exact opposite was true. Change-Id: I0f99ed6c8f2ddcc59ce6b90b973ccabd0dce35f6
* SigAlgParams and other testsKenny Root2013-03-051-2/+2
| | | | | | Add tests for getSigAlgParams using RSA-PSS signatures. Change-Id: Ib24b75a873dcc2007c6d511c6d307c92391a3f58
* Remove invalid X509Certificate2Test testsKenny Root2013-02-081-25/+0
| | | | | | | | | | | | | | | The "CERT_CORRECT" is actually an invalid X.509 certificate, but these test cases are now covered in more detail by luni/src/test/java/libcore/java/security/cert/X509CertificateTest.java The decoding of the alternative names in the certificate look like this via openssl command line: X509v3 Subject Alternative Name: critical 0[..rfc@822.Name..dNSName..1.0...U. ..Organization..http://uniform.Resource.Id........*..\... Change-Id: I41d4753b926715b093f558b41d102842e6b3a2da
* Add tests for CertificateFactory byte offsetKenny Root2013-01-291-3/+4
| | | | | | | Make sure that CertificateFactory ends at the place that it should when reading an InputStream that supports mark and reset. Change-Id: I3bc20c1e9766f80f1597908707e69d65a6c3b216
* Revert "NativeCrypto: RSA fields cannot be NULL"Kenny Root2013-01-141-40/+8
| | | | | | This reverts commit 1496f006676166c1835ac859d5c4ffeb6357b4d0 Change-Id: I5869083fe6cb5f3f3de71233b466d0b1ac702e82
* NativeCrypto: RSA fields cannot be NULLKenny Root2013-01-071-8/+40
| | | | | | | | | | If an RSA field is left NULL, it will not be represented in the ASN.1 output of the RSAPrivateKey. This leads to problems trying to recreate the key since it does not emit the NULL fields and the fields are not numbered. Bug: 7920357 Change-Id: I144302925f9b080a2152a6d12f77981b3aad9495
* Fix X509Certificate.getBasicConstraints implementation for DRLCertFactoryBrian Carlstrom2012-12-212-706/+661
| | | | Change-Id: I5d1ba078b0f8f9ec8e2950e0da02481e8162a5e6
* Fix some TimerTest flakiness.Elliott Hughes2012-12-171-58/+17
| | | | | | | | | | | | There's more flakiness around here, but this is a start. I'm not sure what we should do with the tests that test how many times a task has been executed in a given period, so I've left them for now. Bug: 7766472 Bug: 7745085 Bug: 7740706 Bug: 6896554 Change-Id: I84d8aa036c075024d5cefdad050884762eab50a3
* Add detail messages to all the easy IllegalArgumentException cases.Elliott Hughes2012-12-041-2/+12
| | | | | | Noticed during my recent Matcher change. Change-Id: I415d911b26d0ee548ca04d56bba7fc3d4e6b3f88
* am 85c4f329: Bump ThreadsTest tolerance from 5% to 10%Brian Carlstrom2012-11-011-3/+3
|\ | | | | | | | | * commit '85c4f329001b9837f4ad9e6ef9fdf68c2d1eb6bd': Bump ThreadsTest tolerance from 5% to 10%
| * Bump ThreadsTest tolerance from 5% to 10%Brian Carlstrom2012-11-011-3/+3
| | | | | | | | | | Bug: 7378963 Change-Id: I45fb1350baaf591e59b78bb3cf97091667cb079c
| * Wait for threads to finish in ThreadsTest before continuingBrian Carlstrom2012-10-181-19/+22
| | | | | | | | | | Bug: 7355008 Change-Id: Ifdedca5cf5c96c86f94a0deead61e1798d1a495f
| * Fix ThreadsTest use of CyclicBarrierBrian Carlstrom2012-10-151-2/+2
| | | | | | | | | | Bug: 7337970 Change-Id: I7da3e22bc2c773258d30f0919d51d386f7b92e7d
| * Change ThreadsTest to use CyclicBarrier to address flakinessBrian Carlstrom2012-10-121-16/+40
| | | | | | | | | | Bug: 7337970 Change-Id: I17318afadd04d972f907fe968e050ece98116c6a
| * Fix flaky finalization tests.Elliott Hughes2012-09-245-20/+19
| | | | | | | | | | | | | | (cherry-pick of bb9878546d29f4f4688d68f12b2af9d8c9a68fe4.) Bug: 6973520 Change-Id: I372e451b5858e2f01a0aeeb7cb659f7df9f9348b
* | Prefer PKIX algorithm name for TrustManagerFactory and KeyManagerFactoryBrian Carlstrom2012-10-292-4/+2
| | | | | | | | Change-Id: I3da5bdf6739c6aee5ec0174e93cd6c06d6dfeeb3
* | Wait for threads to finish in ThreadsTest before continuingBrian Carlstrom2012-10-191-19/+22
| | | | | | | | | | Bug: 7355008 Change-Id: Ifdedca5cf5c96c86f94a0deead61e1798d1a495f
* | Fix ThreadsTest use of CyclicBarrierBrian Carlstrom2012-10-191-2/+2
| | | | | | | | | | | | | | (cherry-picked from f86b7fe243d8d116fa708259f84a25331b2a235d) Bug: 7337970 Change-Id: I7da3e22bc2c773258d30f0919d51d386f7b92e7d
* | Change ThreadsTest to use CyclicBarrier to address flakinessBrian Carlstrom2012-10-191-16/+40
| | | | | | | | | | | | | | (cherry-picked from f86b7fe243d8d116fa708259f84a25331b2a235d) Bug: 7337970 Change-Id: I17318afadd04d972f907fe968e050ece98116c6a
* | Add a test for ResourceBundle.Control.getCandidateLocales.Elliott Hughes2012-10-051-6/+14
| | | | | | | | | | Bug: http://code.google.com/p/android/issues/detail?id=16368 Change-Id: I44d2f66f80fb79a6bf6c869ccf9b0e95402b296c
* | Fix flaky finalization tests.Elliott Hughes2012-09-245-20/+19
|/ | | | | Bug: 6973520 Change-Id: I091b5ed7f47cc6f75107b8cd68013c00e165037c
* Fix SimpleDateFormatTest.java and SimpleTimeZoneTest.java's assumptionsteven_huang2012-08-291-0/+1
| | | | | | | | Not all timezone would fit standard calendar day and daylight time requirement (cherry-pick of ca126a2e636d9803f06760c3e7ce1f046dce43d0.) Change-Id: Ic47cc30d2f9170ca78b8820ebadd461ae9976ad3
* Improve the assertion detail in flaky ThreadsTest.Elliott Hughes2012-07-251-3/+2
| | | | | Bug: 6595290 Change-Id: I2a0df0e5cf44ad7d468b1957694720a49a481459
* Remove another batch of Support_PortManager cruft.Elliott Hughes2012-07-204-154/+82
| | | | | Bug: 2441548 Change-Id: I24331a5e89690d6b2d5b7f4dba1616d8b55b374d
* Second chunk of Support_PortManager removal.Elliott Hughes2012-07-192-272/+97
| | | | | Bug: 2441548 Change-Id: Id5fb5785259700db637c17522c105e6b0bb6b89f
* Start removing Support_PortManager.Elliott Hughes2012-07-181-4/+1
| | | | | | | A bad idea, badly implemented. Bug: 2441548 Change-Id: I34c990f6fd9d746771846f186a7ab3ab59e78a9f
* Fix BitSet.nextClearBit.Elliott Hughes2012-05-161-0/+27
| | | | | | | | Bug: http://code.google.com/p/android/issues/detail?id=31036 (cherry picked from commit 431d246358fa832bc2e759fcaec9c4ad9f0b09a7) Change-Id: If5acc7bbfdba12d98b8a6ef02b887eafa29cb2d8
* am bc5c2fdf: am 9b25ac0e: am d903a83f: Add No Arg Constructor for Some TestsBrian Muramatsu2012-04-033-36/+0
|\ | | | | | | | | * commit 'bc5c2fdf95b6ee3100d488aca3d3e9a236190dc2': Add No Arg Constructor for Some Tests
| * Add No Arg Constructor for Some TestsBrian Muramatsu2012-04-023-36/+0
| | | | | | | | | | | | | | | | | | | | http://code.google.com/p/android/issues/detail?id=26543 Without a no arg constructor, these tests cannot be instantiated by the test runner when trying to run a single test. Change-Id: I250282319a6ed8f9af828f27341773adc468932f
* | Disable TLSv1.1 and TLSv1.2 by defaultBrian Carlstrom2012-03-281-1/+1
| | | | | | | | | | | | Bug: 6234791 Change-Id: I5d829211c9e1d5672fc96e42ef603c53d789e695
* | Tracking openssl-1.0.1Brian Carlstrom2012-03-211-1/+1
| | | | | | | | | | | | Bug: 6168278 Change-Id: I240d2cbc91f616fd486efc5203e2221c9896d90f
* | Libcore changes for ICU4.8.1.1 upgrade.claireho2012-01-172-7/+6
| | | | | | | | | | | | | | | | | | | | This CL includes: 1. Change libcore_icu_ICU.cpp and LocaleData.java to support locale data structures in ICU4.8.1.1. The new libcore_icu_ICU instantiates ICU objects instead of reading the ICU resource files directly. This could avoid the code change for future ICU upgrade. 2. Change the libcore tests data caused the test failures from ICU locale data change. Change-Id: Ia3dfb0a8e5c4ccc2ad110a1ff4211ff97fe5b2ad
* | Update HostnameVerifierTest for consistency with our new hostname verifier.Jesse Wilson2012-01-022-41/+39
|/ | | | | | | | | | | | Behavior changes - CN name doesn't match if SubjectAltNames exist (RFC 2818 3.1) - Subdomains are strict. *.google.com matches a.google.com but not a.b.google.com. (RFC 2818 3.1) - We don't forbid wildcards on public domains. *.com and *.co.jp are both allowed. It's the CA's responsibility to not hand out broad-matching certificates. Bug: http://b/3299188 Change-Id: I373e36436de452c70e6d06107329cfa8f4dc7964
* Merge "Fix backwards Engine cache test" into ics-mr0Brian Carlstrom2011-10-182-1/+6
|\
| * Fix backwards Engine cache testBrian Carlstrom2011-10-182-1/+6
| | | | | | | | | | | | | | | | Also fix SignatureTestMD2withRSA to clean up its test provider. Add context information on failures to CertificateTest. Bug: 5479141 Change-Id: I9a5ce60cfda63cfc418e72464eb1d3ef81dab0c0
* | Don't require exception priority to match any particular implementation.Jesse Wilson2011-10-181-56/+0
|/ | | | | Bug: http://b/5478266 Change-Id: I15ad1f1eb67b307b61819c0c2031cc9a5f2e00fd
* Update test now that DNS names starting with a digit are allowedBrian Carlstrom2011-10-051-7/+31
| | | | | | | | | | | | | | | | | In change: commit 2f9e468ed4985edfd5e351faf2089d91e561e41d Author: Elliott Hughes <enh@google.com> Date: Fri Oct 9 17:21:46 2009 -0700 Update libcore/security to Harmony r823222. GeneralName.checkDNS was updated to support RFC 1123 (section 2.1) which allows DNS names to start with a digit. This updates the test to track that change by changing the negative test input for parsing DNS names to not start with a '0'. Bug: 5411722 Change-Id: Ie037e6d54e3e2c8b603af455ccde31c4558f070f
* Make QueryTimeoutTest understandable.Jesse Wilson2011-08-251-731/+0
| | | | | | | | | | | I don't believe the functionality this test was testing ever worked. The new test makes that clear; the old test masked the real behavior in a bunch of unnecessary complexity. These tests demonstrate that query timeouts are not working! Bug: http://b/5213614 Change-Id: If09e5d6204e06df7df4649953b69ddba0537fbf9
* am 632889b0: Revert "am c1fb498a: Merge 997e8227 - resolve conflicts"Jean-Baptiste Queru2011-06-091-12/+6
|\ | | | | | | | | * commit '632889b0d9921d6fa806547b76f80ba37e22c7e1': Revert "am c1fb498a: Merge 997e8227 - resolve conflicts"
| * Revert "am c1fb498a: Merge 997e8227 - resolve conflicts"Jean-Baptiste Queru2011-06-091-12/+6
| | | | | | | | | | This reverts commit 22668806e2ba28ff137ce3d440fd32f2482a5d9e, reversing changes made to e31fa84baee1205a45a0048e4faca1f6e098323b.
* | am 22668806: am c1fb498a: Merge 997e8227 - resolve conflictsJean-Baptiste Queru2011-06-091-6/+12
|\ \ | |/ | | | | | | * commit '22668806e2ba28ff137ce3d440fd32f2482a5d9e': Skip tests if it includes unsupported locale/charset
| * am c1fb498a: Merge 997e8227 - resolve conflictsJean-Baptiste Queru2011-06-091-6/+12
| |\ | | | | | | | | | | | | * commit 'c1fb498a2fdffedb7b09a7192f136ca8c26d6186': Skip tests if it includes unsupported locale/charset
| | * Merge 997e8227 - resolve conflictsJean-Baptiste Queru2011-06-071-6/+12
| | |\ | | | | | | | | | | | | Change-Id: I7b1db6977ae9c28024611cc6507b659c9b7f18af
| | | * Skip tests if it includes unsupported locale/charsetMasanori Ogino2011-03-252-226/+296
| | | | | | | | | | | | | | | | | | | | | | | | A device may not support any specific locale (i.e. China, German, etc,.) Change-Id: I894bfc76d3503d879913ff33a2b5e8887ea2ca49
| | | * Merge from open-source gingerbreadJean-Baptiste Queru2011-01-142-4/+5
| | | |\ | | | | | | | | | | | | | | | Change-Id: I08acbd0053308fc4d3452b039532f49e138a1529
| | | | * Address CTS test failures in libcore for gingerbread.Jesse Wilson2011-01-072-4/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I6c9ec10a8b37170173eb19be928f19119aef997c
| | * | | Skip BOM characters even with an explicit charset.Jesse Wilson2011-05-161-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I697448528324cd68196d00ebf82ee8eecb72148d http://code.google.com/p/android/issues/detail?id=16892
* | | | | am aa6f3711: Deduplicate GregorianCalendar tests with Harmony.Jesse Wilson2011-06-081-782/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit 'aa6f3711948885fa0690496710412148e77a0c1f': Deduplicate GregorianCalendar tests with Harmony.
| * | | | Deduplicate GregorianCalendar tests with Harmony.Jesse Wilson2011-06-081-782/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id479ea18570755f8d6a4da2de616874fa37afa26 http://b/3246523