| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
With this change we should be able to drop the Expat pull parser
and use Kxml exclusively. I'm deferring that change until after
the current release.
Change-Id: I7c6d6dfe6c1e9ae9417c48603068ddd4ade78b76
http://b/3090550
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
leaked.
Merge commit '644de474dc8f7be16072fe55c1d0288f4ba9b6bc'
* commit '644de474dc8f7be16072fe55c1d0288f4ba9b6bc':
Test what happens to RandomAccessFile when it is leaked.
|
| |
| |
| |
| |
| | |
Change-Id: I6b5044a5c3375c9e9456b9c72d897ecd2ccd7e26
http://b/3015023
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
Harmony" into gingerbread
Merge commit 'bf1bdd0ad12aabf9fbbbda30a938ce2b625d38c9'
* commit 'bf1bdd0ad12aabf9fbbbda30a938ce2b625d38c9':
Remove logging tests duplicated from Harmony
|
| |\ |
|
| | |
| | |
| | |
| | | |
Change-Id: I057552b555ee891810d4577b7359ed309d5c1611
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
arabic exponent.
Merge commit '849425a7c0935b4695d1861edc8a92589e89f9ab'
* commit '849425a7c0935b4695d1861edc8a92589e89f9ab':
Fix a test with broken expectations for localized arabic exponent.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also tagging the RI as failing this test, and fixing a broken bug number
in another test.
Change-Id: I800e82832050d45df6853fd7d3c5bc14e60842d3
http://b/3060661
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
CertPathBuilder1Test and CertPathTest" into gingerbread
Merge commit '65eee03bc90772ba766348ac4be4927959314c80'
* commit '65eee03bc90772ba766348ac4be4927959314c80':
Update TestUtils certificates to fix CertPathBuilder1Test and CertPathTest
|
| |/
| |
| |
| |
| | |
Bug: 2322662
Change-Id: I8ad9a91f4095807bd710045eef3a97a86b560f49
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '3efa3e3429d360706117411942494d0aabebcfe8'
* commit '3efa3e3429d360706117411942494d0aabebcfe8':
Scrub test failures in java.text.
|
| |
| |
| |
| | |
Change-Id: Icee3cd8bd3b8fa4b3902435c66021cabb7fc322d
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '70213cf9157f8d78c5562c9c08f059b14511fe9d'
* commit '70213cf9157f8d78c5562c9c08f059b14511fe9d':
Remove an out-of-date expectation.
|
| |
| |
| |
| |
| |
| |
| |
| | |
(You have to remove all the SecurityManager cruft from this SecurityManager
test to see that this expectation is bogus.)
Bug: 1677221
Change-Id: I3907e0c105523195669c32d2aad7e8133f2e7f12
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '853b9e1db7a51fd37bef2dafe5c6968e1254f459'
* commit '853b9e1db7a51fd37bef2dafe5c6968e1254f459':
Add expectations for DecimalFormat test failures.
|
| |
| |
| |
| | |
Change-Id: Iee4dffb4f3dded37866f35f0100d905553b9b3ca
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
of date from our suite.
Merge commit 'aeb874afce86c3f362ffb20611128e2e11615274'
* commit 'aeb874afce86c3f362ffb20611128e2e11615274':
Fix problems where knownfailures has drifted out of date from our suite.
|
| |
| |
| |
| |
| |
| | |
http://b/3045163.
Change-Id: I9c9c6d4429f09d5f5cd92447de9a3c9d67294286
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '5ac2871d06cf6d9a8f2c40f6ce2118f40d2750f4'
* commit '5ac2871d06cf6d9a8f2c40f6ce2118f40d2750f4':
Remove java.net tests that are redundant with Harmony.
|
| |
| |
| |
| | |
Change-Id: I01d6b3633a6de8a075982975d4cbf6c08e757490
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
on the host." into gingerbread
Merge commit '794ef59cb035a759363dba24296d1f53a8c9481f'
* commit '794ef59cb035a759363dba24296d1f53a8c9481f':
Update expectations for tests failing only on the host.
|
| |\ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ieb30ef5b4607f7dfed0b873a10e3dcb31139141d
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Harmony." into gingerbread
Merge commit '6397c0c25ce2a972a8ba731448007bb9619b7a6d'
* commit '6397c0c25ce2a972a8ba731448007bb9619b7a6d':
Remove FormatterTest tests duplicated with Harmony.
|
| |/
| |
| |
| | |
Change-Id: I9c95aac22b9df7efff6595e94700a17cfc5d3d7b
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
StrictMathTest.
Merge commit '72d73552202c5fccb6b26c787482430efd079df1'
* commit '72d73552202c5fccb6b26c787482430efd079df1':
Attach bugs to failures in MathTest and StrictMathTest.
|
| |
| |
| |
| | |
Change-Id: Ifd0cf35e6e3dee4fe512db962db5f44c6e614af4
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '5147718a964bf7cf94951689af0e57fb4113f9e0'
* commit '5147718a964bf7cf94951689af0e57fb4113f9e0':
Attach charset tests to their tracking bugs.
|
| |
| |
| |
| | |
Change-Id: I598a6b34a662e528f9b03a41f419bf7e47755ce2
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
tests failing in Hudson." into gingerbread
Merge commit 'ae1f467fd324947afe525263ef4b3e9ff2582d7d' into dalvik-dev
* commit 'ae1f467fd324947afe525263ef4b3e9ff2582d7d':
Add expectations for some tests failing in Hudson.
|
| |
| |
| |
| | |
Change-Id: Iee064e099a30d4ab6de7a80863df6b1485e23b38
|
| |
| |
| |
| |
| |
| |
| |
| | |
This allows us to print the expectation description when a test
fails. I'll follow this up by wiring vogar to do very clever things
with the statuses of linked bugs.
Change-Id: Idc3048b5dafff864675e760a3bb0c8fea48bb807
|
| |
| |
| |
| | |
Change-Id: I983ad951e6445744b39dc763cf425172d2f4da31
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some deflater tests fail because they expect a specific byte sequence in
the compressed form. Our compressed form is valid but has a different
sequence. I've written new tests to cover the related APIs and suppressed
the broken tests.
The other deleted tests are duplicated exactly from Harmony. I'm removing
our copy.
Change-Id: If480d54948e634e4f6b1018da30951a1d4d07b49
|
|/
|
|
| |
Change-Id: I6aab06d22dd59b4c9ca1ffce7413e0f4adf472e1
|
|
|
|
| |
Change-Id: Ifdc2cb5f007ac4ab4169833f9fb144c16b9a2888
|
|
|
|
| |
Change-Id: Id7cd798db349db1e25f7788c80a1bb0565d33468
|
|
|
|
|
|
|
|
| |
This is indended to make it easier to run on VMs that restrict the packages
from which application classes can be loaded. For example, on the RI you need
to use the bootclasspath to load these tests.
Change-Id: I52193f35c5fcca18b5a3e1d280505b1e29b388af
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Wrote an interoperability test between our OpenSSL and SSLEngine
based SSLSocket implementations. Used it to flush out problems between
the implementations, which mostly were in the non-native implementation.
Filling out the SSLEngine (and therefore non-native SSLSocket) support
led to the list of supported and default cipher suites now being the
same as out OpenSSL SSLSocket. Most of the work was making the the
NULL, RC4, and AES ciphers work with SSLEngine as well as some minor
bug fixes in related code.
Summary:
- changing test_SSLSocket_getSupportedCipherSuites_connect to try all
combinations of our two SSLContext/SSLSocket implementations
- fixed SSLEngine with *_WITH_NULL_* CipherSuites to use javax.crypto.NullCipher
- added *_AES_* cipher suites to SSLEngine (and therefore Java SSLSocketImpl)
- remove *_DH_* cipher suites which are not supported by the RI or our OpenSSL implementation
- fixed Java SSLSocket to not handshake on accept so will pass the basic SSLSocketTest
- added new KeyManagerFactoryTest while testing "DH_" cipher suite key types
This change depends on restoring bouncycastle's RC4 implementation (separate CL in external/bouncycastle)
Details:
Fixed SSLEngine with *_WITH_NULL_* CipherSuites by use javax.crypto.NullCipher
expectations/knownfailures.txt
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateSSLv3.java
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateTLS.java
Previously I had changed the string name of CipherSuites from
"TLS_..." to "SSL_..." where appropriate to match the RI. Since I was
doing maintenance on overall list, I renamed the CODE_TLS_... and
TLS_... static fields as well to match.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CipherSuite.java
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionImpl.java
Removed IDEA and RC2 CipherSuites to make it clear they are not
supported. While technically this happened as a side effect of the
assignment "supported = false" if the CipherSuite failed to load, we
truly intend not to support these. Also removed SSH_DH_* suites which
don't work with DSA keys and aren't supported by the RI or our OpenSSL
implementation.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CipherSuite.java
Old connection state code assumed that if a cipher was blocked, the
block size was 8 bytes. This is not true for the 16 byte AES ciphers.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionState.java
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateSSLv3.java
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateTLS.java
No wonder our OpenSSL implementation incorrect did a startHandshake
when accepting the socket... it got it from the Java implementation.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLServerSocketImpl.java
Test for KeyManagerFactory (and KeyManager). TestKeyStore now creates
KeyManagers and TrustManagers from the keystore as a convenience for
KeyManagerFactoryTest (instead of having the code in the
TestSSLContext where we didn't keep a pointer to the created values).
luni/src/test/java/javax/net/ssl/KeyManagerFactoryTest.java
support/src/test/java/java/security/StandardNames.java
support/src/test/java/java/security/TestKeyStore.java
support/src/test/java/javax/net/ssl/TestSSLContext.java
Remove CIPHER_SUITES_SSLENGINE now that its the same as CIPHER_SUITES
luni/src/test/java/javax/net/ssl/SSLEngineTest.java
support/src/test/java/java/security/StandardNames.java
test_SSLSocket_getSupportedCipherSuites_connect now does
interoperability testing not just between the default SSLContext's
SSLSockets but between the four combinations of our two SSLContext. It
also now sends some test data bi-directionally between the client and
server.
luni/src/test/java/javax/net/ssl/SSLSocketTest.java
Changed TestSSLContext.create to allow a different Provider for the
client and server SSLContexts.
luni/src/test/java/javax/net/ssl/SSLEngineTest.java
luni/src/test/java/javax/net/ssl/SSLSocketTest.java
support/src/test/java/javax/net/ssl/TestSSLContext.java
RC4 is now available in bouncycastle for the non-OpenSSL SSLContext to
use for parity with the OpenSSL implementation.
support/src/test/java/java/security/StandardNames.java
Changed TestSSLSocketPair to use Futures like NativeCryptoTest so its
easier to choose between client and server errors while debuging.
support/src/test/java/javax/net/ssl/TestSSLSocketPair.java
Removed bogus import
luni/src/test/java/org/apache/harmony/xnet/provider/jsse/NativeCryptoTest.java
Change-Id: I080c0343a3f86f27b7c191a7b80b585b9ca52d93
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
client and RSA server
Summary:
Goal here was to just make most tests faster by only having
TestKeyStore create RSA keys by default. However, when I did that
SSLEngineTest#test_SSLEngine_clientAuth started working, so I ended up
investigating a much deeper issue with DSA client authentication
against an RSA SSLEngine server.
Details:
Changed the TestKeyStore.get singleton to only contain RSA
keys. TestKeyStore.create now requires the caller enumerate what
keys they want if they need more than that or an alternative.
support/src/test/java/javax/net/ssl/TestKeyStore.java
Changed test_SSLSocket_getSupportedCipherSuites_connect to
explicitly request RSA and DSA keys since it needs both to try
connecting all possible cipher suites.
luni/src/test/java/javax/net/ssl/SSLSocketTest.java
Fixing SSLEngine client authentication when server uses RSA but client uses DSA
Fixed java.net.ssl.SSLEngineTest#test_SSLEngine_clientAuth
expectations/knownfailures.txt
Added CiperSuite.authType field which contains the algorithm name
such as RSA, DSA, DH, that the client will use to authenticate the
server. Like the cipherName, hmacName, and hashName, this is
logically derivable from the the CiperSuite.KEY_EXCHANGE_*, but we
remember it to avoid repeatedly doing large cascading "if" tests to
determine which key algorithm should be used for each
case.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CipherSuite.java
Fixed a number of client certificate authentication bugs in SSLEngine
- Changed ClientHandshakeImpl's in the SSL/Tls Certificate message
code to mirror ServerHandshakeImpl's implementation to properly
use chooseEngineClientAlias in the SSLEngine case.
- Changed to use the client certifcates key algorithm for computing
the signature for the SSL/TLS CertificateVerify
message. Previously we used the cipher suites negoitated key
exchange method, but if the client may select a certificate with
a different algorithm if the server provides a CA for another
algorithm.
- Also changed to use CipherSuite.isAnonymous in two places rather
than the inlined equivalent.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ClientHandshakeImpl.java
Fixed client authentication to use the client's certificate (not
the server's) to do verify the CertificateVerify message signature.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ServerHandshakeImpl.java
Fixed bug in DigitalSignature which did not Signature.update in
verifySignature, so it could never have properly authenticated DSA
signatures.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java
Added CertificateMessage getAuthType convenience
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CertificateMessage.java
Made CertificateRequest certificate_authorities final, found we were double allocating it
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CertificateRequest.java
Cleaning up imports of HandshakeProtocol while working on its subclasses.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/HandshakeProtocol.java
Cleaned up while looking at X509KeyManager implementations while debugging.
support/src/test/java/org/apache/harmony/xnet/tests/support/X509KeyManagerImpl.java
Change-Id: I74b98754c11000cbfea416f1571c380c9c67abf3
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This rearranges the security test support infrastructure. We no longer
rely on many top-level classes defined in CipherHelper.java to provide
test support. Instead these each have their own top level class in our
test support package: support/src/test/java/tests/security. Similarly
for abstract classes intended to be subclassed by cipher-specific
tests.
Other test methods that were duplicated in Harmony have been removed.
We need to pay closer attention to Harmony failures because they are
now our only source of coverage for some of these tests.
Change-Id: I1a1ca8a046bc9b6a33d5fa3f55fecc0d39f72c16
|
|/
|
|
| |
Change-Id: Ic28d57e90e36cbb40b66393acc53296d75d77277
|
|
|
|
|
| |
Bug: 2788945
Change-Id: I959df2c338a4d85497a23705b553f0c749ef1070
|
|
|
|
|
|
|
|
|
| |
Removing tests duplicated with Harmony. Tests methods in such test classes
are moved to their own test classes in our test tree.
Removing all Pack200 tests; these don't make sense on a dalvik vm.
Change-Id: Ia2f6a542b4e3e3b50962c83dc2700bd4ee07f363
|
|
|
|
|
|
|
|
|
|
|
| |
Some tests were copied from Harmony and fixed in Dalvik. I've applied
fixes in our SVN copy of Harmony and removed the duplicate copies here.
Also improving error reporting for missing resource files. Some of our
serialization tests were failing due to missing files; the corresponding
Harmony tests succeed.
Change-Id: I73872b03674f8731ff237f575dcda66f9d53c06a
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Tested these with the coming BouncyCastle 1.45 upgrade.
Confirmed the failures happen on continuous build before the upgrade.
Change-Id: Idbd08d1641dbba9297840105ac018353dad5205a
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Moving TimeZoneTest to OldTimeZoneTest and removing test methods
that are duplicated between libcore and Harmony.
Also adding Objects.equals() to make implementing this easy,
and removing redundant time zone tests. I did a few searches
to find candidate code that could take advantage of this new
utility method and adopted it there.
Change-Id: I133298f1b36d755bd35c1ad0dc0ab366fd164270
|
|
|
|
|
|
| |
(Maybe vogar should make this a loud warning rather than a failure?)
Change-Id: I9f178348c0ecbb432b26e3c98a5fb7b388a95ebc
|