HttpsURLConnectionTest: Remove bogus tests around socket factories.

We cannot assert that HttpsURLConnection's defaultSSLSocketFactory
is the same as SSLSocketFactory.getDefault(). In the absence of calls
to HttpsURLConnection.setDefaultSSLSocketFactory, the default factory
will be the same as SSLSocketFactory.getDefault at the point at which
the first HttpsURLConnection object in the runtime is created. The
state of SSLSocketFactory can subsequently be modified via public
API to return a different default.

The best we can do is to return that the default is non-null and that
the value of getSSLSocketFactory mirrors the default. This is already
tested in libcore.javax.net.ssl.HttpsURLConnectionTest.

bug: 28389618

(cherry picked from commit 3c17df3779d11ff6f0e23ba5d535e0214d6fa8b6)

Change-Id: Ic9678ddd91163edf5b8cef00eb762f2c05415006
1 file changed