Home
last modified time | relevance | path

Searched refs:FILE_CONTENT (Results 1 – 3 of 3) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadProviderFunctionalTest.java56 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadTextFile()
66 assertEquals(FILE_CONTENT, getDownloadContents(downloadUri)); in testDownloadTextFile()
72 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadToCache()
78 assertEquals(FILE_CONTENT, getDownloadContents(downloadUri)); 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()
DPublicApiFunctionalTest.java107 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testBasicRequest()
129 int size = FILE_CONTENT.length(); in testBasicRequest()
159 assertEquals(FILE_CONTENT, readStream(inputStream)); in checkUriContent()
192 assertEquals(FILE_CONTENT.length(), in testInterruptedDownload()
219 enqueueResponse(buildPartialResponse(initialLength, FILE_CONTENT.length())); in enqueueInterruptedDownloadResponses()
223 int totalLength = FILE_CONTENT.length(); in buildPartialResponse()
226 MockResponse response = buildResponse(status, FILE_CONTENT.substring(start, end)) in buildPartialResponse()
350 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDestination()
360 assertEquals(FILE_CONTENT, readStream(stream)); in testDestination()
393 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testSizeLimitOverMobile()
[all …]
DAbstractDownloadProviderFunctionalTest.java60 FILE_CONTENT = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; field in AbstractDownloadProviderFunctionalTest