HomeSort by relevance Sort by last modified time
    Searched defs:transferKind (Results 1 - 3 of 3) sorted by null

  /external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
HttpResponseCacheTest.java 277 testResponseCaching(TransferKind.FIXED_LENGTH);
281 testResponseCaching(TransferKind.CHUNKED);
285 testResponseCaching(TransferKind.END_OF_STREAM);
292 private void testResponseCaching(TransferKind transferKind) throws IOException {
297 transferKind.setBody(response, "I love puppies but hate spiders", 1);
516 testServerPrematureDisconnect(TransferKind.FIXED_LENGTH);
520 testServerPrematureDisconnect(TransferKind.CHUNKED);
529 private void testServerPrematureDisconnect(TransferKind transferKind) throws IOException
    [all...]
URLConnectionTest.java 295 testRequestBodySurvivesRetries(TransferKind.FIXED_LENGTH);
299 testRequestBodySurvivesRetries(TransferKind.CHUNKED);
303 testRequestBodySurvivesRetries(TransferKind.END_OF_STREAM);
306 private void testRequestBodySurvivesRetries(TransferKind transferKind) throws Exception {
319 transferKind.setForRequest(connection, 4);
433 doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE);
437 doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS);
441 doUpload(TransferKind.CHUNKED, WriteKind.LARGE_BUFFERS);
445 doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE)
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java 384 doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE);
388 doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS);
392 doUpload(TransferKind.CHUNKED, WriteKind.LARGE_BUFFERS);
396 doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE);
400 doUpload(TransferKind.FIXED_LENGTH, WriteKind.SMALL_BUFFERS);
404 doUpload(TransferKind.FIXED_LENGTH, WriteKind.LARGE_BUFFERS);
407 private void doUpload(TransferKind uploadKind, WriteKind writeKind) throws Exception {
416 if (uploadKind == TransferKind.CHUNKED) {
437 if (uploadKind == TransferKind.CHUNKED) {
    [all...]

Completed in 120 milliseconds