Searched refs:mURLConnection (Results 1 – 2 of 2) sorted by relevance
85 @Mock private HttpsURLConnection mURLConnection; field in EncryptionKeyFetcherTest199 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysSucceed()206 verify(mURLConnection).setRequestMethod("GET"); in testFirstTimeFetchEncryptionKeysSucceed()223 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysNullEncryptionKeyUrl()245 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysEmptyEncryptionKeyUrl()268 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysSingleWhiteSpaceEncryptionKeyUrl()311 doReturn(mURLConnection) in testFirstTimeFetchEncryptionKeysServerTimeOut()314 doThrow(new IOException("Server timeout")).when(mURLConnection).getResponseCode(); in testFirstTimeFetchEncryptionKeysServerTimeOut()336 doReturn(mURLConnection) in testFirstTimeFetchEncryptionKeysInvalidJSONResponse()339 when(mURLConnection.getResponseCode()).thenReturn(200); in testFirstTimeFetchEncryptionKeysInvalidJSONResponse()[all …]
891 @Nullable final HttpsURLConnection mURLConnection; field in AdServicesHttpsClient.CloseableConnectionWrapper894 mURLConnection = urlConnection; in CloseableConnectionWrapper()899 maybeClose(mURLConnection.getInputStream()); in close()900 maybeClose(mURLConnection.getErrorStream()); in close()901 maybeDisconnect(mURLConnection); in close()