- 15 Nov, 2016 4 commits
-
-
Narayan Kamath authored
We were incorrectly using sizeof() to calculate the size of the output array. Note that this change also changes the output size to 512 to minimize behavioural differences (especially wrt. ICU checks on sizes). bug: 30765246 Change-Id: I5d28ddc45d2d6d2bed3e479ca195ed2779b906ed
-
Paul Duffin authored
The fixes are in external/expat. (cherry picked from commit e168b494) Bug: 28698301 Change-Id: Iafe4a3387be20a05c217abd65588871bb7b47160
-
Paul Duffin authored
The fixes are in external/expat. (cherry picked from commit e168b494) Bug: 28698301 Change-Id: Iafe4a3387be20a05c217abd65588871bb7b47160
-
Narayan Kamath authored
We were incorrectly using sizeof() to calculate the size of the output array. Note that this change also changes the output size to 512 to minimize behavioural differences (especially wrt. ICU checks on sizes). bug: 30765246 Change-Id: I5d28ddc45d2d6d2bed3e479ca195ed2779b906ed
-
- 10 Nov, 2016 1 commit
-
-
Kenny Root authored
Since this test uses pre-generated certificates, they will expire eventually given enough time. Instead of regenerating them, just set the date in the PKIXParameters to compare their validity against. (cherry picked from commit 4412830e) Test: vogar --mode host --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-support-hostx_intermediates/classes.jack --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-hostdex_intermediates/classes.jack libcore/luni/src/test/java/tests/targets/security/cert/CertificateTest.java Bug: 32756119 Bug: 32767302 Change-Id: Id48ecf289277ae9d98642b15aaa17c126bdc43e9
-
- 11 Mar, 2016 1 commit
-
-
Narayan Kamath authored
.. or "Apia Daylight time" as the case might be. bug: 18479007 Change-Id: Ie637c33b38f55bea5273d1256264348e51d27f28 (cherry picked from commit 4e5e7de6)
-
- 21 Jan, 2016 1 commit
-
-
Elliott Hughes authored
DO NOT MERGE : Work around the snappily-titled ICANN "Name Collision Occurrence Management Framework". Using a non-existent TLD is now a Bad Idea. (cherry-pick of a7d651e9.) Bug: 17146413 Change-Id: I6a68b4609d59a6d56ba780d03ffcf24a2759db48 (cherry picked from commit fbc8a609)
-
- 08 Oct, 2015 2 commits
-
-
Neil Fuller authored
Chile has changed the rules for DST. The test duplicates testApia below it, so it can be removed. Bug: 19212588 (cherry-picked from commit ebfb8f8b) Change-Id: Ibe7c0dc510813826dca13993b6600d368e03740a (cherry picked from commit a8885648) (cherry picked from commit 60da282d)
-
Elliott Hughes authored
This test was more complicated than necessary, and now we have better historical data for Asia/Saigon it's started to fail. I've removed that part of the test (because there are now a lot more transitions) and rely solely on Africa/Bissau. We really only need one transition so we can test two times: one before the first transition and one after the last transition. Bug: 18285300 Change-Id: Ic820e88b319095b89779d271f45f5cb1c90173da (cherry picked from commit d05995d8)
-
- 17 Sep, 2015 1 commit
-
-
Neil Fuller authored
The tests were order-dependent and flawed: test support classes were used in multiple tests but each relied on it being possible to detect static initialization of those classes. There was an incorrect assertion. This change splits out unique test support classes for those that need them, adds more assertions and fixes the broken assertion. Also tidies up some warnings. Bug: 23031484 Change-Id: Ia3bb32dd1dbd02a74931604cae424d7e9312c76d (cherry picked from commit 729d4eca) (cherry picked from commit 5f3b815a)
-
- 20 Aug, 2015 1 commit
-
-
Neil Fuller authored
The tests were order-dependent and flawed: test support classes were used in multiple tests but each relied on it being possible to detect static initialization of those classes. There was an incorrect assertion. This change splits out unique test support classes for those that need them, adds more assertions and fixes the broken assertion. Also tidies up some warnings. Bug: 23031484 Change-Id: Ia3bb32dd1dbd02a74931604cae424d7e9312c76d (cherry picked from commit 729d4eca)
-
- 05 Aug, 2015 1 commit
-
-
Neil Fuller authored
This reverts commit 11c3934f. commit 11c3934f was incorrectly merged from lollipop-cts-dev into lollipop-mr1-cts-dev. Change-Id: I66fa65f08397fb34d6af1cb73d2c0fa7f57ef1b6
-
- 03 Aug, 2015 1 commit
-
-
Neil Fuller authored
Chile has changed the rules for DST. The test duplicates testApia below it, so it can be removed. Bug: 19212588 (cherry-picked from commit ebfb8f8b) Change-Id: Ibe7c0dc510813826dca13993b6600d368e03740a (cherry picked from commit a8885648)
-
- 22 Jul, 2015 1 commit
-
-
Daniel Xie authored
to missing CVE Change-Id: I5688b4a658cef3b0822bfd9fc9ac0631abf6d733
-
- 17 Jul, 2015 1 commit
-
-
Neil Fuller authored
This reverts commit 467a6809. commit 467a6809 is present in lollipop-cts-dev but not lollipop-release. This causes the tests to fail when run against a lollipop-release build. DO NOT MERGE ANYWHERE Bug: 22546532 Change-Id: I4582824e94679213f27352e18e7d9bb985954909
-
- 14 Jul, 2015 1 commit
-
- 08 Jul, 2015 1 commit
-
-
Tochau Hoang authored
Add testInterfaceProperties(): verify if each interface can be retrieved using getByName(). Use type properties of these interfaces to determine if they are Ethernet. Perform address tests on all active Ethernet interfaces. Move Ethernet verification out of testLoopback into testInterfaceProperties. Change-Id: I1641f2995f4ceb858eda38d1ba6137382b2c7ba3 Signed-off-by:
Tochau Hoang <tochau.hoang@panasonic.aero>
-
- 15 Jun, 2015 1 commit
-
-
Neil Fuller authored
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 38a0b85a) Change-Id: I1a369baeeac929ef010e7906e92544b9f483f02c
-
- 04 Jun, 2015 1 commit
-
-
Tiberiu Breana authored
OldSocketTest's test_connectLjava_net_SocketAddressI would sometimes fail on certain networks. The connection attempt to the 'non-reachable' IP would be reset by a local router before the expected timeout occured, thus causing the test to fail. This change adds additional catch clauses for cases like this, looking for ECONNREFUSED messages. Bug: 18143878 Change-Id: I99a500d5c95cc25aa52ef231e6de43233f3e5316 Signed-off-by:
Tiberiu Breana <tiberiu.a.breana@intel.com> (cherry picked from commit d3ba3eb7)
-
- 29 May, 2015 1 commit
-
-
Richard Uhler authored
This fixes a problem with the DexClassLoaderTest where oat files from previous tests were being cached and reused for later tests. Now each test uses its own directory for loading-test.dex and friends so they are treated as separate dex files from test to test. As part of this fix, the helper functions for the tests were reorganized. Bug: 21033982 (cherry picked from commit 5099b54a) Change-Id: I175184277a585840eca50122cf6898f00823ef3e
-
- 04 Feb, 2015 1 commit
-
-
Neil Fuller authored
Modify the tests that were using Pacific/Apia and replace with America/Santiago instead. Pacific/Apia is missing translations in the version of CLDR shipped with MR1. America/Santiago fits the criterion of "has no short names". Bug: 19212588 Change-Id: If241736446fdbbc98464952edad9cbfefc289cb6
-
- 02 Feb, 2015 1 commit
-
-
Neil Fuller authored
Chile has changed the rules for DST. The test duplicates testApia below it, so it can be removed. Bug: 19212588 Change-Id: Iaaca895ef2b49a6aa57ca26df5842eefaab60bde
-
- 08 Jan, 2015 2 commits
-
-
Elliott Hughes authored
The original logic was accidentally inverted. This prevented sockets from being untagged, which would result in cancelled requests stalling out with sub-optimal TCP ZeroWindow detection instead of sending RST packets. Add a comment explaining how this works. Switch from SO_ERROR (which has a side-effect) to SO_DEBUG (which doesn't). Add a unit test. Bug: 18706592 (cherry picked from commit 4f263fdf) Change-Id: I6746f4e0e5a6c9788cdcf35f74ccca5aa9a0e8b4
-
Kenny Root authored
If a client/server gets a close alert during a handshake, it should give a sane error message instead of something that is confusing to the developer. (cherry picked from commit 58d0df79) Bug: 18758595 Change-Id: I5d8d7dcb74fed4ff0ab943b5dc666819ec076e31
-
- 11 Dec, 2014 1 commit
-
-
Neil Fuller authored
The logic was incorrect. If the socket is not the platform version all connection attempts would be treated as fallbacks. Bug: 18675956 Change-Id: I7bb1f84127fbede75f12b0a8dec7d4a7374f0b22
-
- 09 Dec, 2014 3 commits
-
-
Narayan Kamath authored
Also add tests in libcore.io.OsTest and update (and simplify) callers that were updating the position themselves. bug: 18641009 Change-Id: Ie0bbde767489eec1a6ef0158f2b14853d4612f18
-
Elliott Hughes authored
This test was more complicated than necessary, and now we have better historical data for Asia/Saigon it's started to fail. I've removed that part of the test (because there are now a lot more transitions) and rely solely on Africa/Bissau. We really only need one transition so we can test two times: one before the first transition and one after the last transition. Bug: 18285300 (cherry picked from commit d05995d8) Change-Id: Ibdf8f1dde02755bf71b7114b22078698e06a1c00
-
Wei Liu authored
Bug: 18619181 Change-Id: I50e531c6e47bdfd1e4bebf9bd12a2011840929c2
-
- 08 Dec, 2014 1 commit
-
-
Narayan Kamath authored
Use the java.lang.String(byte[]) constructor instead of NewStringUTF since the former replaces malformed and unmappable characters instead of faulting on them. This also gives us some degree of consistency when it comes to how these names are handled. From StrictJarFile's perspective, the entry name is only used by the JarVerifier for two things : (1) keeping track of entries it has seen - this only requires the entry name to be stable. (2) looking up entry attributes in the manifest - this will continue to work if the same bogus encoding is used in the manifest. If the manifest uses valid UTF-8, the attribute lookup will fail and we'll return no certificates for the entry (this is a good thing). Finding an entry by name remains unaffacted because (as before) we require byte by byte equality with the input. The longer term fix is to disallow non-UTF entry names altogether but that needs a bit more advance notice. bug: 18584205 Change-Id: I7bb3e5bb09962d768a28aca4a6ece4dd54aa3473
-
- 05 Dec, 2014 1 commit
-
-
Kenny Root authored
ADDED Repository imported SHA1 : AF:E5:D2:44:A8:D1:19:42:30:FF:47:9F:E2:F8:97:BB:CD:7A:8C:B4 Subject : C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Certification Authority Not Before: Jan 19 00:00:00 2010 GMT Not After : Jan 18 23:59:59 2038 GMT ADDED Repository imported SHA1 : 1F:24:C6:30:CD:A4:18:EF:20:69:FF:AD:4F:DD:5F:46:3A:1B:69:AA Subject : OU=GlobalSign ECC Root CA - R5, O=GlobalSign, CN=GlobalSign Not Before: Nov 13 00:00:00 2012 GMT Not After : Jan 19 03:14:07 2038 GMT ADDED Repository imported SHA1 : D1:CB:CA:5D:B2:D5:2A:7F:69:3B:67:4D:E5:F0:5A:1D:0C:95:7D:F0 Subject : C=US, ST=New Jersey, L=Jersey City, O=The USERTRUST Network, CN=USERTrust ECC Certification Authority Not Before: Feb 1 00:00:00 2010 GMT Not After : Jan 18 23:59:59 2038 GMT ADDED Repository imported SHA1 : 2B:8F:1B:57:33:0D:BB:A2:D0:7A:6C:51:F7:0E:E9:0D:DA:B9:AD:8E Subject : C=US, ST=New Jersey, L=Jersey City, O=The USERTRUST Network, CN=USERTrust RSA Certification Authority Not Before: Feb 1 00:00:00 2010 GMT Not After : Jan 18 23:59:59 2038 GMT ADDED Repository imported SHA1 : 69:69:56:2E:40:80:F4:24:A1:E7:19:9F:14:BA:F3:EE:58:AB:6A:BB Subject : OU=GlobalSign ECC Root CA - R4, O=GlobalSign, CN=GlobalSign Not Before: Nov 13 00:00:00 2012 GMT Not After : Jan 19 03:14:07 2038 GMT Bug: 17425602 Bug: 18420511 Change-Id: I9f3909467e21de991953f4714e2ef7087bd919ad
-
- 04 Dec, 2014 2 commits
-
-
Narayan Kamath authored
It uses reflection, has all sorts of weird stuff in it and isn't run as part of CTS because it has irreversible side effects (the last of these isn't the tests fault). There's no good reason to keep it, and it seems infeasible to write a half-decent test without adding lots of hidden api (which defeats the purpose of the test in the first place). bug: 18619181 (cherry picked from commit e9847f0c) Change-Id: Ia69c0011683eac90e4cca70a8f3f15fb82cece44
-
Jason Parks authored
Bug: 18619181 Change-Id: I477efa1d0105732fe8b10ba83808af69421ea8e0
-
- 02 Dec, 2014 5 commits
-
-
Narayan Kamath authored
We assert that UNDERFLOW is returned on empty inputs both during and after a handshake. bug: 18554122 Change-Id: I17da7b213362aa8cd0ed4a2529935a3abad27802
-
Narayan Kamath authored
"user.home" and "java.io.tmpdir" are modifiable for backward compatibility. bug: 18587205 (cherry picked from commit 461f38f9) Change-Id: I708515cf8b139645c26051105de3ba556f0da7a0
-
Jason Parks authored
Use local servers instead of live servers. Bug: 18575971 Change-Id: If2f736a2b5a45c713d7d0922e1c5a0b0ec9cdc4a
-
Neil Fuller authored
See the associated external/okhttp that changes the behavior when encountering a body response from a CONNECT request. Bug: 6754912 Bug: 18575971 (cherry picked from commit 305af389) Change-Id: Idaf1fb5ef7cd3395e1fe26280799321715509e94
-
Narayan Kamath authored
Test that SSLSockets continue to return the right port after a call to setHostname. bug: 18428603 Change-Id: Ib2956be51482ea34665bfcc94c5ae2180694fbd8
-
- 28 Nov, 2014 1 commit
-
-
Neil Fuller authored
Selector.wakeup() can throw an undeclared IOException (from native code). This is not compatible with the signature of wakeup(). In prior Android releases no exception is thrown in this case. This change reverts the behavior to the same as prior Android releases. Many thanks to diddysbestbud@ for the report. Bug: https://code.google.com/p/android/issues/detail?id=80785 Bug: 18548071 Change-Id: I5421e8a0ae1fdf2cde9cb635dae56b4fd02b6ac4
-
- 24 Nov, 2014 2 commits
-
-
Aaron Whyte authored
This removes two bad tests that are covered elsewhere, using mocks. test_getContentEncoding() was hitting http://www.amazon.com, to see if a URLConnection getter was working. That getter is now tested in libcore/luni/src/test/java/libcore/java/net/URLConnectionTest.java, in testClientConfiguredGzipContentEncoding(). test_getLastModified() was hitting http://www.php.net/manual/en/function.explode.php, to see if getHeaderFieldDate was working for Last-Modified. That getter is better tested in test_getHeaderFieldDateLjava_lang_StringJ(), in the same file. Bug:18480776 Change-Id: I21ffc5c9c72eb4379478c11687d197dab176a851
-
Deepanshu Gupta authored
GregorianCalendar has a minimum-cost constructor that is not available on the host. This change wraps the call to that constructor in a static method that LayoutLib can replace. Bug: http://b.android.com/79160 Change-Id: I44a6557a048d1239a514eac38634cd0a887302c9
-