OSDN Git Service

Fix android.net.SSLTest
authorRemi NGUYEN VAN <reminv@google.com>
Tue, 8 May 2018 02:23:56 +0000 (11:23 +0900)
committerRemi NGUYEN VAN <reminv@google.com>
Tue, 8 May 2018 06:31:58 +0000 (15:31 +0900)
commit81774d1fa5eabe325b28c65837e89d6c6451d913
tree70e1f8aa5c536dbadbd860b9a555383638e01487
parent6fa8d06c78d21d455015e19691d5d6f2e6bd258b
Fix android.net.SSLTest

The test is failing because of lack of visibility (IllegalAccessError).
Also rename it to match the tested class, migrate to JUnit4, and remove
an old test that is unused (suppressed), relies on third-party servers
and is not a proper unit test (would try to make real network requests).

Test: test now passes
Change-Id: I5032a056df83d4f572d89860b52bd85a1993d9dc
core/java/android/net/SSLCertificateSocketFactory.java
core/tests/coretests/src/android/net/SSLCertificateSocketFactoryTest.java [moved from core/tests/coretests/src/android/net/SSLTest.java with 64% similarity]