Searched refs:FILE_CONTENT (Results 1 – 3 of 3) sorted by relevance
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | DownloadProviderFunctionalTest.java | 56 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()
|
D | PublicApiFunctionalTest.java | 107 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 …]
|
D | AbstractDownloadProviderFunctionalTest.java | 60 FILE_CONTENT = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; field in AbstractDownloadProviderFunctionalTest
|