summaryrefslogtreecommitdiffstats
path: root/harmony-tests
Commit message (Collapse)AuthorAgeFilesLines
* am 45c2f8a3: am a17cd656: Merge "Explicitly set DateFormat.is24Hour value ↵Daniel Xie2015-07-023-9/+20
|\ | | | | | | | | | | | | needed by tests" into lollipop-mr1-cts-dev * commit '45c2f8a384ab789ac0410a02debe32d56105ae96': Explicitly set DateFormat.is24Hour value needed by tests
| * Merge "Explicitly set DateFormat.is24Hour value needed by tests" into ↵Daniel Xie2015-07-013-9/+20
| |\ | | | | | | | | | lollipop-mr1-cts-dev
| | * Explicitly set DateFormat.is24Hour value needed by testsNeil Fuller2015-06-153-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some tests fail under CTS if the device is set to use the 24 hour clock. The tests that depend on the value of the setting are now being explicit. Bug: 20899571 Bug: 20937589 Bug: 20939139 Bug: 20378566 Bug: 21585934 Bug: https://code.google.com/p/android/issues/detail?id=162384 (cherry-picked from commit 38a0b85afd4231f46fac59e59ee38729bd5154c4) Change-Id: I1a369baeeac929ef010e7906e92544b9f483f02c
| * | Fix for devices with multiple multicast-capable interfacesNeil Fuller2015-06-191-8/+28
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface was wrong: 1) The sending socket was joining a group for no obvious reason except, perhaps, to test null NetworkInterface handling. 2) The sending socket was always using the default interface to send multicast packets, but receiving on a specified interface. For devices with several interfaces we have reports of the test failing. It is assumed to be because of (2) when the specified interface and the default interface differ in the presence of multiple interfaces. To explicitly test null handling for joinGroup() more tests have been added. Thanks to swl77wade for helping to track this down. Bug: 159740 Change-Id: Ibb180f6d93770a95f70a6bfa34bfadd93aa3187e (cherry picked from commit ef97a43c64f9b80714177ae16b5432fab7bdffde)
| * Merge "Fix for MulticastSocketTest for non-multicast interfaces" into ↵Neil Fuller2015-06-021-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | lollipop-cts-dev automerge: 27ef0eb * commit '27ef0eb26e179b7750b9cb72018da9fab3a0bbb0': Fix for MulticastSocketTest for non-multicast interfaces
| | * Fix for MulticastSocketTest for non-multicast interfacesNeil Fuller2015-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | test_setNetworkInterfaceLjava_net_NetworkInterface does not check that the interface supports multicast. Bug: 19232216 Change-Id: I755287c06c99f36d209a3a8d11b2c75fccfa630b (cherry picked from commit f6e066e95859d3366a24da89736f487d980854ce)
* | | X509Certificate: Narrow down the scope of caught exceptions.Narayan Kamath2015-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Also, fix the package name of the corresponding test so that vogar isn't confused. bug: 19245702 Change-Id: I647f0c9ca4c81bb41d4b64088b60f37ebc671e84
* | | Remove support for reading mime types from property files.Narayan Kamath2015-04-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This support was untested and unused and of very limited utility, given that this class is initialized in the zygote. It also discourages arbitrary changes to the priority order of mappings. Change-Id: I2a7f91d2956627cd59f948561c37678bc45d118d
* | | Merge "Fix for devices with multiple multicast-capable interfaces"Neil Fuller2015-03-241-8/+28
|\ \ \
| * | | Fix for devices with multiple multicast-capable interfacesNeil Fuller2015-03-171-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface was wrong: 1) The sending socket was joining a group for no obvious reason except, perhaps, to test null NetworkInterface handling. 2) The sending socket was always using the default interface to send multicast packets, but receiving on a specified interface. For devices with several interfaces we have reports of the test failing. It is assumed to be because of (2) when the specified interface and the default interface differ in the presence of multiple interfaces. To explicitly test null handling for joinGroup() more tests have been added. Thanks to swl77wade for helping to track this down. Bug: 159740 Change-Id: Ibb180f6d93770a95f70a6bfa34bfadd93aa3187e
* | | | Merge "Fix for MulticastSocketTest for non-multicast interfaces"Neil Fuller2015-03-161-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Fix for MulticastSocketTest for non-multicast interfacesNeil Fuller2015-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_setNetworkInterfaceLjava_net_NetworkInterface does not check that the interface supports multicast. Bug: 19232216 Change-Id: I755287c06c99f36d209a3a8d11b2c75fccfa630b
* | | | Merge commit '405aeb8a97eb0a5194c2803dde3968e10e1e509e' into HEADBill Yi2015-02-192-18/+200
|\ \ \ \
| * \ \ \ am 43bcec28: Merge "Remove flakiness from ProcessTest."Elliott Hughes2015-01-301-3/+6
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '43bcec288e4b2e3f70903c6661c87a3edbec9e69': Remove flakiness from ProcessTest.
| * | | | am 26bb4803: Merge "Use the IPv6 instead of the IPv4 wildcard address in ↵Lorenzo Colitti2015-01-221-6/+7
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sockets." * commit '26bb48032cdcc8d69484ff168389c34e1f873250': Use the IPv6 instead of the IPv4 wildcard address in sockets.
| * \ \ \ \ am 1b462a5d: Merge "Fix ProcessTest#getErrorStream."Narayan Kamath2015-01-221-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1b462a5d4a5cd4f28c9c7b368110128520a84594': Fix ProcessTest#getErrorStream.
| * \ \ \ \ \ am 6dc0ed72: Merge "Add a unit test to demonstrate ICU CharsetProvider problems"Narayan Kamath2015-01-202-36/+76
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6dc0ed7247a7520bf14a89db9b4bc3015d3cdcb2': Add a unit test to demonstrate ICU CharsetProvider problems
| * \ \ \ \ \ \ am 1a923668: Merge "Fix the hostname for the IPv6 loopback address"Neil Fuller2015-01-141-1/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1a923668463640b1e0cbdc9d90bc4530240fc75d': Fix the hostname for the IPv6 loopback address
| * \ \ \ \ \ \ \ am 0311cd2b: Increase ThreadTest toleranceMathieu Chartier2015-01-131-3/+3
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | * commit '0311cd2be856e4c5872ebbe5ac7e12eac334ad73': Increase ThreadTest tolerance
| | * | | | | | | Increase ThreadTest toleranceMathieu Chartier2015-01-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Aims to fix flaky test. Decreased minimum from 90% to 80%. Increased maximum from 110% to 120%. Increased maximum waitMillis from 10ms to 30ms. Bug: 18788389 Change-Id: I92477225492712448b0a78354730a037e2dda1a1
| | * | | | | | | am a951e748: Fix failing socket tests.Narayan Kamath2014-12-085-49/+33
| | |\ \ \ \ \ \ \ | | | | |_|_|_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | * commit 'a951e74897193848ee88ed1c5b0a1d536f403d70': Fix failing socket tests.
| | | * | | | | | Fix failing socket tests.Narayan Kamath2014-12-055-49/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use bogus numeric addresses instead of invalid hostnames to make InetAddress.getAllByName fail before we ask a DNS server. This guards against flakiness caused by evil DNS servers. Note that from an API perspective, Socket* and SSLSocket* don't care about *why* getAllByName failed, just that it did. This change also fixes a test that was asserting that the exception we throw contains a useful error message. Again, this test was changed to use a broken numeric address. bug: 18575971 (cherry picked from commit 83b5554108e839b0c78178a029b65fddce8983f0) Change-Id: Ia1c521c05634ce798a61b060f4d3fbbc164bb9fc
| * | | | | | | | am d0f39dbb: Merge "Fix Harmony\'s HostnameVerifierTest breakage."Alex Klyubin2015-01-051-3/+3
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd0f39dbb37a6c6d32b481067517daae95b360555': Fix Harmony's HostnameVerifierTest breakage.
| * \ \ \ \ \ \ \ \ am 89b456da: Merge "Fix failing socket tests."Narayan Kamath2014-12-055-49/+33
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '89b456da4190576d2c89ad01bd5a7627b0676c2c': Fix failing socket tests.
| * \ \ \ \ \ \ \ \ \ am 382575b5: Merge "Rename packages to match directory structure."Narayan Kamath2014-12-0437-40/+40
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '382575b597f209f04ecdb5efae1036bf241c8d70': Rename packages to match directory structure.
| * \ \ \ \ \ \ \ \ \ \ am 765a6c4e: Merge "Track CLDR-26 updates to currency data."Narayan Kamath2014-11-271-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '765a6c4ece178f90c3b5c2ddd1693c81700113ff': Track CLDR-26 updates to currency data.
| * \ \ \ \ \ \ \ \ \ \ \ am fc91c292: am 80a166b4: Merge "Do not run the multicast tests if the ↵Jason Parks2014-11-221-1/+129
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device doesn’t support multicast." into lmp-sprout-dev * commit 'fc91c292a8cc5aaba60470f3057bc915e713109d': Do not run the multicast tests if the device doesn’t support multicast.
| | * | | | | | | | | | | am 80a166b4: Merge "Do not run the multicast tests if the device doesn’t ↵Jason Parks2014-11-221-1/+129
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | support multicast." into lmp-sprout-dev * commit '80a166b4cbdf3ea41e0e35db21208a8e5df78993': Do not run the multicast tests if the device doesn’t support multicast.
| | | * | | | | | | | | | Do not run the multicast tests if the device doesn’t support multicast.Jason Parks2014-11-211-1/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18449007 Change-Id: Ia7511083cc36dd7d6835191bf4b79d23ed039b5b
| | | * | | | | | | | | | Allow 1 ulp difference in test_cbrt_D and test_sinh_D.Elliott Hughes2014-10-281-54/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18016320 (cherry picked from commit cf5f86467f5be5f1c3ae2a5518c65f496ac93e33) Change-Id: I05c3810320d035323e5fec07712b47586eb100bb (cherry picked from commit 8afb381342e073b3bfcc8700b370e381ac23b2e0)
| * | | | | | | | | | | | am 657afa6c: Merge "JarUtils: stop trying to build chain past candidates ↵Kenny Root2014-11-141-17/+71
| |\ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | length" into lmp-mr1-dev * commit '657afa6cd8da378f30afe7b491e6d9de6c7c23fd': JarUtils: stop trying to build chain past candidates length
| | * | | | | | | | | | | JarUtils: stop trying to build chain past candidates lengthKenny Root2014-11-131-17/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | | | | | | | | | Switch order of digest and digest encryption algorithmKenny Root2014-11-101-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes "digest encryption algorithm" would be "RSA" which would match a Signature provider, but its default setup would be whatever the provider chose. This works fine with newer algorithms that have a specific OID for their signature format (e.g., ECDSA and SHA256), but not with algorithms that just have a generic OID for all possible uses (e.g., RSA). Stock Android never hits this problem, because nothing registers a "Signature.RSA" provider, but Spongycastle does so using JarURLClassLoader after inserting Spongycastle causes a problem. Flip the order of tries to make this work more uniformly with more JAR and provider combinations. (cherry picked from commit b1da6d3df5f9cce6e6d77c63599eba62edb465d6) Bug: 17790692 Bug: https://code.google.com/p/android/issues/detail?id=68562 Change-Id: I3bb07ea25d7bf1d55fa2466b204594179ac38932
| | * | | | | | | | | | | Allow 1 ulp difference in test_cbrt_D and test_sinh_D.Elliott Hughes2014-10-271-54/+30
| | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18016320 (cherry picked from commit cf5f86467f5be5f1c3ae2a5518c65f496ac93e33) Change-Id: I05c3810320d035323e5fec07712b47586eb100bb
* | | | | | | | | | | | Merge "Make ReferenceQueueTest#test_removeJ more robust."Mathieu Chartier2015-02-181-7/+10
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Make ReferenceQueueTest#test_removeJ more robust.Mathieu Chartier2015-02-181-7/+10
| | |_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No spurrious failures if the sleep finishes before the RemoveThread is inside the try catch block. Bug: 19384923 Change-Id: I81e340e97eff5e1d011e980c2f89dfa679662547
* | | | | | | | | | | | Deal with quoted subformat patterns correctly.Narayan Kamath2015-02-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change might look like a hack, but the API it implements is more than worthy of it. bug: 19011159 Change-Id: I8a539f1b54282220fbb0a005a750819fa7873cc9
* | | | | | | | | | | | Fix handling of consecutive quotes in ChoiceFormat et al.Narayan Kamath2015-02-181-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two consecutive single quotes ('') must be interpreted as an escaped single quite sequence. We were implementing it by simply keeping track of whether the last character was a single quote. This is insufficient for sequences of three or more quotes since we shouldn't emit ('') for an escape sequence of ('''). We'll have to keep track of the number of consecutive quotes we've seen in the input instead. This is a partial fix for the bug below. There appears to be another bug in MessageFormat itself in its handling of subpatterns. bug: 19011159 Change-Id: Ia71e5d8c1962356cabc265cf80ebc0a04ff84f17
* | | | | | | | | | | | Handle infinities correctly in ChoiceFormat.Narayan Kamath2015-02-171-0/+8
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'd like ChoiceFormat.toPattern to emit a pattern that's parseable by ChoiceFormat - which means we need an infinity that's parseable by NumberFormat.parse(). Also, implement the nextDouble / previousDouble public API <sadface/> in terms of Math.nextAfter and Math.nextUp. bug: 19149384 Change-Id: Ieb13ee70c212d188ff9fde09463ced8d632f47ab
* | | | | | | | | | | Remove flakiness from ProcessTest.Elliott Hughes2015-01-291-3/+6
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If run as root, ps(1) will list far too many processes, some of which might coincidentally be zombies. Note that we wanted "ps S" to show the STAT field, not "ps s" to show the signal masks which also shows the STAT field as a side-effect. Change-Id: Iedbcb45b871b1207248cb59c3a5fae9be5b0b3e2
* | | | | | | | | | Use the IPv6 instead of the IPv4 wildcard address in sockets.Lorenzo Colitti2015-01-221-6/+7
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few places in libcore consider the local address of an unbound socket to be Inet4Address.ANY. For example, calling getLocalAddress on an uncreated Socket will return 0.0.0.0, and when creating a DatagramSocket, libcore attempts to bind it to 0.0.0.0 unless the caller specifies another address. On Android, this is incorrect. All native socket filedescriptors that underpin Java socket objects are created by IoBridge.socket, and are dual-stack AF_INET6 sockets, not AF_INET sockets. When such a socket is created, its local address is ::, not 0.0.0.0. Thus, for example, calling getLocalAddress on a just-created ServerSocket object will return ::. Binding to 0.0.0.0 is not even allowed by os.bind, which silently converts it to :: instead (in inetAddresstoSockaddr). Therefore, accept reality and use :: instead of 0.0.0.0 in the Java layer as well. Specifically: 1. Change DatagramSocket's constructors to bind to :: instead of 0.0.0.0. This is a complete no-op, because os.bind() silently converts 0.0.0.0 into ::. Add a test for the other of the two codepaths. 2. Change InetSocketAddress so that an uninitialized object has an IP address of :: and not 0.0.0.0, and update its test. This is unlikely to break anything short of an app that explicitly depends on this behaviour, because os.bind() converts 0.0.0.0 to ::, and because any SocketAddress returned by any real socket will never contain 0.0.0.0 anyway. 3. Change Socket so that calling getLocalAddress() when there is no underlying socket file descriptor is will return :: instead of 0.0.0.0. This is more correct, because it's consistent with sockets that have been created, which will never have a local address of 0.0.0.0. Tested: vogar $(find libcore/*Socket*Test*) all passes on device. Bug: 18094870 Change-Id: I9d60710fe945a99d6a5e65430248a889008ef4b1
* | | | | | | | | Fix ProcessTest#getErrorStream.Narayan Kamath2015-01-211-1/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broken by the move to toybox. Instead of double guessing the error message, just assume that all "cat" variants (host / target etc.) output the name of the "bad" paramater to the error stream. Change-Id: If19fa737e0d3a3dd023185fa23854da3022020fa
* | | | | | | | Add a unit test to demonstrate ICU CharsetProvider problemsNarayan Kamath2015-01-202-36/+76
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a single FakeCharsetProvider for unit tests that does nothing by default, so that we can stub it in for tests that do care about it and none of our other tests are affected. Change-Id: I03abb8f1aff53c160935b4cdbeaef764d30f240a
* | | | | | | Fix the hostname for the IPv6 loopback addressNeil Fuller2015-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the hostname was "localhost", which resolves to the IPv4 loopback address. Also fixed the documentation for getAllByName(null) which has returned the loopback addresses all the way back to 2009 and not thrown an exception as suggested in the docs. Test fixes and new tests included. Depends on commit 25147416bb105914c3cdf8fd65ca7cc20dae0f3e Bug: 18991397 Bug: https://code.google.com/p/android/issues/detail?id=96801 Change-Id: I9723516a977e2a3b97412bc1d7e58b36df327feb
* | | | | | | Increase ThreadTest toleranceMathieu Chartier2015-01-131-3/+3
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Aims to fix flaky test. Decreased minimum from 90% to 80%. Increased maximum from 110% to 120%. Increased maximum waitMillis from 10ms to 30ms. Bug: 18788389 (cherry picked from commit 0311cd2be856e4c5872ebbe5ac7e12eac334ad73) Change-Id: Ie3d84cf71769208e851b9fa7587c62858efdf4dd
* | | | | | Fix Harmony's HostnameVerifierTest breakage.Alex Klyubin2015-01-051-3/+3
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests got broken by recent changes to the platform-default HostnameVerifier which no longer matches *.domain.com to domain.com. This CL fixes the affected tests by changing their expectaions. Bug: 18869757 Change-Id: I293b5f97f603a26a13cfd272a6175ef217ed4de3
* | | | | Fix failing socket tests.Narayan Kamath2014-12-045-49/+33
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use bogus numeric addresses instead of invalid hostnames to make InetAddress.getAllByName fail before we ask a DNS server. This guards against flakiness caused by evil DNS servers. Note that from an API perspective, Socket* and SSLSocket* don't care about *why* getAllByName failed, just that it did. This change also fixes a test that was asserting that the exception we throw contains a useful error message. Again, this test was changed to use a broken numeric address. bug: 18575971 Change-Id: I0b49e5e66717dc29a3401f45af0ef2d5bb955219
* | | | Rename packages to match directory structure.Narayan Kamath2014-12-0437-40/+40
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Doesn't make a difference to the CTS test runner (which runs these tests anyway) but vogar complains. bug: 18575971 Change-Id: Ifd323300f9c70a8625c215d8ff7d48ddd18083bd
* | | Track CLDR-26 updates to currency data.Narayan Kamath2014-11-271-2/+2
|/ / | | | | | | | | | | | | | | | | source/data/curr/it.txt : The "Svizzero" for CHF is now lowercase. source/data/curr/fr_CA.txt : US dollars are now "$ US". source/data/curr/en_GB.txt : Removed GB specific override ("$") for USD. We now fall back to en_001 for USD, which is "US$". Change-Id: I985897c67ed9ae831aa6b0eeb6d601a4adeeb2f9
* | Switch order of digest and digest encryption algorithmKenny Root2014-11-071-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes "digest encryption algorithm" would be "RSA" which would match a Signature provider, but its default setup would be whatever the provider chose. This works fine with newer algorithms that have a specific OID for their signature format (e.g., ECDSA and SHA256), but not with algorithms that just have a generic OID for all possible uses (e.g., RSA). Stock Android never hits this problem, because nothing registers a "Signature.RSA" provider, but Spongycastle does so using JarURLClassLoader after inserting Spongycastle causes a problem. Flip the order of tries to make this work more uniformly with more JAR and provider combinations. Bug: 17790692 Bug: https://code.google.com/p/android/issues/detail?id=68562 Change-Id: I3bb07ea25d7bf1d55fa2466b204594179ac38932