1. 15 Nov, 2016 4 commits
  2. 10 Nov, 2016 1 commit
    • Kenny Root's avatar
      CertificateTest: explicitly set validity check date · 9a659a11
      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
      9a659a11
  3. 11 Mar, 2016 1 commit
  4. 21 Jan, 2016 1 commit
  5. 08 Oct, 2015 2 commits
    • Neil Fuller's avatar
      Fixes associated with the tzdata 2015a update · fc711227
      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)
      fc711227
    • Elliott Hughes's avatar
      Fix TimeZoneTest#testPreHistoricOffsets CTS failures. · bb97fad7
      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)
      bb97fad7
  6. 17 Sep, 2015 1 commit
    • Neil Fuller's avatar
      Fixes and improvements for SerializationTest · 708f9f54
      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)
      708f9f54
  7. 20 Aug, 2015 1 commit
    • Neil Fuller's avatar
      Fixes and improvements for SerializationTest · 5f3b815a
      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)
      5f3b815a
  8. 05 Aug, 2015 1 commit
  9. 03 Aug, 2015 1 commit
  10. 22 Jul, 2015 1 commit
  11. 17 Jul, 2015 1 commit
  12. 14 Jul, 2015 1 commit
    • An Liu's avatar
      Skip TimaKeyStore in KeyStoreTest · 9ea5717a
      An Liu authored
      TimaKeyStore is Samsung's TrustZone-based KeyStore
      service provider. It should be skipped for KeyStore
      test cases since Samsung has it's own test cases.
      (cherry picked from commit f0cd15d2)
      
      Change-Id: I7c63dd1e037b0d8bed58593c2c9c883010106286
      9ea5717a
  13. 08 Jul, 2015 1 commit
  14. 15 Jun, 2015 1 commit
  15. 04 Jun, 2015 1 commit
    • Tiberiu Breana's avatar
      Add exceptions for test_connectLjava_net_SocketAddressI · b66e876c
      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: default avatarTiberiu Breana <tiberiu.a.breana@intel.com>
      (cherry picked from commit d3ba3eb7)
      b66e876c
  16. 29 May, 2015 1 commit
    • Richard Uhler's avatar
      Fix problems with DexClassLoaderTest. · d864bc63
      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
      d864bc63
  17. 04 Feb, 2015 1 commit
    • Neil Fuller's avatar
      Work around issues for MR1 release associated with timezone issue. · 656a2e45
      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
      656a2e45
  18. 02 Feb, 2015 1 commit
  19. 08 Jan, 2015 2 commits
    • Elliott Hughes's avatar
      Fix and clean up FileDescriptor.isSocket. · 3a1658cb
      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
      3a1658cb
    • Kenny Root's avatar
      SSLSocketTest: test close alert during handshake · 4a1c4b23
      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
      4a1c4b23
  20. 11 Dec, 2014 1 commit
    • Neil Fuller's avatar
      Fix for TLS HTTP connections with GMS sockets · bfeba0c4
      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
      bfeba0c4
  21. 09 Dec, 2014 3 commits
    • Narayan Kamath's avatar
      Update ByteBuffer positions in Posix.* functions. · f3b61eaf
      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
      f3b61eaf
    • Elliott Hughes's avatar
      Fix TimeZoneTest#testPreHistoricOffsets CTS failures. · 038c7129
      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
      038c7129
    • Wei Liu's avatar
      Fix libcore.java.net.OldCookieHandlerTest#test_get_put() · 065ee844
      Wei Liu authored
      Bug: 18619181
      Change-Id: I50e531c6e47bdfd1e4bebf9bd12a2011840929c2
      065ee844
  22. 08 Dec, 2014 1 commit
    • Narayan Kamath's avatar
      StrictJarFile: Fix CheckJNI crashes due to invalid UTF-8 bytes. · db12621f
      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
      db12621f
  23. 05 Dec, 2014 1 commit
    • Kenny Root's avatar
      CA certificates update · 6d65c2cb
      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
      6d65c2cb
  24. 04 Dec, 2014 2 commits
    • Narayan Kamath's avatar
      Delete ContentHandlerFactoryTest. · 72c6ce7e
      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
      72c6ce7e
    • Jason Parks's avatar
      Use a MockWebServer instead of hitting the network. · 003933ae
      Jason Parks authored
      Bug: 18619181
      Change-Id: I477efa1d0105732fe8b10ba83808af69421ea8e0
      003933ae
  25. 02 Dec, 2014 5 commits
    • Narayan Kamath's avatar
      Add tests for issue 18554122. · 03365a86
      Narayan Kamath authored
      We assert that UNDERFLOW is returned on empty inputs both
      during and after a handshake.
      
      bug: 18554122
      
      Change-Id: I17da7b213362aa8cd0ed4a2529935a3abad27802
      03365a86
    • Narayan Kamath's avatar
      Fix obsolete javadoc. · dea9544e
      Narayan Kamath authored
      "user.home" and "java.io.tmpdir" are modifiable for backward
      compatibility.
      
      bug: 18587205
      
      (cherry picked from commit 461f38f9)
      
      Change-Id: I708515cf8b139645c26051105de3ba556f0da7a0
      dea9544e
    • Jason Parks's avatar
      Fix failing connection tests. · 40122b34
      Jason Parks authored
      Use local servers instead of live servers.
      
      Bug: 18575971
      Change-Id: If2f736a2b5a45c713d7d0922e1c5a0b0ec9cdc4a
      40122b34
    • Neil Fuller's avatar
      Changes associated with an OkHttp bad proxy response fix · 467a6809
      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
      467a6809
    • Narayan Kamath's avatar
      Add test case for issue 18428603 · 36d3eb1a
      Narayan Kamath authored
      Test that SSLSockets continue to return the right port after
      a call to setHostname.
      
      bug: 18428603
      
      Change-Id: Ib2956be51482ea34665bfcc94c5ae2180694fbd8
      36d3eb1a
  26. 28 Nov, 2014 1 commit
  27. 24 Nov, 2014 2 commits