summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorNicholas Sauer <nicksauer@google.com>2016-04-26 08:12:11 -0700
committerNicholas Sauer <nicksauer@google.com>2016-06-08 15:06:46 +0000
commit8539b67ae3e3421aff29168bcb6bff37d3843ba5 (patch)
treea8d2001c46740c1e02a80a00937d044fcd82ccad /include/ScopedJavaUnicodeString.h
parente9a8a73a00515748637906f057472da6052e0b50 (diff)
Fix HttpsURLConnectionTest for CTSv2.
test_getSSLSocketFactory and test_getDefaultSSLSocketFactory fail when run after SSLSocketFactoryTest the SSLSocketFactoryTest forces SSLSocketFactory to return a new SocketFactory object as part of the test. However, the instance held by HttpsURLConnection is not updated which means that SSLSocketFactory and HttpsURLConnection have different instances of SSLSocketFactory. HttpsURLConnectionTest#test_getSSLSocketFactory and test_getDefaultSSLSocketFactory verifies that the default SSLSocketFactory in HttpsUrlConnection is the *same* object as what is returned by SSLSocketFactory -- not just equal. Therefore this change updates the SSLSocketFactory in HttpsURLConnection before running the tests in HttpsURLConnectionTest. This allows for testing of getSSLSocketFactory and getDefaultSSLSocketFactory without being impacted by other tests. bug:28389618 Change-Id: I0481c89580ba70ea5f104061c5da9c4434eef12d (cherry picked from commit ab4e7de36fbef96853e5e0e105e7afb50c9645b6)
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions