Home
last modified time | relevance | path

Searched refs:enqueueResponse (Results 1 – 5 of 5) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java107 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testBasicRequest()
144 enqueueResponse(new MockResponse().setResponseCode(HTTP_OK).setBody(body, length) in testExtremelyLarge()
175 enqueueResponse(buildEmptyResponse(HTTP_NOT_FOUND)); in testDownloadError()
180 enqueueResponse(buildEmptyResponse(1234)); // some invalid HTTP status in testUnhandledHttpStatus()
217 enqueueResponse(buildPartialResponse(0, initialLength)); in enqueueInterruptedDownloadResponses()
219 enqueueResponse(buildPartialResponse(initialLength, FILE_CONTENT.length())); in enqueueInterruptedDownloadResponses()
249 enqueueResponse(buildEmptyResponse(HTTP_OK)); in testFiltering()
250 enqueueResponse(buildEmptyResponse(HTTP_NOT_FOUND)); in testFiltering()
290 enqueueResponse(buildResponse(HTTP_OK, "small contents")); in testOrdering()
291 enqueueResponse(buildResponse(HTTP_OK, "large contents large contents")); in testOrdering()
[all …]
DDownloadProviderFunctionalTest.java56 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadTextFile()
72 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadToCache()
84 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testRoaming()
85 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testRoaming()
106 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testCleartextTrafficPermittedFlagHonored()
107 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testCleartextTrafficPermittedFlagHonored()
DThreadingTest.java56 enqueueResponse(new MockResponse().setResponseCode(HTTP_OK).setBody(body) in testFilenameRace()
DStorageTest.java228 enqueueResponse(resp); in prepareAndRunDownload()
DAbstractDownloadProviderFunctionalTest.java225 void enqueueResponse(MockResponse resp) { in enqueueResponse() method in AbstractDownloadProviderFunctionalTest