Fix up NetworkSecurityConfigTests.
* Outdated defaults for plain HTTP. * Replaced expired test pins with the current intermediate. issuer cert for android.com. * Replaced obsolete trust anchors with a single GTS Root cert. * Fixed connection tests to use startHandshake() not getInputStream(). * Made checkstyle happier. Would have converted to JUnit4 too, but unsure how to migrate ActivityUnitTestCase correctly. Bug: 259406200 Test: NetworkSecurityConfigTests Change-Id: I385fc4bb67cd937e9e5f7b291f2cee37fd9ad715
Showing
- tests/NetworkSecurityConfigTest/res/raw/ca_certs_der.der 0 additions, 0 deletionstests/NetworkSecurityConfigTest/res/raw/ca_certs_der.der
- tests/NetworkSecurityConfigTest/res/raw/ca_certs_pem.pem 29 additions, 33 deletionstests/NetworkSecurityConfigTest/res/raw/ca_certs_pem.pem
- tests/NetworkSecurityConfigTest/res/xml/domain_whitespace.xml 1 addition, 1 deletion...s/NetworkSecurityConfigTest/res/xml/domain_whitespace.xml
- tests/NetworkSecurityConfigTest/res/xml/nested_domains.xml 1 addition, 1 deletiontests/NetworkSecurityConfigTest/res/xml/nested_domains.xml
- tests/NetworkSecurityConfigTest/res/xml/pins1.xml 1 addition, 1 deletiontests/NetworkSecurityConfigTest/res/xml/pins1.xml
- tests/NetworkSecurityConfigTest/src/android/security/net/config/NetworkSecurityConfigTests.java 10 additions, 16 deletions...droid/security/net/config/NetworkSecurityConfigTests.java
- tests/NetworkSecurityConfigTest/src/android/security/net/config/TestUtils.java 10 additions, 8 deletions...ConfigTest/src/android/security/net/config/TestUtils.java
- tests/NetworkSecurityConfigTest/src/android/security/net/config/XmlConfigTests.java 11 additions, 19 deletions...gTest/src/android/security/net/config/XmlConfigTests.java
Loading
Please register or sign in to comment